lint-suite 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/package.json +10 -13
  2. package/{README.md → packages/lint-suite/src/README.md} +121 -135
  3. package/{index.cjs → packages/lint-suite/src/index.cjs} +59 -109
  4. package/packages/lint-suite/src/index.cjs.map +7 -0
  5. package/packages/lint-suite/src/index.d.ts +357 -0
  6. package/packages/lint-suite/src/index.d.ts.map +1 -0
  7. package/{index.js → packages/lint-suite/src/index.js} +55 -105
  8. package/packages/lint-suite/src/index.js.map +7 -0
  9. package/packages/lint-suite/src/lib/angular-template.d.ts +25 -0
  10. package/{lib → packages/lint-suite/src/lib}/angular-template.d.ts.map +1 -1
  11. package/packages/lint-suite/src/lib/angular.d.ts +7 -0
  12. package/{lib → packages/lint-suite/src/lib}/angular.d.ts.map +1 -1
  13. package/packages/lint-suite/src/lib/base.d.ts +3 -0
  14. package/{lib → packages/lint-suite/src/lib}/base.d.ts.map +1 -1
  15. package/packages/lint-suite/src/lib/javascript.d.ts +2 -0
  16. package/{lib → packages/lint-suite/src/lib}/javascript.d.ts.map +1 -1
  17. package/packages/lint-suite/src/lib/jest.d.ts +3 -0
  18. package/{lib → packages/lint-suite/src/lib}/jest.d.ts.map +1 -1
  19. package/packages/lint-suite/src/lib/json.d.ts +3 -0
  20. package/{lib → packages/lint-suite/src/lib}/json.d.ts.map +1 -1
  21. package/packages/lint-suite/src/lib/rxjs.d.ts +3 -0
  22. package/{lib → packages/lint-suite/src/lib}/rxjs.d.ts.map +1 -1
  23. package/packages/lint-suite/src/lib/storybook.d.ts +3 -0
  24. package/{lib → packages/lint-suite/src/lib}/storybook.d.ts.map +1 -1
  25. package/packages/lint-suite/src/lib/typescript.d.ts +319 -0
  26. package/packages/lint-suite/src/lib/typescript.d.ts.map +1 -0
  27. package/packages/lint-suite/src/package.json +60 -0
  28. package/index.cjs.map +0 -7
  29. package/index.d.ts +0 -13
  30. package/index.d.ts.map +0 -1
  31. package/index.js.map +0 -7
  32. package/lib/angular-template.d.ts +0 -3
  33. package/lib/angular.d.ts +0 -3
  34. package/lib/base.d.ts +0 -3
  35. package/lib/javascript.d.ts +0 -3
  36. package/lib/jest.d.ts +0 -3
  37. package/lib/json.d.ts +0 -3
  38. package/lib/rxjs.d.ts +0 -3
  39. package/lib/storybook.d.ts +0 -3
  40. package/lib/typescript.d.ts +0 -3
  41. package/lib/typescript.d.ts.map +0 -1
  42. /package/{LICENSE → packages/lint-suite/src/LICENSE} +0 -0
  43. /package/{lib → packages/lint-suite/src/lib}/rules/explicit-accessibility.d.ts +0 -0
  44. /package/{lib → packages/lint-suite/src/lib}/rules/explicit-accessibility.d.ts.map +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../packages/lint-suite/src/index.ts", "../../../../packages/lint-suite/src/lib/angular-template.ts", "../../../../packages/lint-suite/src/lib/angular.ts", "../../../../packages/lint-suite/src/lib/base.ts", "../../../../packages/lint-suite/src/lib/javascript.ts", "../../../../packages/lint-suite/src/lib/jest.ts", "../../../../packages/lint-suite/src/lib/json.ts", "../../../../packages/lint-suite/src/lib/rxjs.ts", "../../../../packages/lint-suite/src/lib/storybook.ts", "../../../../packages/lint-suite/src/lib/typescript.ts", "../../../../packages/lint-suite/src/lib/rules/explicit-accessibility.ts"],
