eslint-plugin-export-scope

Disallows importing scoped exports outside their scope

Downloads
8K
Stars
110
Committers
1

Bot releases are hidden (Show)

eslint-plugin-export-scope - v2.4.0 Latest Release

Published by A-Shleifman 5 months ago

Changes:

  • adds support for ESLint Flat Config

Full Changelog: https://github.com/A-Shleifman/eslint-plugin-export-scope/compare/v2.3.0...v2.4.0

eslint-plugin-export-scope - v2.3.0

Published by A-Shleifman 7 months ago

Changes:

  • updates module resolution strategy
  • fixes linting of destructured module variables

Full Changelog: https://github.com/A-Shleifman/eslint-plugin-export-scope/compare/v2.2.0...v2.3.0

eslint-plugin-export-scope - v2.2.0

Published by A-Shleifman 7 months ago

Changes:

  • Fixes performance issues from v.2.1.0
  • linting of destructured module variables const { private } = module is temporarily disabled

Full Changelog: https://github.com/A-Shleifman/eslint-plugin-export-scope/compare/v2.1.0...v2.2.0

eslint-plugin-export-scope - v2.1.0

Published by A-Shleifman 7 months ago

Changes:

  • adds full support for dynamic imports (scope is validated per export)
  • adds support for group exports export {a, b} and * as alias imports
eslint-plugin-export-scope - v2.0.5

Published by A-Shleifman 9 months ago

Changes in v2

BREAKING

  • Only jsDoc comments are supported now
  • @scope default syntax is replaced with @scopeDefault jsDoc prop
  • Prefixing files/folders with @.. is no longer supported

NEW FEATURES

  • New .scope.ts files are used to manage folder scopes instead of @..
  • Exceptions can be set with @scopeException jsDoc prop or with export const exceptions = [] in .scope.ts files
  • Path autocompletion is offered in jsDocs and scope files
  • Paths are validated with ESLint
  • @ on an empty line triggers a snippet menu to generate jsDocs faster