├── .gitignore ├── .npmignore ├── .prettierrc.json ├── .vscode ├── launch.json └── settings.json ├── README.md ├── REQUIREMENTS.md ├── eslint.config.js ├── package.json ├── readme-src ├── basics.jpg ├── demo.gif ├── restart_eslint_server.png ├── scope_file.png └── ts_version.png ├── src ├── checkIsImportable.ts ├── configs │ └── recommended-legacy.ts ├── constants.ts ├── esLintPlugin │ ├── esLintRule.ts │ ├── esLintUtils.ts │ ├── importValidation.ts │ ├── processor.ts │ ├── scopeValidation.ts │ └── validateProgram.ts ├── index.ts ├── parseScopeFile.ts ├── pathUtils.ts └── tsPlugin │ ├── completionUtils.ts │ ├── getCodeFixesAtPosition.ts │ ├── getCompletionsAtPosition.ts │ ├── index.ts │ ├── jsDocCompletions.ts │ ├── scopeFileCompletions.ts │ └── tsUtils.ts ├── test-project-eslint-v8 ├── .eslintrc.js ├── .vscode ├── package-lock.json ├── package.json ├── src ├── tests ├── tsconfig.json └── vitest.config.ts ├── test-project ├── .vscode │ └── settings.json ├── eslint.config.js ├── package-lock.json ├── package.json ├── src │ ├── aliasedExport │ │ ├── aliasedExportTest.ts │ │ └── internal │ │ │ └── module.ts │ ├── colors.control.ts │ ├── combinedSchema.control.ts │ ├── common │ │ ├── .scope.ts │ │ ├── commonColors.ts │ │ ├── componentCollection.control.ts │ │ ├── internal │ │ │ └── internal.ts │ │ ├── schemaParser.control.ts │ │ ├── schemaParser.ts │ │ └── utils.ts │ ├── commonInternal.ts │ ├── components │ │ ├── SchemaConsumer │ │ │ ├── context.ts │ │ │ ├── index.ts │ │ │ └── schemaContext.ts │ │ ├── colors.ts │ │ └── control │ │ │ ├── componentCollection.ts │ │ │ ├── globalImport.ts │ │ │ └── schemaContext.control.ts │ ├── constantConsumer │ │ ├── consumer.control.ts │ │ └── consumer.ts │ ├── constants │ │ ├── constants.global.ts │ │ ├── constants.local.ts │ │ ├── index.control.ts │ │ ├── index.ts │ │ └── localConstants │ │ │ └── index.ts │ ├── dynamicImport │ │ ├── awaited-destruct-aliased.ts │ │ ├── awaited-destruct.ts │ │ ├── awaited.ts │ │ ├── const.ts │ │ ├── internal │ │ │ ├── privateModule.ts │ │ │ └── publicModule.ts │ │ ├── plain.ts │ │ ├── thenned-aliased.ts │ │ ├── thenned-destruct-aliased.ts │ │ ├── thenned-destruct.ts │ │ └── thenned.ts │ ├── generated │ │ ├── combinedSchema.ts │ │ └── schema │ │ │ ├── .scope.ts │ │ │ ├── schema.ts │ │ │ ├── schema2.ts │ │ │ └── subSchema.ts │ ├── globalPackageTest.ts │ ├── indexInheritsParentScope.control.ts │ ├── indexInheritsParentScope.ts │ ├── invalidScopeFile │ │ └── .scope.ts │ ├── jsonImport.ts │ ├── monorepo │ │ ├── apps │ │ │ ├── app1 │ │ │ │ ├── nested │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── module.ts │ │ │ │ │ └── module2.ts │ │ │ │ └── package.json │ │ │ └── app2 │ │ │ │ ├── nested │ │ │ │ └── module.ts │ │ │ │ └── package.json │ │ └── monorepoTest.ts │ ├── nodeModulesTest.ts │ ├── packages │ │ ├── atoms │ │ │ ├── data │ │ │ │ ├── .scope.ts │ │ │ │ ├── data.json │ │ │ │ └── schema │ │ │ │ │ ├── index.ts │ │ │ │ │ └── part.ts │ │ │ ├── package.json │ │ │ └── tsconfig.json │ │ └── global │ │ │ ├── .scope.ts │ │ │ ├── common │ │ │ └── utils.ts │ │ │ └── package.json │ ├── plainImport │ │ ├── index.ts │ │ └── internal │ │ │ ├── privateModule.ts │ │ │ └── publicModule.ts │ ├── scope-dot-js │ │ ├── export │ │ │ ├── .scope.js │ │ │ └── export.js │ │ └── import.js │ └── starImport │ │ ├── aliased.ts │ │ ├── destruct.ts │ │ ├── internal │ │ └── module.ts │ │ ├── module-type.ts │ │ └── plain.ts ├── tests │ └── esLintRule.test.ts ├── tsconfig.json └── vitest.config.ts ├── tests ├── esLintRule.test.ts └── tempProject.ts ├── tsconfig.json └── vitest.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | *.js.map 4 | /dist 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/README.md -------------------------------------------------------------------------------- /REQUIREMENTS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/REQUIREMENTS.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/package.json -------------------------------------------------------------------------------- /readme-src/basics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/readme-src/basics.jpg -------------------------------------------------------------------------------- /readme-src/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/readme-src/demo.gif -------------------------------------------------------------------------------- /readme-src/restart_eslint_server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/readme-src/restart_eslint_server.png -------------------------------------------------------------------------------- /readme-src/scope_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/readme-src/scope_file.png -------------------------------------------------------------------------------- /readme-src/ts_version.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/readme-src/ts_version.png -------------------------------------------------------------------------------- /src/checkIsImportable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/checkIsImportable.ts -------------------------------------------------------------------------------- /src/configs/recommended-legacy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/configs/recommended-legacy.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/esLintPlugin/esLintRule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/esLintRule.ts -------------------------------------------------------------------------------- /src/esLintPlugin/esLintUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/esLintUtils.ts -------------------------------------------------------------------------------- /src/esLintPlugin/importValidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/importValidation.ts -------------------------------------------------------------------------------- /src/esLintPlugin/processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/processor.ts -------------------------------------------------------------------------------- /src/esLintPlugin/scopeValidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/scopeValidation.ts -------------------------------------------------------------------------------- /src/esLintPlugin/validateProgram.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/esLintPlugin/validateProgram.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/parseScopeFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/parseScopeFile.ts -------------------------------------------------------------------------------- /src/pathUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/pathUtils.ts -------------------------------------------------------------------------------- /src/tsPlugin/completionUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/completionUtils.ts -------------------------------------------------------------------------------- /src/tsPlugin/getCodeFixesAtPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/getCodeFixesAtPosition.ts -------------------------------------------------------------------------------- /src/tsPlugin/getCompletionsAtPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/getCompletionsAtPosition.ts -------------------------------------------------------------------------------- /src/tsPlugin/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/index.ts -------------------------------------------------------------------------------- /src/tsPlugin/jsDocCompletions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/jsDocCompletions.ts -------------------------------------------------------------------------------- /src/tsPlugin/scopeFileCompletions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/scopeFileCompletions.ts -------------------------------------------------------------------------------- /src/tsPlugin/tsUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/src/tsPlugin/tsUtils.ts -------------------------------------------------------------------------------- /test-project-eslint-v8/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project-eslint-v8/.eslintrc.js -------------------------------------------------------------------------------- /test-project-eslint-v8/.vscode: -------------------------------------------------------------------------------- 1 | ../test-project/.vscode -------------------------------------------------------------------------------- /test-project-eslint-v8/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project-eslint-v8/package-lock.json -------------------------------------------------------------------------------- /test-project-eslint-v8/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project-eslint-v8/package.json -------------------------------------------------------------------------------- /test-project-eslint-v8/src: -------------------------------------------------------------------------------- 1 | ../test-project/src -------------------------------------------------------------------------------- /test-project-eslint-v8/tests: -------------------------------------------------------------------------------- 1 | ../test-project/tests -------------------------------------------------------------------------------- /test-project-eslint-v8/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project-eslint-v8/tsconfig.json -------------------------------------------------------------------------------- /test-project-eslint-v8/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project-eslint-v8/vitest.config.ts -------------------------------------------------------------------------------- /test-project/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/.vscode/settings.json -------------------------------------------------------------------------------- /test-project/eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/eslint.config.js -------------------------------------------------------------------------------- /test-project/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/package-lock.json -------------------------------------------------------------------------------- /test-project/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/package.json -------------------------------------------------------------------------------- /test-project/src/aliasedExport/aliasedExportTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/aliasedExport/aliasedExportTest.ts -------------------------------------------------------------------------------- /test-project/src/aliasedExport/internal/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/aliasedExport/internal/module.ts -------------------------------------------------------------------------------- /test-project/src/colors.control.ts: -------------------------------------------------------------------------------- 1 | import { color } from "components/SchemaConsumer"; 2 | -------------------------------------------------------------------------------- /test-project/src/combinedSchema.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/combinedSchema.control.ts -------------------------------------------------------------------------------- /test-project/src/common/.scope.ts: -------------------------------------------------------------------------------- 1 | export default "*"; 2 | -------------------------------------------------------------------------------- /test-project/src/common/commonColors.ts: -------------------------------------------------------------------------------- 1 | import { color } from "components/SchemaConsumer"; 2 | -------------------------------------------------------------------------------- /test-project/src/common/componentCollection.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/common/componentCollection.control.ts -------------------------------------------------------------------------------- /test-project/src/common/internal/internal.ts: -------------------------------------------------------------------------------- 1 | export const INTERNAL = ""; 2 | -------------------------------------------------------------------------------- /test-project/src/common/schemaParser.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/common/schemaParser.control.ts -------------------------------------------------------------------------------- /test-project/src/common/schemaParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/common/schemaParser.ts -------------------------------------------------------------------------------- /test-project/src/common/utils.ts: -------------------------------------------------------------------------------- 1 | export const utility = ""; 2 | 3 | type Partial = { 4 | [P in keyof T]?: T[P]; 5 | }; 6 | -------------------------------------------------------------------------------- /test-project/src/commonInternal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/commonInternal.ts -------------------------------------------------------------------------------- /test-project/src/components/SchemaConsumer/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/SchemaConsumer/context.ts -------------------------------------------------------------------------------- /test-project/src/components/SchemaConsumer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/SchemaConsumer/index.ts -------------------------------------------------------------------------------- /test-project/src/components/SchemaConsumer/schemaContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/SchemaConsumer/schemaContext.ts -------------------------------------------------------------------------------- /test-project/src/components/colors.ts: -------------------------------------------------------------------------------- 1 | import { color } from "./SchemaConsumer"; 2 | -------------------------------------------------------------------------------- /test-project/src/components/control/componentCollection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/control/componentCollection.ts -------------------------------------------------------------------------------- /test-project/src/components/control/globalImport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/control/globalImport.ts -------------------------------------------------------------------------------- /test-project/src/components/control/schemaContext.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/components/control/schemaContext.control.ts -------------------------------------------------------------------------------- /test-project/src/constantConsumer/consumer.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/constantConsumer/consumer.control.ts -------------------------------------------------------------------------------- /test-project/src/constantConsumer/consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/constantConsumer/consumer.ts -------------------------------------------------------------------------------- /test-project/src/constants/constants.global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/constants/constants.global.ts -------------------------------------------------------------------------------- /test-project/src/constants/constants.local.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/constants/constants.local.ts -------------------------------------------------------------------------------- /test-project/src/constants/index.control.ts: -------------------------------------------------------------------------------- 1 | import { PRIVATE_CONSTANT } from "./localConstants"; 2 | -------------------------------------------------------------------------------- /test-project/src/constants/index.ts: -------------------------------------------------------------------------------- 1 | import { LOCAL_CONSTANT } from "./localConstants"; 2 | -------------------------------------------------------------------------------- /test-project/src/constants/localConstants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/constants/localConstants/index.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/awaited-destruct-aliased.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/awaited-destruct-aliased.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/awaited-destruct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/awaited-destruct.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/awaited.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/awaited.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/const.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/internal/privateModule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/internal/privateModule.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/internal/publicModule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/internal/publicModule.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/plain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/plain.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/thenned-aliased.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/thenned-aliased.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/thenned-destruct-aliased.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/thenned-destruct-aliased.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/thenned-destruct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/thenned-destruct.ts -------------------------------------------------------------------------------- /test-project/src/dynamicImport/thenned.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/dynamicImport/thenned.ts -------------------------------------------------------------------------------- /test-project/src/generated/combinedSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/generated/combinedSchema.ts -------------------------------------------------------------------------------- /test-project/src/generated/schema/.scope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/generated/schema/.scope.ts -------------------------------------------------------------------------------- /test-project/src/generated/schema/schema.ts: -------------------------------------------------------------------------------- 1 | export const schema = {}; 2 | -------------------------------------------------------------------------------- /test-project/src/generated/schema/schema2.ts: -------------------------------------------------------------------------------- 1 | export const schema2 = {}; 2 | -------------------------------------------------------------------------------- /test-project/src/generated/schema/subSchema.ts: -------------------------------------------------------------------------------- 1 | /** @scope . */ 2 | export const subSchema = {}; 3 | -------------------------------------------------------------------------------- /test-project/src/globalPackageTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/globalPackageTest.ts -------------------------------------------------------------------------------- /test-project/src/indexInheritsParentScope.control.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/indexInheritsParentScope.control.ts -------------------------------------------------------------------------------- /test-project/src/indexInheritsParentScope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/indexInheritsParentScope.ts -------------------------------------------------------------------------------- /test-project/src/invalidScopeFile/.scope.ts: -------------------------------------------------------------------------------- 1 | export default ["../invalidPath"]; 2 | -------------------------------------------------------------------------------- /test-project/src/jsonImport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/jsonImport.ts -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app1/nested/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/monorepo/apps/app1/nested/index.ts -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app1/nested/module.ts: -------------------------------------------------------------------------------- 1 | /** @scope * */ 2 | export const PUBLIC = ""; 3 | -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app1/nested/module2.ts: -------------------------------------------------------------------------------- 1 | /** @scope ../.. */ 2 | export const PRIVATE = ""; 3 | -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app1/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app2/nested/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/monorepo/apps/app2/nested/module.ts -------------------------------------------------------------------------------- /test-project/src/monorepo/apps/app2/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test-project/src/monorepo/monorepoTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/monorepo/monorepoTest.ts -------------------------------------------------------------------------------- /test-project/src/nodeModulesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/nodeModulesTest.ts -------------------------------------------------------------------------------- /test-project/src/packages/atoms/data/.scope.ts: -------------------------------------------------------------------------------- 1 | export default "*"; 2 | -------------------------------------------------------------------------------- /test-project/src/packages/atoms/data/data.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test-project/src/packages/atoms/data/schema/index.ts: -------------------------------------------------------------------------------- 1 | export const atomSchema = {}; 2 | -------------------------------------------------------------------------------- /test-project/src/packages/atoms/data/schema/part.ts: -------------------------------------------------------------------------------- 1 | export const part = {}; 2 | -------------------------------------------------------------------------------- /test-project/src/packages/atoms/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test-project/src/packages/atoms/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/packages/atoms/tsconfig.json -------------------------------------------------------------------------------- /test-project/src/packages/global/.scope.ts: -------------------------------------------------------------------------------- 1 | export default "*"; 2 | -------------------------------------------------------------------------------- /test-project/src/packages/global/common/utils.ts: -------------------------------------------------------------------------------- 1 | export const globalPackageUtil = () => {}; 2 | -------------------------------------------------------------------------------- /test-project/src/packages/global/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test-project/src/plainImport/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/plainImport/index.ts -------------------------------------------------------------------------------- /test-project/src/plainImport/internal/privateModule.ts: -------------------------------------------------------------------------------- 1 | void 0; 2 | -------------------------------------------------------------------------------- /test-project/src/plainImport/internal/publicModule.ts: -------------------------------------------------------------------------------- 1 | /** @scopeDefault * */ 2 | void 0; 3 | -------------------------------------------------------------------------------- /test-project/src/scope-dot-js/export/.scope.js: -------------------------------------------------------------------------------- 1 | export default "*"; 2 | -------------------------------------------------------------------------------- /test-project/src/scope-dot-js/export/export.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/scope-dot-js/export/export.js -------------------------------------------------------------------------------- /test-project/src/scope-dot-js/import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/scope-dot-js/import.js -------------------------------------------------------------------------------- /test-project/src/starImport/aliased.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/starImport/aliased.ts -------------------------------------------------------------------------------- /test-project/src/starImport/destruct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/starImport/destruct.ts -------------------------------------------------------------------------------- /test-project/src/starImport/internal/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/starImport/internal/module.ts -------------------------------------------------------------------------------- /test-project/src/starImport/module-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/starImport/module-type.ts -------------------------------------------------------------------------------- /test-project/src/starImport/plain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/src/starImport/plain.ts -------------------------------------------------------------------------------- /test-project/tests/esLintRule.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/tests/esLintRule.test.ts -------------------------------------------------------------------------------- /test-project/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/tsconfig.json -------------------------------------------------------------------------------- /test-project/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/test-project/vitest.config.ts -------------------------------------------------------------------------------- /tests/esLintRule.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/tests/esLintRule.test.ts -------------------------------------------------------------------------------- /tests/tempProject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/tests/tempProject.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A-Shleifman/eslint-plugin-export-scope/HEAD/vitest.config.ts --------------------------------------------------------------------------------