4
+ "sourcesContent": ["import { angularTemplate } from './lib/angular-template.js';\r\nimport { angular } from './lib/angular.js';\r\nimport { base } from './lib/base.js';\r\nimport { javascript } from './lib/javascript.js';\r\nimport { jest } from './lib/jest.js';\r\nimport { json } from './lib/json.js';\r\nimport { rxjs } from './lib/rxjs.js';\r\nimport { storybook } from './lib/storybook.js';\r\nimport { typescript } from './lib/typescript.js';\r\n\r\nexport const recommended = [\r\n ...base,\r\n ...javascript,\r\n ...typescript,\r\n ...angular,\r\n ...angularTemplate,\r\n ...rxjs,\r\n ...jest,\r\n ...json,\r\n ...storybook\r\n];\r\n\r\nexport {\r\n base,\r\n javascript,\r\n typescript,\r\n angular,\r\n angularTemplate,\r\n rxjs,\r\n jest,\r\n json,\r\n storybook\r\n};\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const angularTemplate = [\r\n ...nx.configs['flat/angular-template'],\r\n {\r\n files: ['**/*.html'],\r\n rules: {\r\n '@angular-eslint/template/no-any': 'error',\r\n '@angular-eslint/template/no-duplicate-attributes': 'error',\r\n '@angular-eslint/template/button-has-type': 'error',\r\n '@angular-eslint/template/no-positive-tabindex': 'error',\r\n '@angular-eslint/template/valid-aria': 'error',\r\n '@angular-eslint/template/alt-text': 'error',\r\n '@angular-eslint/template/elements-content': 'error',\r\n '@angular-eslint/template/click-events-have-key-events': 'error',\r\n '@angular-eslint/template/mouse-events-have-key-events': 'error',\r\n '@angular-eslint/template/table-scope': 'error',\r\n '@angular-eslint/template/no-autofocus': 'error',\r\n '@angular-eslint/template/no-distracting-elements': 'error',\r\n '@angular-eslint/template/prefer-control-flow': 'error',\r\n '@angular-eslint/template/prefer-self-closing-tags': 'error',\r\n '@angular-eslint/template/prefer-ngsrc': 'error',\r\n '@angular-eslint/template/attributes-order': [\r\n 'error',\r\n {\r\n alphabetical: true,\r\n order: [\r\n 'STRUCTURAL_DIRECTIVE', // e.g. `*ngIf=\"true\"`, `*ngFor=\"let item of items\"`\r\n 'TEMPLATE_REFERENCE', // e.g. `<input #inputRef>`\r\n 'INPUT_BINDING', // e.g. `[id]=\"3\"`, `[attr.colspan]=\"colspan\"`, [style.width.%]=\"100\", [@triggerName]=\"expression\", `bind-id=\"handleChange()\"`\r\n 'TWO_WAY_BINDING', // e.g. `[(id)]=\"id\"`, `bindon-id=\"id\"\r\n 'ATTRIBUTE_BINDING', // e.g. `<input required>`, `id=\"3\"`\r\n 'OUTPUT_BINDING', // e.g. `(idChange)=\"handleChange()\"`, `on-id=\"handleChange()\"`\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const angular = [\r\n ...nx.configs['flat/angular'],\r\n {\r\n files: ['**/*.ts'],\r\n rules: {\r\n '@angular-eslint/prefer-on-push-component-change-detection': 'error',\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport stylistic from '@stylistic/eslint-plugin';\r\nimport type { Linter } from 'eslint';\r\nimport importPluginX from 'eslint-plugin-import-x';\r\n\r\nexport const base: Linter.Config[] = [\r\n ...nx.configs['flat/base'],\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n ...importPluginX.flatConfigs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n ...stylistic.configs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n rules: {\r\n 'no-param-reassign': 'error',\r\n 'no-alert': 'error',\r\n 'no-console': ['warn', { allow: ['warn', 'error'] }],\r\n 'no-debugger': 'error',\r\n eqeqeq: ['error', 'always', { null: 'ignore' }],\r\n curly: ['error', 'all'],\r\n 'prefer-const': ['error', { destructuring: 'all' }],\r\n 'no-var': 'error',\r\n 'object-shorthand': 'error',\r\n 'prefer-arrow-callback': 'error',\r\n 'no-useless-concat': 'error',\r\n 'prefer-template': 'error',\r\n 'no-nested-ternary': 'error',\r\n 'no-return-await': 'error',\r\n 'no-else-return': ['error', { allowElseIf: false }], // Prefer early returns\r\n 'no-multi-assign': 'error', // Disallow chaining assignments\r\n radix: 'error', // Require radix parameter for parseInt()\r\n yoda: 'error', // Disallow yoda conditions (`if (\"red\" === color)`)\r\n complexity: ['warn', 10], // Warn if function complexity is high\r\n 'max-depth': ['warn', 4], // Warn on deeply nested blocks\r\n 'max-lines-per-function': ['warn', 50], // Warn on long functions\r\n 'max-params': ['warn', 4], // Warn on functions with many parameters\r\n 'no-lonely-if': 'error', // Disallow if statements as the only statement in an else block\r\n 'grouped-accessor-pairs': ['error', 'getBeforeSet'], // Enforce consistency for getters/setters\r\n 'class-methods-use-this': 'error',\r\n 'no-underscore-dangle': 'error',\r\n 'padding-line-between-statements': [\r\n 'error',\r\n {\r\n blankLine: 'always',\r\n prev: 'export',\r\n next: ['export', 'const']\r\n },\r\n {\r\n blankLine: 'always',\r\n prev: '*',\r\n next: 'return'\r\n },\r\n {\r\n blankLine: 'always',\r\n prev: '*',\r\n next: 'if'\r\n }\r\n ],\r\n 'max-len': [\r\n 'error',\r\n {\r\n code: 135,\r\n ignoreComments: true\r\n }\r\n ],\r\n 'spaced-comment': [\r\n 2,\r\n 'always',\r\n {\r\n block: {\r\n exceptions: ['*']\r\n }\r\n }\r\n ],\r\n '@stylistic/comma-dangle': [\r\n 'error',\r\n {\r\n functions: 'never',\r\n arrays: 'always-multiline',\r\n exports: 'always-multiline',\r\n imports: 'always-multiline',\r\n objects: 'always-multiline',\r\n enums: 'always-multiline'\r\n }\r\n ],\r\n '@stylistic/indent': [\r\n 'error',\r\n 2,\r\n {\r\n offsetTernaryExpressions: true,\r\n SwitchCase: 1,\r\n ignoredNodes: [\r\n 'TSTypeParameterInstantiation',\r\n 'FunctionExpression > .params > :matches(Decorator, :not(:first-child))'\r\n ]\r\n }\r\n ],\r\n 'sort-imports': [\r\n 'error',\r\n {\r\n ignoreCase: false,\r\n ignoreDeclarationSort: true,\r\n ignoreMemberSort: false,\r\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\r\n allowSeparatedGroups: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n '**/*.html'\r\n ],\r\n rules: {\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 150,\r\n skipBlankLines: true,\r\n skipComments: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'max-lines-per-function': 'off',\r\n complexity: ['warn', { max: 1 }],\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 300,\r\n skipBlankLines: true,\r\n skipComments: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.action.ts'],\r\n rules: {\r\n 'max-classes-per-file': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.state.ts'],\r\n rules: {\r\n 'class-methods-use-this': 'off'\r\n }\r\n }\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const javascript = nx.configs['flat/javascript'];\r\n", "import type { Linter } from 'eslint';\r\nimport jestEslint from 'eslint-plugin-jest';\r\n\r\nexport const jest: Linter.Config[] = [\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n ...jestEslint.configs['flat/all'],\r\n rules: {\r\n 'jest/no-done-callback': 'off'\r\n }\r\n }\r\n];\r\n", "import type { Linter } from 'eslint';\r\nimport jsonEslint from 'eslint-plugin-json';\r\n\r\nexport const json: Linter.Config[] = [\r\n {\r\n files: ['**/*.json'],\r\n ...jsonEslint.configs.recommended\r\n }\r\n];\r\n", "import rxjsEslint from '@smarttools/eslint-plugin-rxjs';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const rxjs: Linter.Config[] = [\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true\r\n }\r\n },\r\n ...rxjsEslint.configs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n plugins: {\r\n rxjs: rxjsEslint\r\n }\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n rules: {\r\n 'rxjs/prefer-observer': 'error',\r\n 'rxjs/finnish': 'warn',\r\n 'rxjs/no-ignored-subscription': 'warn',\r\n 'rxjs/no-ignored-error': 'warn',\r\n 'rxjs/no-unsafe-switchmap': 'error',\r\n 'rxjs/no-unsafe-takeuntil': 'error',\r\n 'rxjs/no-unsafe-catch': 'error',\r\n 'rxjs/no-unsafe-first': 'error',\r\n 'rxjs/no-topromise': 'error',\r\n 'rxjs/throw-error': 'error',\r\n 'rxjs/no-async-subscribe': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'rxjs/no-ignored-subscription': 'off'\r\n }\r\n }\r\n];\r\n", "import type { Linter } from 'eslint';\r\nimport storybookEslint from 'eslint-plugin-storybook';\r\n\r\nexport const storybook: Linter.Config[] = [\r\n ...storybookEslint.configs['flat/recommended'],\r\n {\r\n ignores: ['!.storybook'],\r\n files: ['**/*.stories.ts']\r\n }\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';\r\nimport importPluginX from 'eslint-plugin-import-x';\r\n\r\nimport explicitAccessibilityRule from './rules/explicit-accessibility.js';\r\n\r\nconst localTypescriptRules = {\r\n rules: {\r\n 'explicit-accessibility': explicitAccessibilityRule\r\n }\r\n};\r\n\r\nexport const typescript = [\r\n // NOTE: Checks for 'prettier' and 'eslint-plugin-prettier'\r\n importPluginX.flatConfigs.typescript,\r\n ...nx.configs['flat/typescript'],\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n plugins: { local: localTypescriptRules },\r\n rules: {\r\n 'local/explicit-accessibility': 'error',\r\n '@typescript-eslint/explicit-member-accessibility': 'error',\r\n '@typescript-eslint/explicit-function-return-type': 'error',\r\n '@typescript-eslint/no-empty-function': 'error',\r\n '@typescript-eslint/no-unused-vars': 'error',\r\n '@typescript-eslint/no-use-before-define': 'error',\r\n\r\n // A. Eliminating `any` (already covered by strict-type-checked, but explicit for clarity)\r\n '@typescript-eslint/no-explicit-any': 'error',\r\n '@typescript-eslint/no-unsafe-assignment': 'error',\r\n '@typescript-eslint/no-unsafe-call': 'error',\r\n '@typescript-eslint/no-unsafe-member-access': 'error',\r\n '@typescript-eslint/no-unsafe-return': 'error',\r\n '@typescript-eslint/no-unsafe-argument': 'error',\r\n\r\n // B. Explicit Annotations (partially covered, explicit module boundaries is key)\r\n '@typescript-eslint/explicit-module-boundary-types': 'error',\r\n // Consider enabling if maximum explicitness is desired, even if verbose:\r\n\r\n // C. Null/Undefined Safety (Requires strictNullChecks)\r\n '@typescript-eslint/no-non-null-assertion': 'error',\r\n\r\n // D. Promise Handling (Supplementing plugin:promise/recommended)\r\n '@typescript-eslint/no-floating-promises': [\r\n 'error',\r\n { ignoreVoid: true }\r\n ],\r\n '@typescript-eslint/no-misused-promises': 'warn', // Already in recommended-type-checked\r\n '@typescript-eslint/promise-function-async': 'error',\r\n '@typescript-eslint/await-thenable': 'error', // Already in recommended-type-checked\r\n\r\n // E. Best Practices & Potential Errors (Some covered by presets, fine-tuning here)\r\n '@typescript-eslint/no-inferrable-types': 'warn', // Keep as warn or disable if inference is preferred\r\n '@typescript-eslint/no-var-requires': 'error', // Use ES modules\r\n '@typescript-eslint/require-await': 'error',\r\n '@typescript-eslint/restrict-template-expressions': [\r\n 'error',\r\n { allowNumber: true, allowBoolean: true }\r\n ], // Allow numbers/booleans in templates\r\n '@typescript-eslint/restrict-plus-operands': 'error', // Enforce consistent types for '+'\r\n '@typescript-eslint/prefer-as-const': 'error',\r\n '@typescript-eslint/no-shadow': 'error',\r\n '@typescript-eslint/switch-exhaustiveness-check': 'error', // Ensure switch on unions is exhaustive\r\n '@typescript-eslint/no-unused-expressions': [\r\n 'error',\r\n { allowShortCircuit: true, allowTernary: true }\r\n ],\r\n '@typescript-eslint/no-useless-constructor': 'error',\r\n '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], // Prefer dot notation where possible\r\n\r\n // F. Consistency & Style (Some covered by stylistic-type-checked)\r\n '@typescript-eslint/consistent-type-assertions': [\r\n 'error',\r\n { assertionStyle: 'as', objectLiteralTypeAssertions: 'never' }\r\n ],\r\n '@typescript-eslint/consistent-type-definitions': ['error', 'type'],\r\n '@typescript-eslint/consistent-type-imports': [\r\n 'error',\r\n { prefer: 'type-imports', fixStyle: 'separate-type-imports' }\r\n ],\r\n '@typescript-eslint/naming-convention': [\r\n 'error',\r\n {\r\n selector: 'objectLiteralProperty',\r\n modifiers: ['requiresQuotes'],\r\n format: null\r\n },\r\n {\r\n selector: 'objectLiteralProperty',\r\n format: ['camelCase', 'snake_case', 'PascalCase']\r\n },\r\n {\r\n selector: 'parameter',\r\n format: ['camelCase'],\r\n leadingUnderscore: 'allow'\r\n },\r\n { selector: 'default', format: ['camelCase'] },\r\n { selector: 'variable', format: ['camelCase', 'UPPER_CASE'] },\r\n { selector: 'function', format: ['camelCase'] },\r\n { selector: 'typeLike', format: ['PascalCase'] },\r\n {\r\n selector: 'property',\r\n modifiers: ['requiresQuotes'],\r\n format: null\r\n },\r\n {\r\n selector: 'property',\r\n format: ['camelCase', 'PascalCase', 'snake_case']\r\n }\r\n ],\r\n 'import-x/order': [\r\n 'error',\r\n {\r\n groups: [\r\n 'builtin',\r\n 'external',\r\n 'internal',\r\n ['parent', 'sibling'],\r\n 'index',\r\n 'unknown'\r\n ],\r\n pathGroups: [\r\n {\r\n pattern: '@angular/**',\r\n group: 'builtin',\r\n position: 'before'\r\n },\r\n {\r\n pattern: '@nestjs/**',\r\n group: 'builtin',\r\n position: 'before'\r\n },\r\n {\r\n pattern: '@*/shared/**',\r\n group: 'internal',\r\n position: 'before'\r\n },\r\n {\r\n pattern: '@*/frontend/**',\r\n group: 'internal',\r\n position: 'after'\r\n },\r\n {\r\n pattern: '@*/backend/**',\r\n group: 'internal',\r\n position: 'after'\r\n }\r\n ],\r\n pathGroupsExcludedImportTypes: ['@angular/**', '@nestjs/**'],\r\n 'newlines-between': 'always',\r\n alphabetize: { order: 'asc', caseInsensitive: true }\r\n }\r\n ],\r\n 'import-x/no-unresolved': 'error',\r\n 'import-x/no-duplicates': 'error',\r\n 'import-x/prefer-default-export': 'off',\r\n 'import-x/no-useless-path-segments': 'error',\r\n 'import-x/newline-after-import': 'error',\r\n 'import-x/first': 'error',\r\n 'import-x/no-mutable-exports': 'error'\r\n },\r\n settings: {\r\n 'import-x/resolver-next': [\r\n createTypeScriptImportResolver({\r\n alwaysTryTypes: true,\r\n project: 'tsconfig.base.json'\r\n })\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true\r\n }\r\n },\r\n rules: {\r\n '@typescript-eslint/prefer-readonly': 'error'\r\n }\r\n },\r\n {\r\n files: ['**/*.action.ts'],\r\n rules: {\r\n '@typescript-eslint/no-namespace': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n '@typescript-eslint/no-empty-function': 'off',\r\n '@typescript-eslint/no-unbound-method': 'off',\r\n '@typescript-eslint/consistent-type-assertions': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.stories.ts'],\r\n rules: {\r\n '@typescript-eslint/consistent-type-assertions': 'off',\r\n '@typescript-eslint/naming-convention': 'off'\r\n }\r\n }\r\n];\r\n", "import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';\r\n\r\nconst createRule = ESLintUtils.RuleCreator(\r\n () => 'https://eslint.org/docs/latest/rules/no-unused-private-class-members'\r\n);\r\n\r\ntype AccessibilityLevel = 'public' | 'private' | 'protected';\r\n\r\ntype Options = [\r\n {\r\n defaultAccessibility?: AccessibilityLevel;\r\n }\r\n];\r\n\r\nconst defaultOptions: Options[0] = {\r\n defaultAccessibility: 'private'\r\n};\r\n\r\nconst getNodeName = (\r\n node: TSESTree.Node | TSESTree.Token | null | undefined\r\n): string => {\r\n if (!node) {\r\n return '<unknown>';\r\n }\r\n\r\n /*\r\n * MethodDefinition or PropertyDefinition (check 'key' first)\r\n * Note: Check 'key' before 'kind' because MethodDefinition has both\r\n */\r\n if ('key' in node && node.key) {\r\n if (node.key.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return node.key.name;\r\n }\r\n // Handle computed property names, private identifiers (#name), etc. if needed\r\n if (node.key.type === TSESTree.AST_NODE_TYPES.PrivateIdentifier) {\r\n return `#${node.key.name}`;\r\n }\r\n return '<computed/complex key>';\r\n }\r\n\r\n // Constructor specific check (if key check didn't catch it - unlikely for MethodDefinition)\r\n if ('kind' in node && node.kind === 'constructor') {\r\n return 'constructor';\r\n }\r\n\r\n // TSParameterProperty - handle its 'parameter' property\r\n if (node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty) {\r\n const param = node.parameter; // Assign to variable for clarity & potentially better inference\r\n\r\n // Handle different parameter kinds:\r\n if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return param.name;\r\n }\r\n if (param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern) {\r\n // Check the left side of the assignment\r\n if (param.left.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return param.left.name; // Name is on the identifier being assigned to\r\n }\r\n /*\r\n * Parameter is an assignment pattern with destructuring (ArrayPattern/ObjectPattern)\r\n * You might want more sophisticated logic here to extract a name\r\n */\r\n return '<destructured parameter>';\r\n }\r\n // Handle other potential kinds like RestElement ([...args]), ArrayPattern, ObjectPattern\r\n if (\r\n param.type === TSESTree.AST_NODE_TYPES.RestElement &&\r\n param.argument.type === TSESTree.AST_NODE_TYPES.Identifier\r\n ) {\r\n return `...${param.argument.name}`;\r\n }\r\n\r\n return '<complex parameter>';\r\n }\r\n\r\n return '<unknown>';\r\n};\r\n\r\nexport default createRule<Options, 'missingAccessibility'>({\r\n name: 'explicit-accessibility',\r\n meta: {\r\n type: 'suggestion',\r\n docs: {\r\n description: 'Require explicit accessibility modifiers on class members'\r\n },\r\n fixable: 'code',\r\n schema: [\r\n {\r\n type: 'object',\r\n properties: {\r\n defaultAccessibility: {\r\n type: 'string',\r\n enum: ['public', 'private', 'protected'],\r\n description: 'The accessibility modifier to add if one is missing.'\r\n }\r\n },\r\n additionalProperties: false\r\n }\r\n ],\r\n messages: {\r\n missingAccessibility:\r\n \"Class member '{{ name }}' is missing an explicit accessibility modifier (public/private/protected).\"\r\n }\r\n },\r\n defaultOptions: [defaultOptions],\r\n\r\n create(context, [options]) {\r\n const { defaultAccessibility } = { ...defaultOptions, ...options };\r\n const sourceCode = context.sourceCode;\r\n\r\n function checkNode(\r\n node:\r\n | TSESTree.MethodDefinition\r\n | TSESTree.PropertyDefinition\r\n | TSESTree.TSParameterProperty\r\n ): void {\r\n if (node.accessibility) {\r\n return; // Already has modifier\r\n }\r\n\r\n let reportNode: TSESTree.Node | TSESTree.Token | undefined = node;\r\n const name = getNodeName(node);\r\n // Adjust report node for better highlighting\r\n if (\r\n node.type === TSESTree.AST_NODE_TYPES.MethodDefinition ||\r\n node.type === TSESTree.AST_NODE_TYPES.PropertyDefinition\r\n ) {\r\n reportNode = node.key;\r\n } else {\r\n const param = node.parameter;\r\n if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n reportNode = param;\r\n } else if (\r\n param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern &&\r\n param.left.type === TSESTree.AST_NODE_TYPES.Identifier\r\n ) {\r\n reportNode = param.left;\r\n }\r\n // Keep reportNode as the TSParameterProperty node itself if param isn't simple identifier\r\n }\r\n\r\n context.report({\r\n node: reportNode,\r\n messageId: 'missingAccessibility',\r\n data: { name },\r\n fix(fixer) {\r\n let tokenToInsertBefore: TSESTree.Token | null = null;\r\n let insertText = `${defaultAccessibility} `;\r\n\r\n if (node.decorators.length > 0) {\r\n const lastDecorator = node.decorators[node.decorators.length - 1];\r\n tokenToInsertBefore = sourceCode.getTokenAfter(lastDecorator);\r\n } else {\r\n tokenToInsertBefore = sourceCode.getFirstToken(node);\r\n }\r\n\r\n // Parameter properties need special handling if they also have 'readonly'\r\n if (\r\n node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty &&\r\n node.readonly\r\n ) {\r\n // If readonly exists without accessibility, insert accessibility *before* readonly\r\n const firstToken = sourceCode.getFirstToken(node);\r\n if (firstToken?.value === 'readonly') {\r\n // double check it's the readonly token\r\n tokenToInsertBefore = firstToken;\r\n }\r\n // If insertion point wasn't decorators, use first token (which should be readonly)\r\n }\r\n\r\n if (!tokenToInsertBefore) return null;\r\n\r\n /*\r\n * If the token immediately after the insertion point isn't whitespace, add a space.\r\n * (Handles case where tokenToInsertBefore is the last decorator token)\r\n */\r\n const tokenAfterInsertion = sourceCode.getTokenAfter(\r\n tokenToInsertBefore,\r\n { includeComments: false }\r\n );\r\n const textBetween = sourceCode.text.slice(\r\n tokenToInsertBefore.range[1],\r\n tokenAfterInsertion?.range[0]\r\n );\r\n if (!/^\\s/.test(textBetween)) {\r\n insertText = ` ${insertText}`; // Add leading space if needed after decorator\r\n }\r\n\r\n return fixer.insertTextBefore(tokenToInsertBefore, insertText);\r\n }\r\n });\r\n }\r\n\r\n return {\r\n MethodDefinition(node: TSESTree.MethodDefinition): void {\r\n checkNode(node);\r\n },\r\n\r\n PropertyDefinition(node: TSESTree.PropertyDefinition): void {\r\n checkNode(node);\r\n },\r\n\r\n TSParameterProperty(node: TSESTree.TSParameterProperty): void {\r\n checkNode(node);\r\n }\r\n };\r\n }\r\n});\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAe;AAER,IAAM,kBAAkB;AAAA,EAC7B,GAAG,qBAAAA,QAAG,QAAQ,uBAAuB;AAAA,EACrC;AAAA,IACE,OAAO,CAAC,WAAW;AAAA,IACnB,OAAO;AAAA,MACL,mCAAmC;AAAA,MACnC,oDAAoD;AAAA,MACpD,4CAA4C;AAAA,MAC5C,iDAAiD;AAAA,MACjD,uCAAuC;AAAA,MACvC,qCAAqC;AAAA,MACrC,6CAA6C;AAAA,MAC7C,yDAAyD;AAAA,MACzD,yDAAyD;AAAA,MACzD,wCAAwC;AAAA,MACxC,yCAAyC;AAAA,MACzC,oDAAoD;AAAA,MACpD,gDAAgD;AAAA,MAChD,qDAAqD;AAAA,MACrD,yCAAyC;AAAA,MACzC,6CAA6C;AAAA,QAC3C;AAAA,QACA;AAAA,UACE,cAAc;AAAA,UACd,OAAO;AAAA,YACL;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;ACtCA,IAAAC,wBAAe;AAER,IAAM,UAAU;AAAA,EACrB,GAAG,sBAAAC,QAAG,QAAQ,cAAc;AAAA,EAC5B;AAAA,IACE,OAAO,CAAC,SAAS;AAAA,IACjB,OAAO;AAAA,MACL,6DAA6D;AAAA,IAC/D;AAAA,EACF;AACF;;;ACVA,IAAAC,wBAAe;AACf,IAAAA,wBAAsB;AAEtB,oCAA0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,yEAA+B;AAAA,UAC7B,gBAAgB;AAAA,UAChB,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,WAAW,YAAY,YAAY,UAAU;AAAA,IACrD,iBAAiB;AAAA,MACf,eAAe;AAAA,QACb,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,sCAAsC;AAAA,IACxC;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,gBAAgB;AAAA,IACxB,OAAO;AAAA,MACL,mCAAmC;AAAA,IACrC;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,gBAAgB,gBAAgB,gBAAgB,cAAc;AAAA,IACtE,OAAO;AAAA,MACL,wCAAwC;AAAA,MACxC,wCAAwC;AAAA,MACxC,iDAAiD;AAAA,IACnD;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,iBAAiB;AAAA,IACzB,OAAO;AAAA,MACL,iDAAiD;AAAA,MACjD,wCAAwC;AAAA,IAC1C;AAAA,EACF;AACF;;;AThMO,IAAM,cAAc;AAAA,EACzB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;",
6
+ "names": ["nx", "import_eslint_plugin", "nx", "import_eslint_plugin", "nx", "importPluginX", "stylistic", "import_eslint_plugin", "nx", "jestEslint", "jsonEslint", "rxjsEslint", "storybookEslint", "import_eslint_plugin", "import_eslint_plugin_import_x", "importPluginX", "nx"]
7
+ }
@@ -0,0 +1,357 @@
1
+ import { angularTemplate } from './lib/angular-template.js';
2
+ import { angular } from './lib/angular.js';
3
+ import { base } from './lib/base.js';
4
+ import { javascript } from './lib/javascript.js';
5
+ import { jest } from './lib/jest.js';
6
+ import { json } from './lib/json.js';
7
+ import { rxjs } from './lib/rxjs.js';
8
+ import { storybook } from './lib/storybook.js';
9
+ import { typescript } from './lib/typescript.js';
10
+ export declare const recommended: (import("typescript-eslint").FlatConfig.Config | {
11
+ files: string[];
12
+ rules: {
13
+ '@angular-eslint/template/no-any': string;
14
+ '@angular-eslint/template/no-duplicate-attributes': string;
15
+ '@angular-eslint/template/button-has-type': string;
16
+ '@angular-eslint/template/no-positive-tabindex': string;
17
+ '@angular-eslint/template/valid-aria': string;
18
+ '@angular-eslint/template/alt-text': string;
19
+ '@angular-eslint/template/elements-content': string;
20
+ '@angular-eslint/template/click-events-have-key-events': string;
21
+ '@angular-eslint/template/mouse-events-have-key-events': string;
22
+ '@angular-eslint/template/table-scope': string;
23
+ '@angular-eslint/template/no-autofocus': string;
24
+ '@angular-eslint/template/no-distracting-elements': string;
25
+ '@angular-eslint/template/prefer-control-flow': string;
26
+ '@angular-eslint/template/prefer-self-closing-tags': string;
27
+ '@angular-eslint/template/prefer-ngsrc': string;
28
+ '@angular-eslint/template/attributes-order': (string | {
29
+ alphabetical: boolean;
30
+ order: string[];
31
+ })[];
32
+ };
33
+ } | {
34
+ files: string[];
35
+ rules: {
36
+ '@angular-eslint/prefer-on-push-component-change-detection': string;
37
+ };
38
+ } | import("eslint").Linter.Config<import("@eslint/core", { with: { "resolution-mode": "require" } }).RulesConfig> | {
39
+ files: string[];
40
+ plugins: {
41
+ local: {
42
+ rules: {
43
+ 'explicit-accessibility': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingAccessibility", [{
44
+ defaultAccessibility?: "public" | "private" | "protected";
45
+ }], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
46
+ };
47
+ };
48
+ };
49
+ rules: {
50
+ 'local/explicit-accessibility': string;
51
+ '@typescript-eslint/explicit-member-accessibility': string;
52
+ '@typescript-eslint/explicit-function-return-type': string;
53
+ '@typescript-eslint/no-empty-function': string;
54
+ '@typescript-eslint/no-unused-vars': string;
55
+ '@typescript-eslint/no-use-before-define': string;
56
+ '@typescript-eslint/no-explicit-any': string;
57
+ '@typescript-eslint/no-unsafe-assignment': string;
58
+ '@typescript-eslint/no-unsafe-call': string;
59
+ '@typescript-eslint/no-unsafe-member-access': string;
60
+ '@typescript-eslint/no-unsafe-return': string;
61
+ '@typescript-eslint/no-unsafe-argument': string;
62
+ '@typescript-eslint/explicit-module-boundary-types': string;
63
+ '@typescript-eslint/no-non-null-assertion': string;
64
+ '@typescript-eslint/no-floating-promises': (string | {
65
+ ignoreVoid: boolean;
66
+ })[];
67
+ '@typescript-eslint/no-misused-promises': string;
68
+ '@typescript-eslint/promise-function-async': string;
69
+ '@typescript-eslint/await-thenable': string;
70
+ '@typescript-eslint/no-inferrable-types': string;
71
+ '@typescript-eslint/no-var-requires': string;
72
+ '@typescript-eslint/require-await': string;
73
+ '@typescript-eslint/restrict-template-expressions': (string | {
74
+ allowNumber: boolean;
75
+ allowBoolean: boolean;
76
+ })[];
77
+ '@typescript-eslint/restrict-plus-operands': string;
78
+ '@typescript-eslint/prefer-as-const': string;
79
+ '@typescript-eslint/no-shadow': string;
80
+ '@typescript-eslint/switch-exhaustiveness-check': string;
81
+ '@typescript-eslint/no-unused-expressions': (string | {
82
+ allowShortCircuit: boolean;
83
+ allowTernary: boolean;
84
+ })[];
85
+ '@typescript-eslint/no-useless-constructor': string;
86
+ '@typescript-eslint/dot-notation': (string | {
87
+ allowKeywords: boolean;
88
+ })[];
89
+ '@typescript-eslint/consistent-type-assertions': (string | {
90
+ assertionStyle: string;
91
+ objectLiteralTypeAssertions: string;
92
+ })[];
93
+ '@typescript-eslint/consistent-type-definitions': string[];
94
+ '@typescript-eslint/consistent-type-imports': (string | {
95
+ prefer: string;
96
+ fixStyle: string;
97
+ })[];
98
+ '@typescript-eslint/naming-convention': (string | {
99
+ selector: string;
100
+ modifiers: string[];
101
+ format: null;
102
+ leadingUnderscore?: undefined;
103
+ } | {
104
+ selector: string;
105
+ format: string[];
106
+ modifiers?: undefined;
107
+ leadingUnderscore?: undefined;
108
+ } | {
109
+ selector: string;
110
+ format: string[];
111
+ leadingUnderscore: string;
112
+ modifiers?: undefined;
113
+ })[];
114
+ 'import-x/order': (string | {
115
+ groups: (string | string[])[];
116
+ pathGroups: {
117
+ pattern: string;
118
+ group: string;
119
+ position: string;
120
+ }[];
121
+ pathGroupsExcludedImportTypes: string[];
122
+ 'newlines-between': string;
123
+ alphabetize: {
124
+ order: string;
125
+ caseInsensitive: boolean;
126
+ };
127
+ })[];
128
+ 'import-x/no-unresolved': string;
129
+ 'import-x/no-duplicates': string;
130
+ 'import-x/prefer-default-export': string;
131
+ 'import-x/no-useless-path-segments': string;
132
+ 'import-x/newline-after-import': string;
133
+ 'import-x/first': string;
134
+ 'import-x/no-mutable-exports': string;
135
+ '@typescript-eslint/prefer-readonly'?: undefined;
136
+ '@typescript-eslint/no-namespace'?: undefined;
137
+ '@typescript-eslint/no-unbound-method'?: undefined;
138
+ };
139
+ settings: {
140
+ 'import-x/resolver-next': {
141
+ interfaceVersion: number;
142
+ name: string;
143
+ resolve(source: string, file: string): import("eslint-import-context").ResolvedResult;
144
+ }[];
145
+ };
146
+ languageOptions?: undefined;
147
+ } | {
148
+ files: string[];
149
+ languageOptions: {
150
+ parserOptions: {
151
+ projectService: boolean;
152
+ };
153
+ };
154
+ rules: {
155
+ '@typescript-eslint/prefer-readonly': string;
156
+ 'local/explicit-accessibility'?: undefined;
157
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
158
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
159
+ '@typescript-eslint/no-empty-function'?: undefined;
160
+ '@typescript-eslint/no-unused-vars'?: undefined;
161
+ '@typescript-eslint/no-use-before-define'?: undefined;
162
+ '@typescript-eslint/no-explicit-any'?: undefined;
163
+ '@typescript-eslint/no-unsafe-assignment'?: undefined;
164
+ '@typescript-eslint/no-unsafe-call'?: undefined;
165
+ '@typescript-eslint/no-unsafe-member-access'?: undefined;
166
+ '@typescript-eslint/no-unsafe-return'?: undefined;
167
+ '@typescript-eslint/no-unsafe-argument'?: undefined;
168
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
169
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
170
+ '@typescript-eslint/no-floating-promises'?: undefined;
171
+ '@typescript-eslint/no-misused-promises'?: undefined;
172
+ '@typescript-eslint/promise-function-async'?: undefined;
173
+ '@typescript-eslint/await-thenable'?: undefined;
174
+ '@typescript-eslint/no-inferrable-types'?: undefined;
175
+ '@typescript-eslint/no-var-requires'?: undefined;
176
+ '@typescript-eslint/require-await'?: undefined;
177
+ '@typescript-eslint/restrict-template-expressions'?: undefined;
178
+ '@typescript-eslint/restrict-plus-operands'?: undefined;
179
+ '@typescript-eslint/prefer-as-const'?: undefined;
180
+ '@typescript-eslint/no-shadow'?: undefined;
181
+ '@typescript-eslint/switch-exhaustiveness-check'?: undefined;
182
+ '@typescript-eslint/no-unused-expressions'?: undefined;
183
+ '@typescript-eslint/no-useless-constructor'?: undefined;
184
+ '@typescript-eslint/dot-notation'?: undefined;
185
+ '@typescript-eslint/consistent-type-assertions'?: undefined;
186
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
187
+ '@typescript-eslint/consistent-type-imports'?: undefined;
188
+ '@typescript-eslint/naming-convention'?: undefined;
189
+ 'import-x/order'?: undefined;
190
+ 'import-x/no-unresolved'?: undefined;
191
+ 'import-x/no-duplicates'?: undefined;
192
+ 'import-x/prefer-default-export'?: undefined;
193
+ 'import-x/no-useless-path-segments'?: undefined;
194
+ 'import-x/newline-after-import'?: undefined;
195
+ 'import-x/first'?: undefined;
196
+ 'import-x/no-mutable-exports'?: undefined;
197
+ '@typescript-eslint/no-namespace'?: undefined;
198
+ '@typescript-eslint/no-unbound-method'?: undefined;
199
+ };
200
+ plugins?: undefined;
201
+ settings?: undefined;
202
+ } | {
203
+ files: string[];
204
+ rules: {
205
+ '@typescript-eslint/no-namespace': string;
206
+ 'local/explicit-accessibility'?: undefined;
207
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
208
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
209
+ '@typescript-eslint/no-empty-function'?: undefined;
210
+ '@typescript-eslint/no-unused-vars'?: undefined;
211
+ '@typescript-eslint/no-use-before-define'?: undefined;
212
+ '@typescript-eslint/no-explicit-any'?: undefined;
213
+ '@typescript-eslint/no-unsafe-assignment'?: undefined;
214
+ '@typescript-eslint/no-unsafe-call'?: undefined;
215
+ '@typescript-eslint/no-unsafe-member-access'?: undefined;
216
+ '@typescript-eslint/no-unsafe-return'?: undefined;
217
+ '@typescript-eslint/no-unsafe-argument'?: undefined;
218
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
219
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
220
+ '@typescript-eslint/no-floating-promises'?: undefined;
221
+ '@typescript-eslint/no-misused-promises'?: undefined;
222
+ '@typescript-eslint/promise-function-async'?: undefined;
223
+ '@typescript-eslint/await-thenable'?: undefined;
224
+ '@typescript-eslint/no-inferrable-types'?: undefined;
225
+ '@typescript-eslint/no-var-requires'?: undefined;
226
+ '@typescript-eslint/require-await'?: undefined;
227
+ '@typescript-eslint/restrict-template-expressions'?: undefined;
228
+ '@typescript-eslint/restrict-plus-operands'?: undefined;
229
+ '@typescript-eslint/prefer-as-const'?: undefined;
230
+ '@typescript-eslint/no-shadow'?: undefined;
231
+ '@typescript-eslint/switch-exhaustiveness-check'?: undefined;
232
+ '@typescript-eslint/no-unused-expressions'?: undefined;
233
+ '@typescript-eslint/no-useless-constructor'?: undefined;
234
+ '@typescript-eslint/dot-notation'?: undefined;
235
+ '@typescript-eslint/consistent-type-assertions'?: undefined;
236
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
237
+ '@typescript-eslint/consistent-type-imports'?: undefined;
238
+ '@typescript-eslint/naming-convention'?: undefined;
239
+ 'import-x/order'?: undefined;
240
+ 'import-x/no-unresolved'?: undefined;
241
+ 'import-x/no-duplicates'?: undefined;
242
+ 'import-x/prefer-default-export'?: undefined;
243
+ 'import-x/no-useless-path-segments'?: undefined;
244
+ 'import-x/newline-after-import'?: undefined;
245
+ 'import-x/first'?: undefined;
246
+ 'import-x/no-mutable-exports'?: undefined;
247
+ '@typescript-eslint/prefer-readonly'?: undefined;
248
+ '@typescript-eslint/no-unbound-method'?: undefined;
249
+ };
250
+ plugins?: undefined;
251
+ settings?: undefined;
252
+ languageOptions?: undefined;
253
+ } | {
254
+ files: string[];
255
+ rules: {
256
+ '@typescript-eslint/no-empty-function': string;
257
+ '@typescript-eslint/no-unbound-method': string;
258
+ '@typescript-eslint/consistent-type-assertions': string;
259
+ 'local/explicit-accessibility'?: undefined;
260
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
261
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
262
+ '@typescript-eslint/no-unused-vars'?: undefined;
263
+ '@typescript-eslint/no-use-before-define'?: undefined;
264
+ '@typescript-eslint/no-explicit-any'?: undefined;
265
+ '@typescript-eslint/no-unsafe-assignment'?: undefined;
266
+ '@typescript-eslint/no-unsafe-call'?: undefined;
267
+ '@typescript-eslint/no-unsafe-member-access'?: undefined;
268
+ '@typescript-eslint/no-unsafe-return'?: undefined;
269
+ '@typescript-eslint/no-unsafe-argument'?: undefined;
270
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
271
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
272
+ '@typescript-eslint/no-floating-promises'?: undefined;
273
+ '@typescript-eslint/no-misused-promises'?: undefined;
274
+ '@typescript-eslint/promise-function-async'?: undefined;
275
+ '@typescript-eslint/await-thenable'?: undefined;
276
+ '@typescript-eslint/no-inferrable-types'?: undefined;
277
+ '@typescript-eslint/no-var-requires'?: undefined;
278
+ '@typescript-eslint/require-await'?: undefined;
279
+ '@typescript-eslint/restrict-template-expressions'?: undefined;
280
+ '@typescript-eslint/restrict-plus-operands'?: undefined;
281
+ '@typescript-eslint/prefer-as-const'?: undefined;
282
+ '@typescript-eslint/no-shadow'?: undefined;
283
+ '@typescript-eslint/switch-exhaustiveness-check'?: undefined;
284
+ '@typescript-eslint/no-unused-expressions'?: undefined;
285
+ '@typescript-eslint/no-useless-constructor'?: undefined;
286
+ '@typescript-eslint/dot-notation'?: undefined;
287
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
288
+ '@typescript-eslint/consistent-type-imports'?: undefined;
289
+ '@typescript-eslint/naming-convention'?: undefined;
290
+ 'import-x/order'?: undefined;
291
+ 'import-x/no-unresolved'?: undefined;
292
+ 'import-x/no-duplicates'?: undefined;
293
+ 'import-x/prefer-default-export'?: undefined;
294
+ 'import-x/no-useless-path-segments'?: undefined;
295
+ 'import-x/newline-after-import'?: undefined;
296
+ 'import-x/first'?: undefined;
297
+ 'import-x/no-mutable-exports'?: undefined;
298
+ '@typescript-eslint/prefer-readonly'?: undefined;
299
+ '@typescript-eslint/no-namespace'?: undefined;
300
+ };
301
+ plugins?: undefined;
302
+ settings?: undefined;
303
+ languageOptions?: undefined;
304
+ } | {
305
+ files: string[];
306
+ rules: {
307
+ '@typescript-eslint/consistent-type-assertions': string;
308
+ '@typescript-eslint/naming-convention': string;
309
+ 'local/explicit-accessibility'?: undefined;
310
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
311
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
312
+ '@typescript-eslint/no-empty-function'?: undefined;
313
+ '@typescript-eslint/no-unused-vars'?: undefined;
314
+ '@typescript-eslint/no-use-before-define'?: undefined;
315
+ '@typescript-eslint/no-explicit-any'?: undefined;
316
+ '@typescript-eslint/no-unsafe-assignment'?: undefined;
317
+ '@typescript-eslint/no-unsafe-call'?: undefined;
318
+ '@typescript-eslint/no-unsafe-member-access'?: undefined;
319
+ '@typescript-eslint/no-unsafe-return'?: undefined;
320
+ '@typescript-eslint/no-unsafe-argument'?: undefined;
321
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
322
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
323
+ '@typescript-eslint/no-floating-promises'?: undefined;
324
+ '@typescript-eslint/no-misused-promises'?: undefined;
325
+ '@typescript-eslint/promise-function-async'?: undefined;
326
+ '@typescript-eslint/await-thenable'?: undefined;
327
+ '@typescript-eslint/no-inferrable-types'?: undefined;
328
+ '@typescript-eslint/no-var-requires'?: undefined;
329
+ '@typescript-eslint/require-await'?: undefined;
330
+ '@typescript-eslint/restrict-template-expressions'?: undefined;
331
+ '@typescript-eslint/restrict-plus-operands'?: undefined;
332
+ '@typescript-eslint/prefer-as-const'?: undefined;
333
+ '@typescript-eslint/no-shadow'?: undefined;
334
+ '@typescript-eslint/switch-exhaustiveness-check'?: undefined;
335
+ '@typescript-eslint/no-unused-expressions'?: undefined;
336
+ '@typescript-eslint/no-useless-constructor'?: undefined;
337
+ '@typescript-eslint/dot-notation'?: undefined;
338
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
339
+ '@typescript-eslint/consistent-type-imports'?: undefined;
340
+ 'import-x/order'?: undefined;
341
+ 'import-x/no-unresolved'?: undefined;
342
+ 'import-x/no-duplicates'?: undefined;
343
+ 'import-x/prefer-default-export'?: undefined;
344
+ 'import-x/no-useless-path-segments'?: undefined;
345
+ 'import-x/newline-after-import'?: undefined;
346
+ 'import-x/first'?: undefined;
347
+ 'import-x/no-mutable-exports'?: undefined;
348
+ '@typescript-eslint/prefer-readonly'?: undefined;
349
+ '@typescript-eslint/no-namespace'?: undefined;
350
+ '@typescript-eslint/no-unbound-method'?: undefined;
351
+ };
352
+ plugins?: undefined;
353
+ settings?: undefined;
354
+ languageOptions?: undefined;
355
+ })[];
356
+ export { base, javascript, typescript, angular, angularTemplate, rxjs, jest, json, storybook };
357
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/lint-suite/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUvB,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,OAAO,EACP,eAAe,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,SAAS,EACV,CAAC"}