eslint-plugin-etc-misc 1.0.1
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.
- package/CHANGELOG.md +23 -0
- package/LICENSE +21 -0
- package/README.md +259 -0
- package/dist/_internal/casing.d.ts +13 -0
- package/dist/_internal/casing.d.ts.map +1 -0
- package/dist/_internal/casing.js +34 -0
- package/dist/_internal/casing.js.map +1 -0
- package/dist/_internal/create-external-rule.d.ts +12 -0
- package/dist/_internal/create-external-rule.d.ts.map +1 -0
- package/dist/_internal/create-external-rule.js +66 -0
- package/dist/_internal/create-external-rule.js.map +1 -0
- package/dist/_internal/create-import-pattern-rule.d.ts +39 -0
- package/dist/_internal/create-import-pattern-rule.d.ts.map +1 -0
- package/dist/_internal/create-import-pattern-rule.js +67 -0
- package/dist/_internal/create-import-pattern-rule.js.map +1 -0
- package/dist/_internal/create-selector-rule.d.ts +18 -0
- package/dist/_internal/create-selector-rule.d.ts.map +1 -0
- package/dist/_internal/create-selector-rule.js +31 -0
- package/dist/_internal/create-selector-rule.js.map +1 -0
- package/dist/_internal/get-core-rule.d.ts +8 -0
- package/dist/_internal/get-core-rule.d.ts.map +1 -0
- package/dist/_internal/get-core-rule.js +14 -0
- package/dist/_internal/get-core-rule.js.map +1 -0
- package/dist/_internal/identifier-blocks.d.ts +10 -0
- package/dist/_internal/identifier-blocks.d.ts.map +1 -0
- package/dist/_internal/identifier-blocks.js +24 -0
- package/dist/_internal/identifier-blocks.js.map +1 -0
- package/dist/_internal/ignore-patterns.d.ts +26 -0
- package/dist/_internal/ignore-patterns.d.ts.map +1 -0
- package/dist/_internal/ignore-patterns.js +35 -0
- package/dist/_internal/ignore-patterns.js.map +1 -0
- package/dist/_internal/import-patterns.d.ts +30 -0
- package/dist/_internal/import-patterns.d.ts.map +1 -0
- package/dist/_internal/import-patterns.js +52 -0
- package/dist/_internal/import-patterns.js.map +1 -0
- package/dist/_internal/plugin-meta.d.ts +13 -0
- package/dist/_internal/plugin-meta.d.ts.map +1 -0
- package/dist/_internal/plugin-meta.js +9 -0
- package/dist/_internal/plugin-meta.js.map +1 -0
- package/dist/_internal/rule-catalog.d.ts +36 -0
- package/dist/_internal/rule-catalog.d.ts.map +1 -0
- package/dist/_internal/rule-catalog.js +49 -0
- package/dist/_internal/rule-catalog.js.map +1 -0
- package/dist/_internal/rule-creator.d.ts +26 -0
- package/dist/_internal/rule-creator.d.ts.map +1 -0
- package/dist/_internal/rule-creator.js +14 -0
- package/dist/_internal/rule-creator.js.map +1 -0
- package/dist/_internal/rule-deprecation.d.ts +32 -0
- package/dist/_internal/rule-deprecation.d.ts.map +1 -0
- package/dist/_internal/rule-deprecation.js +38 -0
- package/dist/_internal/rule-deprecation.js.map +1 -0
- package/dist/_internal/symbol-usage.d.ts +25 -0
- package/dist/_internal/symbol-usage.d.ts.map +1 -0
- package/dist/_internal/symbol-usage.js +82 -0
- package/dist/_internal/symbol-usage.js.map +1 -0
- package/dist/_internal/syntax-selectors.d.ts +24 -0
- package/dist/_internal/syntax-selectors.d.ts.map +1 -0
- package/dist/_internal/syntax-selectors.js +30 -0
- package/dist/_internal/syntax-selectors.js.map +1 -0
- package/dist/configs/all-strict.d.ts +11 -0
- package/dist/configs/all-strict.d.ts.map +1 -0
- package/dist/configs/all-strict.js +16 -0
- package/dist/configs/all-strict.js.map +1 -0
- package/dist/configs/all.d.ts +10 -0
- package/dist/configs/all.d.ts.map +1 -0
- package/dist/configs/all.js +18 -0
- package/dist/configs/all.js.map +1 -0
- package/dist/configs/recommended.d.ts +29 -0
- package/dist/configs/recommended.d.ts.map +1 -0
- package/dist/configs/recommended.js +29 -0
- package/dist/configs/recommended.js.map +1 -0
- package/dist/configs/strict-type-checked.d.ts +15 -0
- package/dist/configs/strict-type-checked.d.ts.map +1 -0
- package/dist/configs/strict-type-checked.js +38 -0
- package/dist/configs/strict-type-checked.js.map +1 -0
- package/dist/configs/strict.d.ts +13 -0
- package/dist/configs/strict.d.ts.map +1 -0
- package/dist/configs/strict.js +10 -0
- package/dist/configs/strict.js.map +1 -0
- package/dist/configs.d.ts +34 -0
- package/dist/configs.d.ts.map +1 -0
- package/dist/configs.js +33 -0
- package/dist/configs.js.map +1 -0
- package/dist/plugin.cjs +4 -0
- package/dist/plugin.d.cts +2 -0
- package/dist/plugin.d.ts +15 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +14 -0
- package/dist/plugin.js.map +1 -0
- package/dist/rules/array-type.d.ts +8 -0
- package/dist/rules/array-type.d.ts.map +1 -0
- package/dist/rules/array-type.js +25 -0
- package/dist/rules/array-type.js.map +1 -0
- package/dist/rules/class-match-filename.d.ts +9 -0
- package/dist/rules/class-match-filename.d.ts.map +1 -0
- package/dist/rules/class-match-filename.js +51 -0
- package/dist/rules/class-match-filename.js.map +1 -0
- package/dist/rules/comment-spacing.d.ts +9 -0
- package/dist/rules/comment-spacing.d.ts.map +1 -0
- package/dist/rules/comment-spacing.js +63 -0
- package/dist/rules/comment-spacing.js.map +1 -0
- package/dist/rules/consistent-empty-lines.d.ts +9 -0
- package/dist/rules/consistent-empty-lines.d.ts.map +1 -0
- package/dist/rules/consistent-empty-lines.js +74 -0
- package/dist/rules/consistent-empty-lines.js.map +1 -0
- package/dist/rules/consistent-enum-members.d.ts +9 -0
- package/dist/rules/consistent-enum-members.d.ts.map +1 -0
- package/dist/rules/consistent-enum-members.js +36 -0
- package/dist/rules/consistent-enum-members.js.map +1 -0
- package/dist/rules/consistent-filename.d.ts +18 -0
- package/dist/rules/consistent-filename.d.ts.map +1 -0
- package/dist/rules/consistent-filename.js +87 -0
- package/dist/rules/consistent-filename.js.map +1 -0
- package/dist/rules/consistent-import.d.ts +14 -0
- package/dist/rules/consistent-import.d.ts.map +1 -0
- package/dist/rules/consistent-import.js +91 -0
- package/dist/rules/consistent-import.js.map +1 -0
- package/dist/rules/consistent-optional-props.d.ts +9 -0
- package/dist/rules/consistent-optional-props.d.ts.map +1 -0
- package/dist/rules/consistent-optional-props.js +68 -0
- package/dist/rules/consistent-optional-props.js.map +1 -0
- package/dist/rules/consistent-source-extension.d.ts +14 -0
- package/dist/rules/consistent-source-extension.d.ts.map +1 -0
- package/dist/rules/consistent-source-extension.js +56 -0
- package/dist/rules/consistent-source-extension.js.map +1 -0
- package/dist/rules/consistent-symbol-description.d.ts +9 -0
- package/dist/rules/consistent-symbol-description.d.ts.map +1 -0
- package/dist/rules/consistent-symbol-description.js +36 -0
- package/dist/rules/consistent-symbol-description.js.map +1 -0
- package/dist/rules/default-case.d.ts +7 -0
- package/dist/rules/default-case.d.ts.map +1 -0
- package/dist/rules/default-case.js +9 -0
- package/dist/rules/default-case.js.map +1 -0
- package/dist/rules/disallow-import.d.ts +7 -0
- package/dist/rules/disallow-import.d.ts.map +1 -0
- package/dist/rules/disallow-import.js +11 -0
- package/dist/rules/disallow-import.js.map +1 -0
- package/dist/rules/export-matching-filename-only.d.ts +14 -0
- package/dist/rules/export-matching-filename-only.d.ts.map +1 -0
- package/dist/rules/export-matching-filename-only.js +102 -0
- package/dist/rules/export-matching-filename-only.js.map +1 -0
- package/dist/rules/match-filename.d.ts +18 -0
- package/dist/rules/match-filename.d.ts.map +1 -0
- package/dist/rules/match-filename.js +119 -0
- package/dist/rules/match-filename.js.map +1 -0
- package/dist/rules/max-identifier-blocks.d.ts +9 -0
- package/dist/rules/max-identifier-blocks.d.ts.map +1 -0
- package/dist/rules/max-identifier-blocks.js +46 -0
- package/dist/rules/max-identifier-blocks.js.map +1 -0
- package/dist/rules/no-assign-mutated-array.d.ts +9 -0
- package/dist/rules/no-assign-mutated-array.d.ts.map +1 -0
- package/dist/rules/no-assign-mutated-array.js +117 -0
- package/dist/rules/no-assign-mutated-array.js.map +1 -0
- package/dist/rules/no-at-sign-import.d.ts +7 -0
- package/dist/rules/no-at-sign-import.d.ts.map +1 -0
- package/dist/rules/no-at-sign-import.js +11 -0
- package/dist/rules/no-at-sign-import.js.map +1 -0
- package/dist/rules/no-at-sign-internal-import.d.ts +7 -0
- package/dist/rules/no-at-sign-internal-import.d.ts.map +1 -0
- package/dist/rules/no-at-sign-internal-import.js +11 -0
- package/dist/rules/no-at-sign-internal-import.js.map +1 -0
- package/dist/rules/no-chain-coalescence-mixture.d.ts +10 -0
- package/dist/rules/no-chain-coalescence-mixture.d.ts.map +1 -0
- package/dist/rules/no-chain-coalescence-mixture.js +36 -0
- package/dist/rules/no-chain-coalescence-mixture.js.map +1 -0
- package/dist/rules/no-commented-out-code.d.ts +13 -0
- package/dist/rules/no-commented-out-code.d.ts.map +1 -0
- package/dist/rules/no-commented-out-code.js +220 -0
- package/dist/rules/no-commented-out-code.js.map +1 -0
- package/dist/rules/no-const-enum.d.ts +13 -0
- package/dist/rules/no-const-enum.d.ts.map +1 -0
- package/dist/rules/no-const-enum.js +90 -0
- package/dist/rules/no-const-enum.js.map +1 -0
- package/dist/rules/no-deprecated.d.ts +18 -0
- package/dist/rules/no-deprecated.d.ts.map +1 -0
- package/dist/rules/no-deprecated.js +133 -0
- package/dist/rules/no-deprecated.js.map +1 -0
- package/dist/rules/no-enum.d.ts +8 -0
- package/dist/rules/no-enum.d.ts.map +1 -0
- package/dist/rules/no-enum.js +34 -0
- package/dist/rules/no-enum.js.map +1 -0
- package/dist/rules/no-expression-empty-lines.d.ts +9 -0
- package/dist/rules/no-expression-empty-lines.d.ts.map +1 -0
- package/dist/rules/no-expression-empty-lines.js +51 -0
- package/dist/rules/no-expression-empty-lines.js.map +1 -0
- package/dist/rules/no-foreach.d.ts +13 -0
- package/dist/rules/no-foreach.d.ts.map +1 -0
- package/dist/rules/no-foreach.js +95 -0
- package/dist/rules/no-foreach.js.map +1 -0
- package/dist/rules/no-implicit-any-catch.d.ts +13 -0
- package/dist/rules/no-implicit-any-catch.d.ts.map +1 -0
- package/dist/rules/no-implicit-any-catch.js +156 -0
- package/dist/rules/no-implicit-any-catch.js.map +1 -0
- package/dist/rules/no-index-import.d.ts +7 -0
- package/dist/rules/no-index-import.d.ts.map +1 -0
- package/dist/rules/no-index-import.js +11 -0
- package/dist/rules/no-index-import.js.map +1 -0
- package/dist/rules/no-internal-modules.d.ts +7 -0
- package/dist/rules/no-internal-modules.d.ts.map +1 -0
- package/dist/rules/no-internal-modules.js +15 -0
- package/dist/rules/no-internal-modules.js.map +1 -0
- package/dist/rules/no-internal.d.ts +14 -0
- package/dist/rules/no-internal.d.ts.map +1 -0
- package/dist/rules/no-internal.js +113 -0
- package/dist/rules/no-internal.js.map +1 -0
- package/dist/rules/no-language-mixing.d.ts +9 -0
- package/dist/rules/no-language-mixing.d.ts.map +1 -0
- package/dist/rules/no-language-mixing.js +40 -0
- package/dist/rules/no-language-mixing.js.map +1 -0
- package/dist/rules/no-misused-generics.d.ts +10 -0
- package/dist/rules/no-misused-generics.d.ts.map +1 -0
- package/dist/rules/no-misused-generics.js +159 -0
- package/dist/rules/no-misused-generics.js.map +1 -0
- package/dist/rules/no-mixed-enums.d.ts +8 -0
- package/dist/rules/no-mixed-enums.d.ts.map +1 -0
- package/dist/rules/no-mixed-enums.js +25 -0
- package/dist/rules/no-mixed-enums.js.map +1 -0
- package/dist/rules/no-negated-conditions.d.ts +9 -0
- package/dist/rules/no-negated-conditions.d.ts.map +1 -0
- package/dist/rules/no-negated-conditions.js +42 -0
- package/dist/rules/no-negated-conditions.js.map +1 -0
- package/dist/rules/no-nodejs-modules.d.ts +7 -0
- package/dist/rules/no-nodejs-modules.d.ts.map +1 -0
- package/dist/rules/no-nodejs-modules.js +11 -0
- package/dist/rules/no-nodejs-modules.js.map +1 -0
- package/dist/rules/no-param-reassign.d.ts +10 -0
- package/dist/rules/no-param-reassign.d.ts.map +1 -0
- package/dist/rules/no-param-reassign.js +102 -0
- package/dist/rules/no-param-reassign.js.map +1 -0
- package/dist/rules/no-relative-parent-import.d.ts +11 -0
- package/dist/rules/no-relative-parent-import.d.ts.map +1 -0
- package/dist/rules/no-relative-parent-import.js +42 -0
- package/dist/rules/no-relative-parent-import.js.map +1 -0
- package/dist/rules/no-restricted-syntax.d.ts +18 -0
- package/dist/rules/no-restricted-syntax.d.ts.map +1 -0
- package/dist/rules/no-restricted-syntax.js +100 -0
- package/dist/rules/no-restricted-syntax.js.map +1 -0
- package/dist/rules/no-secret.d.ts +8 -0
- package/dist/rules/no-secret.d.ts.map +1 -0
- package/dist/rules/no-secret.js +37 -0
- package/dist/rules/no-secret.js.map +1 -0
- package/dist/rules/no-self-import.d.ts +13 -0
- package/dist/rules/no-self-import.d.ts.map +1 -0
- package/dist/rules/no-self-import.js +86 -0
- package/dist/rules/no-self-import.js.map +1 -0
- package/dist/rules/no-shadow.d.ts +14 -0
- package/dist/rules/no-shadow.d.ts.map +1 -0
- package/dist/rules/no-shadow.js +92 -0
- package/dist/rules/no-shadow.js.map +1 -0
- package/dist/rules/no-sibling-import.d.ts +7 -0
- package/dist/rules/no-sibling-import.d.ts.map +1 -0
- package/dist/rules/no-sibling-import.js +11 -0
- package/dist/rules/no-sibling-import.js.map +1 -0
- package/dist/rules/no-single-line-comment.d.ts +13 -0
- package/dist/rules/no-single-line-comment.d.ts.map +1 -0
- package/dist/rules/no-single-line-comment.js +88 -0
- package/dist/rules/no-single-line-comment.js.map +1 -0
- package/dist/rules/no-t.d.ts +16 -0
- package/dist/rules/no-t.d.ts.map +1 -0
- package/dist/rules/no-t.js +67 -0
- package/dist/rules/no-t.js.map +1 -0
- package/dist/rules/no-underscore-export.d.ts +9 -0
- package/dist/rules/no-underscore-export.d.ts.map +1 -0
- package/dist/rules/no-underscore-export.js +39 -0
- package/dist/rules/no-underscore-export.js.map +1 -0
- package/dist/rules/no-unnecessary-as-const.d.ts +9 -0
- package/dist/rules/no-unnecessary-as-const.d.ts.map +1 -0
- package/dist/rules/no-unnecessary-as-const.js +53 -0
- package/dist/rules/no-unnecessary-as-const.js.map +1 -0
- package/dist/rules/no-unnecessary-break.d.ts +9 -0
- package/dist/rules/no-unnecessary-break.d.ts.map +1 -0
- package/dist/rules/no-unnecessary-break.js +66 -0
- package/dist/rules/no-unnecessary-break.js.map +1 -0
- package/dist/rules/no-unnecessary-initialization.d.ts +9 -0
- package/dist/rules/no-unnecessary-initialization.d.ts.map +1 -0
- package/dist/rules/no-unnecessary-initialization.js +63 -0
- package/dist/rules/no-unnecessary-initialization.js.map +1 -0
- package/dist/rules/no-unnecessary-template-literal.d.ts +9 -0
- package/dist/rules/no-unnecessary-template-literal.d.ts.map +1 -0
- package/dist/rules/no-unnecessary-template-literal.js +47 -0
- package/dist/rules/no-unnecessary-template-literal.js.map +1 -0
- package/dist/rules/no-unused-disable.d.ts +11 -0
- package/dist/rules/no-unused-disable.d.ts.map +1 -0
- package/dist/rules/no-unused-disable.js +28 -0
- package/dist/rules/no-unused-disable.js.map +1 -0
- package/dist/rules/no-useless-generics.d.ts +8 -0
- package/dist/rules/no-useless-generics.d.ts.map +1 -0
- package/dist/rules/no-useless-generics.js +25 -0
- package/dist/rules/no-useless-generics.js.map +1 -0
- package/dist/rules/no-value-tostring.d.ts +8 -0
- package/dist/rules/no-value-tostring.d.ts.map +1 -0
- package/dist/rules/no-value-tostring.js +25 -0
- package/dist/rules/no-value-tostring.js.map +1 -0
- package/dist/rules/no-writeonly.d.ts +7 -0
- package/dist/rules/no-writeonly.d.ts.map +1 -0
- package/dist/rules/no-writeonly.js +9 -0
- package/dist/rules/no-writeonly.js.map +1 -0
- package/dist/rules/object-format.d.ts +13 -0
- package/dist/rules/object-format.d.ts.map +1 -0
- package/dist/rules/object-format.js +61 -0
- package/dist/rules/object-format.js.map +1 -0
- package/dist/rules/only-export-name.d.ts +13 -0
- package/dist/rules/only-export-name.d.ts.map +1 -0
- package/dist/rules/only-export-name.js +104 -0
- package/dist/rules/only-export-name.js.map +1 -0
- package/dist/rules/prefer-arrow-function-property.d.ts +9 -0
- package/dist/rules/prefer-arrow-function-property.d.ts.map +1 -0
- package/dist/rules/prefer-arrow-function-property.js +35 -0
- package/dist/rules/prefer-arrow-function-property.js.map +1 -0
- package/dist/rules/prefer-const-require.d.ts +9 -0
- package/dist/rules/prefer-const-require.d.ts.map +1 -0
- package/dist/rules/prefer-const-require.js +35 -0
- package/dist/rules/prefer-const-require.js.map +1 -0
- package/dist/rules/prefer-includes.d.ts +8 -0
- package/dist/rules/prefer-includes.d.ts.map +1 -0
- package/dist/rules/prefer-includes.js +25 -0
- package/dist/rules/prefer-includes.js.map +1 -0
- package/dist/rules/prefer-interface.d.ts +17 -0
- package/dist/rules/prefer-interface.d.ts.map +1 -0
- package/dist/rules/prefer-interface.js +190 -0
- package/dist/rules/prefer-interface.js.map +1 -0
- package/dist/rules/prefer-less-than.d.ts +8 -0
- package/dist/rules/prefer-less-than.d.ts.map +1 -0
- package/dist/rules/prefer-less-than.js +65 -0
- package/dist/rules/prefer-less-than.js.map +1 -0
- package/dist/rules/prefer-object-has-own.d.ts +8 -0
- package/dist/rules/prefer-object-has-own.d.ts.map +1 -0
- package/dist/rules/prefer-object-has-own.js +26 -0
- package/dist/rules/prefer-object-has-own.js.map +1 -0
- package/dist/rules/prefer-only-export.d.ts +9 -0
- package/dist/rules/prefer-only-export.d.ts.map +1 -0
- package/dist/rules/prefer-only-export.js +35 -0
- package/dist/rules/prefer-only-export.js.map +1 -0
- package/dist/rules/require-jsdoc.d.ts +18 -0
- package/dist/rules/require-jsdoc.d.ts.map +1 -0
- package/dist/rules/require-jsdoc.js +129 -0
- package/dist/rules/require-jsdoc.js.map +1 -0
- package/dist/rules/require-syntax.d.ts +14 -0
- package/dist/rules/require-syntax.d.ts.map +1 -0
- package/dist/rules/require-syntax.js +106 -0
- package/dist/rules/require-syntax.js.map +1 -0
- package/dist/rules/restrict-identifier-characters.d.ts +9 -0
- package/dist/rules/restrict-identifier-characters.d.ts.map +1 -0
- package/dist/rules/restrict-identifier-characters.js +36 -0
- package/dist/rules/restrict-identifier-characters.js.map +1 -0
- package/dist/rules/sort-array.d.ts +9 -0
- package/dist/rules/sort-array.d.ts.map +1 -0
- package/dist/rules/sort-array.js +73 -0
- package/dist/rules/sort-array.js.map +1 -0
- package/dist/rules/sort-call-signature.d.ts +9 -0
- package/dist/rules/sort-call-signature.d.ts.map +1 -0
- package/dist/rules/sort-call-signature.js +35 -0
- package/dist/rules/sort-call-signature.js.map +1 -0
- package/dist/rules/sort-class-members.d.ts +13 -0
- package/dist/rules/sort-class-members.d.ts.map +1 -0
- package/dist/rules/sort-class-members.js +90 -0
- package/dist/rules/sort-class-members.js.map +1 -0
- package/dist/rules/sort-construct-signature.d.ts +9 -0
- package/dist/rules/sort-construct-signature.d.ts.map +1 -0
- package/dist/rules/sort-construct-signature.js +35 -0
- package/dist/rules/sort-construct-signature.js.map +1 -0
- package/dist/rules/sort-export-specifiers.d.ts +9 -0
- package/dist/rules/sort-export-specifiers.d.ts.map +1 -0
- package/dist/rules/sort-export-specifiers.js +62 -0
- package/dist/rules/sort-export-specifiers.js.map +1 -0
- package/dist/rules/sort-keys.d.ts +9 -0
- package/dist/rules/sort-keys.d.ts.map +1 -0
- package/dist/rules/sort-keys.js +84 -0
- package/dist/rules/sort-keys.js.map +1 -0
- package/dist/rules/sort-top-comments.d.ts +9 -0
- package/dist/rules/sort-top-comments.d.ts.map +1 -0
- package/dist/rules/sort-top-comments.js +66 -0
- package/dist/rules/sort-top-comments.js.map +1 -0
- package/dist/rules/switch-case-spacing.d.ts +13 -0
- package/dist/rules/switch-case-spacing.d.ts.map +1 -0
- package/dist/rules/switch-case-spacing.js +72 -0
- package/dist/rules/switch-case-spacing.js.map +1 -0
- package/dist/rules/template-literal-format.d.ts +9 -0
- package/dist/rules/template-literal-format.d.ts.map +1 -0
- package/dist/rules/template-literal-format.js +70 -0
- package/dist/rules/template-literal-format.js.map +1 -0
- package/dist/rules/throw-error.d.ts +9 -0
- package/dist/rules/throw-error.d.ts.map +1 -0
- package/dist/rules/throw-error.js +123 -0
- package/dist/rules/throw-error.js.map +1 -0
- package/dist/rules/throw-new-error.d.ts +8 -0
- package/dist/rules/throw-new-error.d.ts.map +1 -0
- package/dist/rules/throw-new-error.js +25 -0
- package/dist/rules/throw-new-error.js.map +1 -0
- package/dist/rules/typescript-array-callback-return-type.d.ts +9 -0
- package/dist/rules/typescript-array-callback-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-array-callback-return-type.js +80 -0
- package/dist/rules/typescript-array-callback-return-type.js.map +1 -0
- package/dist/rules/typescript-class-methods-use-this.d.ts +13 -0
- package/dist/rules/typescript-class-methods-use-this.d.ts.map +1 -0
- package/dist/rules/typescript-class-methods-use-this.js +99 -0
- package/dist/rules/typescript-class-methods-use-this.js.map +1 -0
- package/dist/rules/typescript-consistent-array-type-name.d.ts +9 -0
- package/dist/rules/typescript-consistent-array-type-name.d.ts.map +1 -0
- package/dist/rules/typescript-consistent-array-type-name.js +36 -0
- package/dist/rules/typescript-consistent-array-type-name.js.map +1 -0
- package/dist/rules/typescript-define-function-in-one-statement.d.ts +9 -0
- package/dist/rules/typescript-define-function-in-one-statement.d.ts.map +1 -0
- package/dist/rules/typescript-define-function-in-one-statement.js +35 -0
- package/dist/rules/typescript-define-function-in-one-statement.js.map +1 -0
- package/dist/rules/typescript-exhaustive-switch.d.ts +13 -0
- package/dist/rules/typescript-exhaustive-switch.d.ts.map +1 -0
- package/dist/rules/typescript-exhaustive-switch.js +55 -0
- package/dist/rules/typescript-exhaustive-switch.js.map +1 -0
- package/dist/rules/typescript-no-boolean-literal-type.d.ts +9 -0
- package/dist/rules/typescript-no-boolean-literal-type.d.ts.map +1 -0
- package/dist/rules/typescript-no-boolean-literal-type.js +43 -0
- package/dist/rules/typescript-no-boolean-literal-type.js.map +1 -0
- package/dist/rules/typescript-no-complex-declarator-type.d.ts +9 -0
- package/dist/rules/typescript-no-complex-declarator-type.d.ts.map +1 -0
- package/dist/rules/typescript-no-complex-declarator-type.js +35 -0
- package/dist/rules/typescript-no-complex-declarator-type.js.map +1 -0
- package/dist/rules/typescript-no-complex-return-type.d.ts +9 -0
- package/dist/rules/typescript-no-complex-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-no-complex-return-type.js +35 -0
- package/dist/rules/typescript-no-complex-return-type.js.map +1 -0
- package/dist/rules/typescript-no-empty-interfaces.d.ts +10 -0
- package/dist/rules/typescript-no-empty-interfaces.d.ts.map +1 -0
- package/dist/rules/typescript-no-empty-interfaces.js +55 -0
- package/dist/rules/typescript-no-empty-interfaces.js.map +1 -0
- package/dist/rules/typescript-no-inferrable-types.d.ts +13 -0
- package/dist/rules/typescript-no-inferrable-types.d.ts.map +1 -0
- package/dist/rules/typescript-no-inferrable-types.js +58 -0
- package/dist/rules/typescript-no-inferrable-types.js.map +1 -0
- package/dist/rules/typescript-no-multi-type-tuples.d.ts +9 -0
- package/dist/rules/typescript-no-multi-type-tuples.d.ts.map +1 -0
- package/dist/rules/typescript-no-multi-type-tuples.js +35 -0
- package/dist/rules/typescript-no-multi-type-tuples.js.map +1 -0
- package/dist/rules/typescript-no-never.d.ts +9 -0
- package/dist/rules/typescript-no-never.d.ts.map +1 -0
- package/dist/rules/typescript-no-never.js +50 -0
- package/dist/rules/typescript-no-never.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-const.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-const.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-const.js +130 -0
- package/dist/rules/typescript-no-redundant-undefined-const.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-default-parameter.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-default-parameter.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-default-parameter.js +165 -0
- package/dist/rules/typescript-no-redundant-undefined-default-parameter.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-let.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-let.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-let.js +134 -0
- package/dist/rules/typescript-no-redundant-undefined-let.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-optional.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-optional.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-optional.js +77 -0
- package/dist/rules/typescript-no-redundant-undefined-optional.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-promise-return-type.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-promise-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-promise-return-type.js +179 -0
- package/dist/rules/typescript-no-redundant-undefined-promise-return-type.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-readonly-property.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-readonly-property.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-readonly-property.js +125 -0
- package/dist/rules/typescript-no-redundant-undefined-readonly-property.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-return-type.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-return-type.js +154 -0
- package/dist/rules/typescript-no-redundant-undefined-return-type.js.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-var.d.ts +10 -0
- package/dist/rules/typescript-no-redundant-undefined-var.d.ts.map +1 -0
- package/dist/rules/typescript-no-redundant-undefined-var.js +134 -0
- package/dist/rules/typescript-no-redundant-undefined-var.js.map +1 -0
- package/dist/rules/typescript-no-restricted-syntax.d.ts +11 -0
- package/dist/rules/typescript-no-restricted-syntax.d.ts.map +1 -0
- package/dist/rules/typescript-no-restricted-syntax.js +40 -0
- package/dist/rules/typescript-no-restricted-syntax.js.map +1 -0
- package/dist/rules/typescript-no-unsafe-object-assign.d.ts +9 -0
- package/dist/rules/typescript-no-unsafe-object-assign.d.ts.map +1 -0
- package/dist/rules/typescript-no-unsafe-object-assign.js +53 -0
- package/dist/rules/typescript-no-unsafe-object-assign.js.map +1 -0
- package/dist/rules/typescript-no-unsafe-object-assignment.d.ts +7 -0
- package/dist/rules/typescript-no-unsafe-object-assignment.d.ts.map +1 -0
- package/dist/rules/typescript-no-unsafe-object-assignment.js +20 -0
- package/dist/rules/typescript-no-unsafe-object-assignment.js.map +1 -0
- package/dist/rules/typescript-prefer-array-type-alias.d.ts +9 -0
- package/dist/rules/typescript-prefer-array-type-alias.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-array-type-alias.js +36 -0
- package/dist/rules/typescript-prefer-array-type-alias.js.map +1 -0
- package/dist/rules/typescript-prefer-class-method.d.ts +9 -0
- package/dist/rules/typescript-prefer-class-method.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-class-method.js +35 -0
- package/dist/rules/typescript-prefer-class-method.js.map +1 -0
- package/dist/rules/typescript-prefer-enum.d.ts +9 -0
- package/dist/rules/typescript-prefer-enum.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-enum.js +132 -0
- package/dist/rules/typescript-prefer-enum.js.map +1 -0
- package/dist/rules/typescript-prefer-named-tuple-members.d.ts +9 -0
- package/dist/rules/typescript-prefer-named-tuple-members.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-named-tuple-members.js +108 -0
- package/dist/rules/typescript-prefer-named-tuple-members.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-array-parameter.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-array-parameter.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-array-parameter.js +123 -0
- package/dist/rules/typescript-prefer-readonly-array-parameter.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-array.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-array.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-array.js +51 -0
- package/dist/rules/typescript-prefer-readonly-array.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-index-signature.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-index-signature.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-index-signature.js +40 -0
- package/dist/rules/typescript-prefer-readonly-index-signature.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-map.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-map.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-map.js +40 -0
- package/dist/rules/typescript-prefer-readonly-map.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-property.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-property.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-property.js +58 -0
- package/dist/rules/typescript-prefer-readonly-property.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-record.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-record.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-record.js +60 -0
- package/dist/rules/typescript-prefer-readonly-record.js.map +1 -0
- package/dist/rules/typescript-prefer-readonly-set.d.ts +9 -0
- package/dist/rules/typescript-prefer-readonly-set.d.ts.map +1 -0
- package/dist/rules/typescript-prefer-readonly-set.js +40 -0
- package/dist/rules/typescript-prefer-readonly-set.js.map +1 -0
- package/dist/rules/typescript-require-prop-type-annotation.d.ts +9 -0
- package/dist/rules/typescript-require-prop-type-annotation.d.ts.map +1 -0
- package/dist/rules/typescript-require-prop-type-annotation.js +58 -0
- package/dist/rules/typescript-require-prop-type-annotation.js.map +1 -0
- package/dist/rules/typescript-require-readonly-array-property-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-array-property-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-array-property-type.js +91 -0
- package/dist/rules/typescript-require-readonly-array-property-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-array-return-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-array-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-array-return-type.js +93 -0
- package/dist/rules/typescript-require-readonly-array-return-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-array-type-alias.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-array-type-alias.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-array-type-alias.js +73 -0
- package/dist/rules/typescript-require-readonly-array-type-alias.js.map +1 -0
- package/dist/rules/typescript-require-readonly-map-parameter-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-map-parameter-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-map-parameter-type.js +109 -0
- package/dist/rules/typescript-require-readonly-map-parameter-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-map-property-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-map-property-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-map-property-type.js +77 -0
- package/dist/rules/typescript-require-readonly-map-property-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-map-return-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-map-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-map-return-type.js +79 -0
- package/dist/rules/typescript-require-readonly-map-return-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-map-type-alias.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-map-type-alias.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-map-type-alias.js +59 -0
- package/dist/rules/typescript-require-readonly-map-type-alias.js.map +1 -0
- package/dist/rules/typescript-require-readonly-record-parameter-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-record-parameter-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-record-parameter-type.js +124 -0
- package/dist/rules/typescript-require-readonly-record-parameter-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-record-property-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-record-property-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-record-property-type.js +92 -0
- package/dist/rules/typescript-require-readonly-record-property-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-record-return-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-record-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-record-return-type.js +94 -0
- package/dist/rules/typescript-require-readonly-record-return-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-record-type-alias.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-record-type-alias.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-record-type-alias.js +74 -0
- package/dist/rules/typescript-require-readonly-record-type-alias.js.map +1 -0
- package/dist/rules/typescript-require-readonly-set-parameter-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-set-parameter-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-set-parameter-type.js +109 -0
- package/dist/rules/typescript-require-readonly-set-parameter-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-set-property-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-set-property-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-set-property-type.js +77 -0
- package/dist/rules/typescript-require-readonly-set-property-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-set-return-type.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-set-return-type.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-set-return-type.js +79 -0
- package/dist/rules/typescript-require-readonly-set-return-type.js.map +1 -0
- package/dist/rules/typescript-require-readonly-set-type-alias.d.ts +9 -0
- package/dist/rules/typescript-require-readonly-set-type-alias.d.ts.map +1 -0
- package/dist/rules/typescript-require-readonly-set-type-alias.js +59 -0
- package/dist/rules/typescript-require-readonly-set-type-alias.js.map +1 -0
- package/dist/rules/typescript-require-this-void.d.ts +9 -0
- package/dist/rules/typescript-require-this-void.d.ts.map +1 -0
- package/dist/rules/typescript-require-this-void.js +71 -0
- package/dist/rules/typescript-require-this-void.js.map +1 -0
- package/dist/rules/underscore-internal.d.ts +8 -0
- package/dist/rules/underscore-internal.d.ts.map +1 -0
- package/dist/rules/underscore-internal.js +116 -0
- package/dist/rules/underscore-internal.js.map +1 -0
- package/dist/rules/unused-internal-properties.d.ts +11 -0
- package/dist/rules/unused-internal-properties.d.ts.map +1 -0
- package/dist/rules/unused-internal-properties.js +28 -0
- package/dist/rules/unused-internal-properties.js.map +1 -0
- package/dist/rules/uppercase-iife.d.ts +11 -0
- package/dist/rules/uppercase-iife.d.ts.map +1 -0
- package/dist/rules/uppercase-iife.js +28 -0
- package/dist/rules/uppercase-iife.js.map +1 -0
- package/dist/rules/words.d.ts +11 -0
- package/dist/rules/words.d.ts.map +1 -0
- package/dist/rules/words.js +28 -0
- package/dist/rules/words.js.map +1 -0
- package/dist/rules.d.ts +21 -0
- package/dist/rules.d.ts.map +1 -0
- package/dist/rules.js +355 -0
- package/dist/rules.js.map +1 -0
- package/docs/docusaurus/blog/2026-03-09-docs-site-online.md +19 -0
- package/docs/docusaurus/blog/2026-03-11-adr-driven-docs-roadmap.md +31 -0
- package/docs/docusaurus/blog/authors.yml +18 -0
- package/docs/docusaurus/docusaurus.config.ts +457 -0
- package/docs/docusaurus/package.json +116 -0
- package/docs/docusaurus/sidebars.rules.ts +379 -0
- package/docs/docusaurus/sidebars.ts +136 -0
- package/docs/docusaurus/site-docs/architecture/adr/0001-flat-config-first-plugin-shape.md +41 -0
- package/docs/docusaurus/site-docs/architecture/adr/0002-rule-docs-coverage-enforcement.md +42 -0
- package/docs/docusaurus/site-docs/architecture/adr/0003-unified-etc-misc-curation-strategy.md +55 -0
- package/docs/docusaurus/site-docs/architecture/adr/0004-generated-rule-catalog-source-of-truth.md +50 -0
- package/docs/docusaurus/site-docs/architecture/adr/0005-risk-tiered-recommended-preset-strategy.md +50 -0
- package/docs/docusaurus/site-docs/architecture/adr/index.md +24 -0
- package/docs/docusaurus/site-docs/getting-started.md +48 -0
- package/docs/docusaurus/site-docs/guides/blog-post-backlog.md +28 -0
- package/docs/docusaurus/site-docs/guides/docs-maintenance-playbook.md +49 -0
- package/docs/docusaurus/site-docs/guides/migration-from-etc-and-misc.md +88 -0
- package/docs/docusaurus/site-docs/intro.md +39 -0
- package/docs/docusaurus/site-docs/releasing.md +95 -0
- package/docs/docusaurus/src/components/GitHubStats.jsx +72 -0
- package/docs/docusaurus/src/css/custom.css +570 -0
- package/docs/docusaurus/src/css/custom.css.d.ts +22 -0
- package/docs/docusaurus/src/js/modernEnhancements.ts +219 -0
- package/docs/docusaurus/src/pages/index.jsx +201 -0
- package/docs/docusaurus/src/pages/index.module.css +588 -0
- package/docs/docusaurus/src/pages/index.module.css.d.ts +48 -0
- package/docs/docusaurus/static/img/apple-touch-icon.png +0 -0
- package/docs/docusaurus/static/img/favicon-96x96.png +0 -0
- package/docs/docusaurus/static/img/favicon.ico +0 -0
- package/docs/docusaurus/static/img/favicon.svg +1 -0
- package/docs/docusaurus/static/img/logo-128x128.svg +401 -0
- package/docs/docusaurus/static/img/logo.png +0 -0
- package/docs/docusaurus/static/img/logo.svg +399 -0
- package/docs/docusaurus/static/img/logo_128x128.png +0 -0
- package/docs/docusaurus/static/img/logo_192x192.png +0 -0
- package/docs/docusaurus/static/img/site.webmanifest +21 -0
- package/docs/docusaurus/static/img/web-app-manifest-192x192.png +0 -0
- package/docs/docusaurus/static/img/web-app-manifest-512x512.png +0 -0
- package/docs/docusaurus/static/manifest.json +22 -0
- package/docs/docusaurus/tsconfig.json +30 -0
- package/docs/docusaurus/tsconfig.typedoc.json +20 -0
- package/docs/docusaurus/typedoc-plugins/hashToBangLinks.mjs +61 -0
- package/docs/docusaurus/typedoc-plugins/hashToBangLinksCore.d.mts +31 -0
- package/docs/docusaurus/typedoc-plugins/hashToBangLinksCore.mjs +154 -0
- package/docs/docusaurus/typedoc-plugins/prefixDocLinks.mjs +46 -0
- package/docs/docusaurus/typedoc-plugins/prefixDocLinksCore.d.mts +18 -0
- package/docs/docusaurus/typedoc-plugins/prefixDocLinksCore.mjs +410 -0
- package/docs/docusaurus/typedoc.config.json +610 -0
- package/docs/docusaurus/typedoc.local.config.json +610 -0
- package/docs/rules/array-type.md +82 -0
- package/docs/rules/class-match-filename.md +95 -0
- package/docs/rules/comment-spacing.md +131 -0
- package/docs/rules/consistent-empty-lines.md +104 -0
- package/docs/rules/consistent-enum-members.md +112 -0
- package/docs/rules/consistent-filename.md +116 -0
- package/docs/rules/consistent-import.md +128 -0
- package/docs/rules/consistent-optional-props.md +114 -0
- package/docs/rules/consistent-source-extension.md +106 -0
- package/docs/rules/consistent-symbol-description.md +91 -0
- package/docs/rules/default-case.md +95 -0
- package/docs/rules/disallow-import.md +108 -0
- package/docs/rules/export-matching-filename-only.md +115 -0
- package/docs/rules/getting-started.md +66 -0
- package/docs/rules/guides/adoption-checklist.md +37 -0
- package/docs/rules/guides/rollout-and-fix-safety.md +42 -0
- package/docs/rules/match-filename.md +119 -0
- package/docs/rules/max-identifier-blocks.md +94 -0
- package/docs/rules/no-assign-mutated-array.md +119 -0
- package/docs/rules/no-at-sign-import.md +97 -0
- package/docs/rules/no-at-sign-internal-import.md +98 -0
- package/docs/rules/no-chain-coalescence-mixture.md +93 -0
- package/docs/rules/no-commented-out-code.md +126 -0
- package/docs/rules/no-const-enum.md +109 -0
- package/docs/rules/no-deprecated.md +175 -0
- package/docs/rules/no-enum.md +98 -0
- package/docs/rules/no-expression-empty-lines.md +100 -0
- package/docs/rules/no-foreach.md +108 -0
- package/docs/rules/no-implicit-any-catch.md +159 -0
- package/docs/rules/no-index-import.md +101 -0
- package/docs/rules/no-internal-modules.md +111 -0
- package/docs/rules/no-internal.md +168 -0
- package/docs/rules/no-language-mixing.md +89 -0
- package/docs/rules/no-misused-generics.md +105 -0
- package/docs/rules/no-mixed-enums.md +96 -0
- package/docs/rules/no-negated-conditions.md +98 -0
- package/docs/rules/no-nodejs-modules.md +103 -0
- package/docs/rules/no-param-reassign.md +110 -0
- package/docs/rules/no-relative-parent-import.md +118 -0
- package/docs/rules/no-restricted-syntax.md +140 -0
- package/docs/rules/no-secret.md +86 -0
- package/docs/rules/no-self-import.md +107 -0
- package/docs/rules/no-shadow.md +109 -0
- package/docs/rules/no-sibling-import.md +109 -0
- package/docs/rules/no-single-line-comment.md +109 -0
- package/docs/rules/no-t.md +128 -0
- package/docs/rules/no-underscore-export.md +93 -0
- package/docs/rules/no-unnecessary-as-const.md +96 -0
- package/docs/rules/no-unnecessary-break.md +99 -0
- package/docs/rules/no-unnecessary-initialization.md +93 -0
- package/docs/rules/no-unnecessary-template-literal.md +92 -0
- package/docs/rules/no-unused-disable.md +88 -0
- package/docs/rules/no-useless-generics.md +95 -0
- package/docs/rules/no-value-tostring.md +90 -0
- package/docs/rules/no-writeonly.md +102 -0
- package/docs/rules/object-format.md +118 -0
- package/docs/rules/only-export-name.md +120 -0
- package/docs/rules/overview.md +46 -0
- package/docs/rules/prefer-arrow-function-property.md +108 -0
- package/docs/rules/prefer-const-require.md +91 -0
- package/docs/rules/prefer-includes.md +83 -0
- package/docs/rules/prefer-interface.md +156 -0
- package/docs/rules/prefer-less-than.md +98 -0
- package/docs/rules/prefer-object-has-own.md +82 -0
- package/docs/rules/prefer-only-export.md +89 -0
- package/docs/rules/presets/all-strict.md +160 -0
- package/docs/rules/presets/all.md +177 -0
- package/docs/rules/presets/recommended.md +55 -0
- package/docs/rules/presets/strict-type-checked.md +66 -0
- package/docs/rules/presets/strict.md +51 -0
- package/docs/rules/require-jsdoc.md +151 -0
- package/docs/rules/require-syntax.md +129 -0
- package/docs/rules/restrict-identifier-characters.md +88 -0
- package/docs/rules/rule-catalog-map.json +912 -0
- package/docs/rules/sort-array.md +91 -0
- package/docs/rules/sort-call-signature.md +98 -0
- package/docs/rules/sort-class-members.md +115 -0
- package/docs/rules/sort-construct-signature.md +96 -0
- package/docs/rules/sort-export-specifiers.md +89 -0
- package/docs/rules/sort-keys.md +107 -0
- package/docs/rules/sort-top-comments.md +92 -0
- package/docs/rules/switch-case-spacing.md +110 -0
- package/docs/rules/template-literal-format.md +100 -0
- package/docs/rules/throw-error.md +110 -0
- package/docs/rules/throw-new-error.md +81 -0
- package/docs/rules/typescript-array-callback-return-type.md +127 -0
- package/docs/rules/typescript-class-methods-use-this.md +120 -0
- package/docs/rules/typescript-consistent-array-type-name.md +93 -0
- package/docs/rules/typescript-define-function-in-one-statement.md +90 -0
- package/docs/rules/typescript-exhaustive-switch.md +114 -0
- package/docs/rules/typescript-no-boolean-literal-type.md +94 -0
- package/docs/rules/typescript-no-complex-declarator-type.md +96 -0
- package/docs/rules/typescript-no-complex-return-type.md +90 -0
- package/docs/rules/typescript-no-empty-interfaces.md +99 -0
- package/docs/rules/typescript-no-inferrable-types.md +102 -0
- package/docs/rules/typescript-no-multi-type-tuples.md +87 -0
- package/docs/rules/typescript-no-never.md +93 -0
- package/docs/rules/typescript-no-redundant-undefined-const.md +101 -0
- package/docs/rules/typescript-no-redundant-undefined-default-parameter.md +117 -0
- package/docs/rules/typescript-no-redundant-undefined-let.md +106 -0
- package/docs/rules/typescript-no-redundant-undefined-optional.md +106 -0
- package/docs/rules/typescript-no-redundant-undefined-promise-return-type.md +134 -0
- package/docs/rules/typescript-no-redundant-undefined-readonly-property.md +110 -0
- package/docs/rules/typescript-no-redundant-undefined-return-type.md +131 -0
- package/docs/rules/typescript-no-redundant-undefined-var.md +106 -0
- package/docs/rules/typescript-no-restricted-syntax.md +119 -0
- package/docs/rules/typescript-no-unsafe-object-assign.md +91 -0
- package/docs/rules/typescript-no-unsafe-object-assignment.md +93 -0
- package/docs/rules/typescript-prefer-array-type-alias.md +87 -0
- package/docs/rules/typescript-prefer-class-method.md +87 -0
- package/docs/rules/typescript-prefer-enum.md +99 -0
- package/docs/rules/typescript-prefer-named-tuple-members.md +104 -0
- package/docs/rules/typescript-prefer-readonly-array-parameter.md +106 -0
- package/docs/rules/typescript-prefer-readonly-array.md +86 -0
- package/docs/rules/typescript-prefer-readonly-index-signature.md +94 -0
- package/docs/rules/typescript-prefer-readonly-map.md +83 -0
- package/docs/rules/typescript-prefer-readonly-property.md +91 -0
- package/docs/rules/typescript-prefer-readonly-record.md +84 -0
- package/docs/rules/typescript-prefer-readonly-set.md +82 -0
- package/docs/rules/typescript-require-prop-type-annotation.md +91 -0
- package/docs/rules/typescript-require-readonly-array-property-type.md +111 -0
- package/docs/rules/typescript-require-readonly-array-return-type.md +113 -0
- package/docs/rules/typescript-require-readonly-array-type-alias.md +102 -0
- package/docs/rules/typescript-require-readonly-map-parameter-type.md +99 -0
- package/docs/rules/typescript-require-readonly-map-property-type.md +103 -0
- package/docs/rules/typescript-require-readonly-map-return-type.md +105 -0
- package/docs/rules/typescript-require-readonly-map-type-alias.md +92 -0
- package/docs/rules/typescript-require-readonly-record-parameter-type.md +100 -0
- package/docs/rules/typescript-require-readonly-record-property-type.md +102 -0
- package/docs/rules/typescript-require-readonly-record-return-type.md +108 -0
- package/docs/rules/typescript-require-readonly-record-type-alias.md +93 -0
- package/docs/rules/typescript-require-readonly-set-parameter-type.md +99 -0
- package/docs/rules/typescript-require-readonly-set-property-type.md +103 -0
- package/docs/rules/typescript-require-readonly-set-return-type.md +105 -0
- package/docs/rules/typescript-require-readonly-set-type-alias.md +92 -0
- package/docs/rules/typescript-require-this-void.md +95 -0
- package/docs/rules/underscore-internal.md +112 -0
- package/docs/rules/unused-internal-properties.md +100 -0
- package/docs/rules/uppercase-iife.md +82 -0
- package/docs/rules/words.md +83 -0
- package/package.json +546 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# prefer-object-has-own
|
|
2
|
+
|
|
3
|
+
Prefer `Object.hasOwn(...)` over `Object.prototype.hasOwnProperty.call(...)`.
|
|
4
|
+
|
|
5
|
+
## Targeted pattern scope
|
|
6
|
+
|
|
7
|
+
This rule targets property-ownership checks using `hasOwnProperty.call`.
|
|
8
|
+
|
|
9
|
+
## What this rule reports
|
|
10
|
+
|
|
11
|
+
This rule reports legacy `Object.prototype.hasOwnProperty.call(...)` patterns.
|
|
12
|
+
|
|
13
|
+
## Why this rule exists
|
|
14
|
+
|
|
15
|
+
`Object.hasOwn(...)` is shorter, clearer, and less error-prone.
|
|
16
|
+
|
|
17
|
+
## ❌ Incorrect
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
Object.prototype.hasOwnProperty.call(record, "id");
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## ✅ Correct
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
Object.hasOwn(record, "id");
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Behavior and migration notes
|
|
30
|
+
|
|
31
|
+
This rule forwards options and behavior to ESLint core
|
|
32
|
+
`prefer-object-has-own`.
|
|
33
|
+
|
|
34
|
+
- **Lifecycle:** Deprecated and frozen.
|
|
35
|
+
- **Deprecated since:** `v1.0.0`
|
|
36
|
+
- **Available until:** `v2.0.0`
|
|
37
|
+
- **Use instead:** [`prefer-object-has-own` (ESLint core)](https://eslint.org/docs/latest/rules/prefer-object-has-own)
|
|
38
|
+
|
|
39
|
+
## Additional examples
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
Object.prototype.hasOwnProperty.call(config, "port");
|
|
43
|
+
// ❌ reported
|
|
44
|
+
|
|
45
|
+
Object.hasOwn(config, "port");
|
|
46
|
+
// ✅ valid
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## ESLint flat config example
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
53
|
+
|
|
54
|
+
export default [
|
|
55
|
+
{
|
|
56
|
+
plugins: { "etc-misc": etcMisc },
|
|
57
|
+
rules: {
|
|
58
|
+
"etc-misc/prefer-object-has-own": "error",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## When not to use it
|
|
65
|
+
|
|
66
|
+
Disable this rule if you must support runtimes without `Object.hasOwn(...)` and
|
|
67
|
+
cannot polyfill it.
|
|
68
|
+
|
|
69
|
+
## Package documentation
|
|
70
|
+
|
|
71
|
+
- [eslint-plugin-etc-misc README](https://github.com/Nick2bad4u/eslint-plugin-etc-misc#readme)
|
|
72
|
+
|
|
73
|
+
> **Rule catalog ID:** R060
|
|
74
|
+
|
|
75
|
+
## Further reading
|
|
76
|
+
|
|
77
|
+
- [ESLint: `prefer-object-has-own`](https://eslint.org/docs/latest/rules/prefer-object-has-own)
|
|
78
|
+
|
|
79
|
+
## Adoption resources
|
|
80
|
+
|
|
81
|
+
- Start at warning level in CI, then move to error after cleanup.
|
|
82
|
+
- Use focused codemods/autofix batches per package or directory.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# prefer-only-export
|
|
2
|
+
|
|
3
|
+
Disallow additional exports alongside a default export.
|
|
4
|
+
|
|
5
|
+
## Targeted pattern scope
|
|
6
|
+
|
|
7
|
+
This rule targets program bodies where both are true:
|
|
8
|
+
|
|
9
|
+
- a `default` export exists, and
|
|
10
|
+
- the file has more than one top-level statement.
|
|
11
|
+
|
|
12
|
+
## What this rule reports
|
|
13
|
+
|
|
14
|
+
This rule reports files that contain `export default` plus any additional
|
|
15
|
+
top-level statement (including non-export statements).
|
|
16
|
+
|
|
17
|
+
## Why this rule exists
|
|
18
|
+
|
|
19
|
+
Some teams enforce a strict module contract: either a module exposes one default
|
|
20
|
+
value, or it exposes named exports, but not both. Mixing both styles can make
|
|
21
|
+
imports inconsistent across the codebase.
|
|
22
|
+
|
|
23
|
+
## ❌ Incorrect
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
export default 1;
|
|
27
|
+
export const x = 1;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## ✅ Correct
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
export default 1;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
export const x = 1;
|
|
38
|
+
export const y = 2;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Behavior and migration notes
|
|
42
|
+
|
|
43
|
+
This rule has no options.
|
|
44
|
+
|
|
45
|
+
## Additional examples
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
export default function main() {}
|
|
49
|
+
const helper = 1;
|
|
50
|
+
// ❌ reported by current implementation (second top-level statement)
|
|
51
|
+
|
|
52
|
+
export default function main() {}
|
|
53
|
+
// ✅ valid
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## ESLint flat config example
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
60
|
+
|
|
61
|
+
export default [
|
|
62
|
+
{
|
|
63
|
+
plugins: { "etc-misc": etcMisc },
|
|
64
|
+
rules: {
|
|
65
|
+
"etc-misc/prefer-only-export": "error",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## When not to use it
|
|
72
|
+
|
|
73
|
+
Disable this rule if combining default and named exports is allowed in your modules.
|
|
74
|
+
|
|
75
|
+
## Package documentation
|
|
76
|
+
|
|
77
|
+
- [eslint-plugin-etc-misc README](https://github.com/Nick2bad4u/eslint-plugin-etc-misc#readme)
|
|
78
|
+
|
|
79
|
+
> **Rule catalog ID:** R061
|
|
80
|
+
|
|
81
|
+
## Further reading
|
|
82
|
+
|
|
83
|
+
- [MDN: `export` statement](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/export)
|
|
84
|
+
- [TypeScript Handbook: Modules](https://www.typescriptlang.org/docs/handbook/modules/introduction.html)
|
|
85
|
+
|
|
86
|
+
## Adoption resources
|
|
87
|
+
|
|
88
|
+
- Start at warning level in CI, then move to error after cleanup.
|
|
89
|
+
- Use focused codemods/autofix batches per package or directory.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: All Strict preset
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 🔴 All Strict
|
|
6
|
+
|
|
7
|
+
Use this preset when you want near-maximum enforcement across the entire plugin
|
|
8
|
+
surface.
|
|
9
|
+
|
|
10
|
+
## Config key
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
etcMisc.configs.allStrict
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Flat Config example
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
20
|
+
|
|
21
|
+
export default [etcMisc.configs.allStrict];
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Rules in this preset
|
|
25
|
+
|
|
26
|
+
- [`etc-misc/array-type`](../array-type.md) (R001)
|
|
27
|
+
- [`etc-misc/class-match-filename`](../class-match-filename.md) (R002)
|
|
28
|
+
- [`etc-misc/comment-spacing`](../comment-spacing.md) (R003)
|
|
29
|
+
- [`etc-misc/consistent-empty-lines`](../consistent-empty-lines.md) (R004)
|
|
30
|
+
- [`etc-misc/consistent-enum-members`](../consistent-enum-members.md) (R005)
|
|
31
|
+
- [`etc-misc/consistent-filename`](../consistent-filename.md) (R006)
|
|
32
|
+
- [`etc-misc/consistent-import`](../consistent-import.md) (R007)
|
|
33
|
+
- [`etc-misc/consistent-optional-props`](../consistent-optional-props.md) (R008)
|
|
34
|
+
- [`etc-misc/consistent-source-extension`](../consistent-source-extension.md) (R009)
|
|
35
|
+
- [`etc-misc/consistent-symbol-description`](../consistent-symbol-description.md) (R010)
|
|
36
|
+
- [`etc-misc/default-case`](../default-case.md) (R011)
|
|
37
|
+
- [`etc-misc/disallow-import`](../disallow-import.md) (R012)
|
|
38
|
+
- [`etc-misc/export-matching-filename-only`](../export-matching-filename-only.md) (R013)
|
|
39
|
+
- [`etc-misc/match-filename`](../match-filename.md) (R014)
|
|
40
|
+
- [`etc-misc/max-identifier-blocks`](../max-identifier-blocks.md) (R015)
|
|
41
|
+
- [`etc-misc/no-assign-mutated-array`](../no-assign-mutated-array.md) (R016)
|
|
42
|
+
- [`etc-misc/no-at-sign-import`](../no-at-sign-import.md) (R017)
|
|
43
|
+
- [`etc-misc/no-at-sign-internal-import`](../no-at-sign-internal-import.md) (R018)
|
|
44
|
+
- [`etc-misc/no-chain-coalescence-mixture`](../no-chain-coalescence-mixture.md) (R019)
|
|
45
|
+
- [`etc-misc/no-commented-out-code`](../no-commented-out-code.md) (R020)
|
|
46
|
+
- [`etc-misc/no-const-enum`](../no-const-enum.md) (R021)
|
|
47
|
+
- [`etc-misc/no-deprecated`](../no-deprecated.md) (R022)
|
|
48
|
+
- [`etc-misc/no-enum`](../no-enum.md) (R023)
|
|
49
|
+
- [`etc-misc/no-expression-empty-lines`](../no-expression-empty-lines.md) (R024)
|
|
50
|
+
- [`etc-misc/no-foreach`](../no-foreach.md) (R025)
|
|
51
|
+
- [`etc-misc/no-implicit-any-catch`](../no-implicit-any-catch.md) (R026)
|
|
52
|
+
- [`etc-misc/no-index-import`](../no-index-import.md) (R027)
|
|
53
|
+
- [`etc-misc/no-internal-modules`](../no-internal-modules.md) (R029)
|
|
54
|
+
- [`etc-misc/no-internal`](../no-internal.md) (R028)
|
|
55
|
+
- [`etc-misc/no-language-mixing`](../no-language-mixing.md) (R030)
|
|
56
|
+
- [`etc-misc/no-misused-generics`](../no-misused-generics.md) (R031)
|
|
57
|
+
- [`etc-misc/no-mixed-enums`](../no-mixed-enums.md) (R032)
|
|
58
|
+
- [`etc-misc/no-negated-conditions`](../no-negated-conditions.md) (R033)
|
|
59
|
+
- [`etc-misc/no-nodejs-modules`](../no-nodejs-modules.md) (R034)
|
|
60
|
+
- [`etc-misc/no-param-reassign`](../no-param-reassign.md) (R035)
|
|
61
|
+
- [`etc-misc/no-relative-parent-import`](../no-relative-parent-import.md) (R036)
|
|
62
|
+
- [`etc-misc/no-restricted-syntax`](../no-restricted-syntax.md) (R037)
|
|
63
|
+
- [`etc-misc/no-secret`](../no-secret.md) (R038)
|
|
64
|
+
- [`etc-misc/no-self-import`](../no-self-import.md) (R039)
|
|
65
|
+
- [`etc-misc/no-shadow`](../no-shadow.md) (R040)
|
|
66
|
+
- [`etc-misc/no-sibling-import`](../no-sibling-import.md) (R041)
|
|
67
|
+
- [`etc-misc/no-single-line-comment`](../no-single-line-comment.md) (R042)
|
|
68
|
+
- [`etc-misc/no-t`](../no-t.md) (R043)
|
|
69
|
+
- [`etc-misc/no-underscore-export`](../no-underscore-export.md) (R044)
|
|
70
|
+
- [`etc-misc/no-unnecessary-as-const`](../no-unnecessary-as-const.md) (R045)
|
|
71
|
+
- [`etc-misc/no-unnecessary-break`](../no-unnecessary-break.md) (R046)
|
|
72
|
+
- [`etc-misc/no-unnecessary-initialization`](../no-unnecessary-initialization.md) (R047)
|
|
73
|
+
- [`etc-misc/no-unnecessary-template-literal`](../no-unnecessary-template-literal.md) (R048)
|
|
74
|
+
- [`etc-misc/no-unused-disable`](../no-unused-disable.md) (R049)
|
|
75
|
+
- [`etc-misc/no-useless-generics`](../no-useless-generics.md) (R050)
|
|
76
|
+
- [`etc-misc/no-value-tostring`](../no-value-tostring.md) (R051)
|
|
77
|
+
- [`etc-misc/no-writeonly`](../no-writeonly.md) (R052)
|
|
78
|
+
- [`etc-misc/object-format`](../object-format.md) (R053)
|
|
79
|
+
- [`etc-misc/only-export-name`](../only-export-name.md) (R054)
|
|
80
|
+
- [`etc-misc/prefer-arrow-function-property`](../prefer-arrow-function-property.md) (R055)
|
|
81
|
+
- [`etc-misc/prefer-const-require`](../prefer-const-require.md) (R056)
|
|
82
|
+
- [`etc-misc/prefer-includes`](../prefer-includes.md) (R057)
|
|
83
|
+
- [`etc-misc/prefer-interface`](../prefer-interface.md) (R058)
|
|
84
|
+
- [`etc-misc/prefer-less-than`](../prefer-less-than.md) (R059)
|
|
85
|
+
- [`etc-misc/prefer-object-has-own`](../prefer-object-has-own.md) (R060)
|
|
86
|
+
- [`etc-misc/prefer-only-export`](../prefer-only-export.md) (R061)
|
|
87
|
+
- [`etc-misc/require-jsdoc`](../require-jsdoc.md) (R062)
|
|
88
|
+
- [`etc-misc/require-syntax`](../require-syntax.md) (R063)
|
|
89
|
+
- [`etc-misc/restrict-identifier-characters`](../restrict-identifier-characters.md) (R064)
|
|
90
|
+
- [`etc-misc/sort-array`](../sort-array.md) (R065)
|
|
91
|
+
- [`etc-misc/sort-call-signature`](../sort-call-signature.md) (R066)
|
|
92
|
+
- [`etc-misc/sort-class-members`](../sort-class-members.md) (R067)
|
|
93
|
+
- [`etc-misc/sort-construct-signature`](../sort-construct-signature.md) (R068)
|
|
94
|
+
- [`etc-misc/sort-export-specifiers`](../sort-export-specifiers.md) (R069)
|
|
95
|
+
- [`etc-misc/sort-keys`](../sort-keys.md) (R070)
|
|
96
|
+
- [`etc-misc/sort-top-comments`](../sort-top-comments.md) (R071)
|
|
97
|
+
- [`etc-misc/switch-case-spacing`](../switch-case-spacing.md) (R072)
|
|
98
|
+
- [`etc-misc/template-literal-format`](../template-literal-format.md) (R073)
|
|
99
|
+
- [`etc-misc/throw-error`](../throw-error.md) (R074)
|
|
100
|
+
- [`etc-misc/throw-new-error`](../throw-new-error.md) (R075)
|
|
101
|
+
- [`etc-misc/typescript/array-callback-return-type`](../typescript-array-callback-return-type.md) (R080)
|
|
102
|
+
- [`etc-misc/typescript/class-methods-use-this`](../typescript-class-methods-use-this.md) (R081)
|
|
103
|
+
- [`etc-misc/typescript/consistent-array-type-name`](../typescript-consistent-array-type-name.md) (R082)
|
|
104
|
+
- [`etc-misc/typescript/define-function-in-one-statement`](../typescript-define-function-in-one-statement.md) (R083)
|
|
105
|
+
- [`etc-misc/typescript/exhaustive-switch`](../typescript-exhaustive-switch.md) (R084)
|
|
106
|
+
- [`etc-misc/typescript/no-boolean-literal-type`](../typescript-no-boolean-literal-type.md) (R085)
|
|
107
|
+
- [`etc-misc/typescript/no-complex-declarator-type`](../typescript-no-complex-declarator-type.md) (R086)
|
|
108
|
+
- [`etc-misc/typescript/no-complex-return-type`](../typescript-no-complex-return-type.md) (R087)
|
|
109
|
+
- [`etc-misc/typescript/no-empty-interfaces`](../typescript-no-empty-interfaces.md) (R088)
|
|
110
|
+
- [`etc-misc/typescript/no-inferrable-types`](../typescript-no-inferrable-types.md) (R089)
|
|
111
|
+
- [`etc-misc/typescript/no-multi-type-tuples`](../typescript-no-multi-type-tuples.md) (R090)
|
|
112
|
+
- [`etc-misc/typescript/no-never`](../typescript-no-never.md) (R091)
|
|
113
|
+
- [`etc-misc/typescript/no-redundant-undefined-const`](../typescript-no-redundant-undefined-const.md) (R092)
|
|
114
|
+
- [`etc-misc/typescript/no-redundant-undefined-default-parameter`](../typescript-no-redundant-undefined-default-parameter.md) (R093)
|
|
115
|
+
- [`etc-misc/typescript/no-redundant-undefined-let`](../typescript-no-redundant-undefined-let.md) (R094)
|
|
116
|
+
- [`etc-misc/typescript/no-redundant-undefined-optional`](../typescript-no-redundant-undefined-optional.md) (R095)
|
|
117
|
+
- [`etc-misc/typescript/no-redundant-undefined-promise-return-type`](../typescript-no-redundant-undefined-promise-return-type.md) (R096)
|
|
118
|
+
- [`etc-misc/typescript/no-redundant-undefined-readonly-property`](../typescript-no-redundant-undefined-readonly-property.md) (R097)
|
|
119
|
+
- [`etc-misc/typescript/no-redundant-undefined-return-type`](../typescript-no-redundant-undefined-return-type.md) (R098)
|
|
120
|
+
- [`etc-misc/typescript/no-redundant-undefined-var`](../typescript-no-redundant-undefined-var.md) (R099)
|
|
121
|
+
- [`etc-misc/typescript/no-restricted-syntax`](../typescript-no-restricted-syntax.md) (R100)
|
|
122
|
+
- [`etc-misc/typescript/no-unsafe-object-assign`](../typescript-no-unsafe-object-assign.md) (R101)
|
|
123
|
+
- [`etc-misc/typescript/no-unsafe-object-assignment`](../typescript-no-unsafe-object-assignment.md) (R102)
|
|
124
|
+
- [`etc-misc/typescript/prefer-array-type-alias`](../typescript-prefer-array-type-alias.md) (R103)
|
|
125
|
+
- [`etc-misc/typescript/prefer-class-method`](../typescript-prefer-class-method.md) (R104)
|
|
126
|
+
- [`etc-misc/typescript/prefer-enum`](../typescript-prefer-enum.md) (R105)
|
|
127
|
+
- [`etc-misc/typescript/prefer-named-tuple-members`](../typescript-prefer-named-tuple-members.md) (R106)
|
|
128
|
+
- [`etc-misc/typescript/prefer-readonly-array-parameter`](../typescript-prefer-readonly-array-parameter.md) (R108)
|
|
129
|
+
- [`etc-misc/typescript/prefer-readonly-array`](../typescript-prefer-readonly-array.md) (R107)
|
|
130
|
+
- [`etc-misc/typescript/prefer-readonly-index-signature`](../typescript-prefer-readonly-index-signature.md) (R109)
|
|
131
|
+
- [`etc-misc/typescript/prefer-readonly-map`](../typescript-prefer-readonly-map.md) (R110)
|
|
132
|
+
- [`etc-misc/typescript/prefer-readonly-property`](../typescript-prefer-readonly-property.md) (R111)
|
|
133
|
+
- [`etc-misc/typescript/prefer-readonly-record`](../typescript-prefer-readonly-record.md) (R112)
|
|
134
|
+
- [`etc-misc/typescript/prefer-readonly-set`](../typescript-prefer-readonly-set.md) (R113)
|
|
135
|
+
- [`etc-misc/typescript/require-prop-type-annotation`](../typescript-require-prop-type-annotation.md) (R114)
|
|
136
|
+
- [`etc-misc/typescript/require-readonly-array-property-type`](../typescript-require-readonly-array-property-type.md) (R115)
|
|
137
|
+
- [`etc-misc/typescript/require-readonly-array-return-type`](../typescript-require-readonly-array-return-type.md) (R116)
|
|
138
|
+
- [`etc-misc/typescript/require-readonly-array-type-alias`](../typescript-require-readonly-array-type-alias.md) (R117)
|
|
139
|
+
- [`etc-misc/typescript/require-readonly-map-parameter-type`](../typescript-require-readonly-map-parameter-type.md) (R118)
|
|
140
|
+
- [`etc-misc/typescript/require-readonly-map-property-type`](../typescript-require-readonly-map-property-type.md) (R119)
|
|
141
|
+
- [`etc-misc/typescript/require-readonly-map-return-type`](../typescript-require-readonly-map-return-type.md) (R120)
|
|
142
|
+
- [`etc-misc/typescript/require-readonly-map-type-alias`](../typescript-require-readonly-map-type-alias.md) (R121)
|
|
143
|
+
- [`etc-misc/typescript/require-readonly-record-parameter-type`](../typescript-require-readonly-record-parameter-type.md) (R122)
|
|
144
|
+
- [`etc-misc/typescript/require-readonly-record-property-type`](../typescript-require-readonly-record-property-type.md) (R123)
|
|
145
|
+
- [`etc-misc/typescript/require-readonly-record-return-type`](../typescript-require-readonly-record-return-type.md) (R124)
|
|
146
|
+
- [`etc-misc/typescript/require-readonly-record-type-alias`](../typescript-require-readonly-record-type-alias.md) (R125)
|
|
147
|
+
- [`etc-misc/typescript/require-readonly-set-parameter-type`](../typescript-require-readonly-set-parameter-type.md) (R126)
|
|
148
|
+
- [`etc-misc/typescript/require-readonly-set-property-type`](../typescript-require-readonly-set-property-type.md) (R127)
|
|
149
|
+
- [`etc-misc/typescript/require-readonly-set-return-type`](../typescript-require-readonly-set-return-type.md) (R128)
|
|
150
|
+
- [`etc-misc/typescript/require-readonly-set-type-alias`](../typescript-require-readonly-set-type-alias.md) (R129)
|
|
151
|
+
- [`etc-misc/typescript/require-this-void`](../typescript-require-this-void.md) (R130)
|
|
152
|
+
- [`etc-misc/underscore-internal`](../underscore-internal.md) (R076)
|
|
153
|
+
- [`etc-misc/unused-internal-properties`](../unused-internal-properties.md) (R077)
|
|
154
|
+
- [`etc-misc/uppercase-iife`](../uppercase-iife.md) (R078)
|
|
155
|
+
- [`etc-misc/words`](../words.md) (R079)
|
|
156
|
+
|
|
157
|
+
## Adoption guidance
|
|
158
|
+
|
|
159
|
+
Use this as the strictest preset when you want broad coverage and hard
|
|
160
|
+
enforcement of non-deprecated rules.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: All preset
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 🟣 All
|
|
6
|
+
|
|
7
|
+
Use this preset when you want every rule exported by `eslint-plugin-etc-misc`.
|
|
8
|
+
|
|
9
|
+
## Config key
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
etcMisc.configs.all
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Flat Config example
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
19
|
+
|
|
20
|
+
export default [etcMisc.configs.all];
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## What it enables
|
|
24
|
+
|
|
25
|
+
- Every rule under `src/rules/*.ts`.
|
|
26
|
+
- Full plugin namespace coverage with `etc-misc/<rule-id>` entries.
|
|
27
|
+
- A total of **115 rules** (79 core + 36 TypeScript-scoped).
|
|
28
|
+
|
|
29
|
+
## Rules in this preset
|
|
30
|
+
|
|
31
|
+
### Core rules
|
|
32
|
+
|
|
33
|
+
- [`etc-misc/array-type`](../array-type.md) (R001)
|
|
34
|
+
- [`etc-misc/class-match-filename`](../class-match-filename.md) (R002)
|
|
35
|
+
- [`etc-misc/comment-spacing`](../comment-spacing.md) (R003)
|
|
36
|
+
- [`etc-misc/consistent-empty-lines`](../consistent-empty-lines.md) (R004)
|
|
37
|
+
- [`etc-misc/consistent-enum-members`](../consistent-enum-members.md) (R005)
|
|
38
|
+
- [`etc-misc/consistent-filename`](../consistent-filename.md) (R006)
|
|
39
|
+
- [`etc-misc/consistent-import`](../consistent-import.md) (R007)
|
|
40
|
+
- [`etc-misc/consistent-optional-props`](../consistent-optional-props.md) (R008)
|
|
41
|
+
- [`etc-misc/consistent-source-extension`](../consistent-source-extension.md) (R009)
|
|
42
|
+
- [`etc-misc/consistent-symbol-description`](../consistent-symbol-description.md) (R010)
|
|
43
|
+
- [`etc-misc/default-case`](../default-case.md) (R011)
|
|
44
|
+
- [`etc-misc/disallow-import`](../disallow-import.md) (R012)
|
|
45
|
+
- [`etc-misc/export-matching-filename-only`](../export-matching-filename-only.md) (R013)
|
|
46
|
+
- [`etc-misc/match-filename`](../match-filename.md) (R014)
|
|
47
|
+
- [`etc-misc/max-identifier-blocks`](../max-identifier-blocks.md) (R015)
|
|
48
|
+
- [`etc-misc/no-assign-mutated-array`](../no-assign-mutated-array.md) (R016)
|
|
49
|
+
- [`etc-misc/no-at-sign-import`](../no-at-sign-import.md) (R017)
|
|
50
|
+
- [`etc-misc/no-at-sign-internal-import`](../no-at-sign-internal-import.md) (R018)
|
|
51
|
+
- [`etc-misc/no-chain-coalescence-mixture`](../no-chain-coalescence-mixture.md) (R019)
|
|
52
|
+
- [`etc-misc/no-commented-out-code`](../no-commented-out-code.md) (R020)
|
|
53
|
+
- [`etc-misc/no-const-enum`](../no-const-enum.md) (R021)
|
|
54
|
+
- [`etc-misc/no-deprecated`](../no-deprecated.md) (R022)
|
|
55
|
+
- [`etc-misc/no-enum`](../no-enum.md) (R023)
|
|
56
|
+
- [`etc-misc/no-expression-empty-lines`](../no-expression-empty-lines.md) (R024)
|
|
57
|
+
- [`etc-misc/no-foreach`](../no-foreach.md) (R025)
|
|
58
|
+
- [`etc-misc/no-implicit-any-catch`](../no-implicit-any-catch.md) (R026)
|
|
59
|
+
- [`etc-misc/no-index-import`](../no-index-import.md) (R027)
|
|
60
|
+
- [`etc-misc/no-internal`](../no-internal.md) (R028)
|
|
61
|
+
- [`etc-misc/no-internal-modules`](../no-internal-modules.md) (R029)
|
|
62
|
+
- [`etc-misc/no-language-mixing`](../no-language-mixing.md) (R030)
|
|
63
|
+
- [`etc-misc/no-misused-generics`](../no-misused-generics.md) (R031)
|
|
64
|
+
- [`etc-misc/no-mixed-enums`](../no-mixed-enums.md) (R032)
|
|
65
|
+
- [`etc-misc/no-negated-conditions`](../no-negated-conditions.md) (R033)
|
|
66
|
+
- [`etc-misc/no-nodejs-modules`](../no-nodejs-modules.md) (R034)
|
|
67
|
+
- [`etc-misc/no-param-reassign`](../no-param-reassign.md) (R035)
|
|
68
|
+
- [`etc-misc/no-relative-parent-import`](../no-relative-parent-import.md) (R036)
|
|
69
|
+
- [`etc-misc/no-restricted-syntax`](../no-restricted-syntax.md) (R037)
|
|
70
|
+
- [`etc-misc/no-secret`](../no-secret.md) (R038)
|
|
71
|
+
- [`etc-misc/no-self-import`](../no-self-import.md) (R039)
|
|
72
|
+
- [`etc-misc/no-shadow`](../no-shadow.md) (R040)
|
|
73
|
+
- [`etc-misc/no-sibling-import`](../no-sibling-import.md) (R041)
|
|
74
|
+
- [`etc-misc/no-single-line-comment`](../no-single-line-comment.md) (R042)
|
|
75
|
+
- [`etc-misc/no-t`](../no-t.md) (R043)
|
|
76
|
+
- [`etc-misc/no-underscore-export`](../no-underscore-export.md) (R044)
|
|
77
|
+
- [`etc-misc/no-unnecessary-as-const`](../no-unnecessary-as-const.md) (R045)
|
|
78
|
+
- [`etc-misc/no-unnecessary-break`](../no-unnecessary-break.md) (R046)
|
|
79
|
+
- [`etc-misc/no-unnecessary-initialization`](../no-unnecessary-initialization.md) (R047)
|
|
80
|
+
- [`etc-misc/no-unnecessary-template-literal`](../no-unnecessary-template-literal.md) (R048)
|
|
81
|
+
- [`etc-misc/no-unused-disable`](../no-unused-disable.md) (R049)
|
|
82
|
+
- [`etc-misc/no-useless-generics`](../no-useless-generics.md) (R050)
|
|
83
|
+
- [`etc-misc/no-value-tostring`](../no-value-tostring.md) (R051)
|
|
84
|
+
- [`etc-misc/no-writeonly`](../no-writeonly.md) (R052)
|
|
85
|
+
- [`etc-misc/object-format`](../object-format.md) (R053)
|
|
86
|
+
- [`etc-misc/only-export-name`](../only-export-name.md) (R054)
|
|
87
|
+
- [`etc-misc/prefer-arrow-function-property`](../prefer-arrow-function-property.md) (R055)
|
|
88
|
+
- [`etc-misc/prefer-const-require`](../prefer-const-require.md) (R056)
|
|
89
|
+
- [`etc-misc/prefer-includes`](../prefer-includes.md) (R057)
|
|
90
|
+
- [`etc-misc/prefer-interface`](../prefer-interface.md) (R058)
|
|
91
|
+
- [`etc-misc/prefer-less-than`](../prefer-less-than.md) (R059)
|
|
92
|
+
- [`etc-misc/prefer-object-has-own`](../prefer-object-has-own.md) (R060)
|
|
93
|
+
- [`etc-misc/prefer-only-export`](../prefer-only-export.md) (R061)
|
|
94
|
+
- [`etc-misc/require-jsdoc`](../require-jsdoc.md) (R062)
|
|
95
|
+
- [`etc-misc/require-syntax`](../require-syntax.md) (R063)
|
|
96
|
+
- [`etc-misc/restrict-identifier-characters`](../restrict-identifier-characters.md) (R064)
|
|
97
|
+
- [`etc-misc/sort-array`](../sort-array.md) (R065)
|
|
98
|
+
- [`etc-misc/sort-call-signature`](../sort-call-signature.md) (R066)
|
|
99
|
+
- [`etc-misc/sort-class-members`](../sort-class-members.md) (R067)
|
|
100
|
+
- [`etc-misc/sort-construct-signature`](../sort-construct-signature.md) (R068)
|
|
101
|
+
- [`etc-misc/sort-export-specifiers`](../sort-export-specifiers.md) (R069)
|
|
102
|
+
- [`etc-misc/sort-keys`](../sort-keys.md) (R070)
|
|
103
|
+
- [`etc-misc/sort-top-comments`](../sort-top-comments.md) (R071)
|
|
104
|
+
- [`etc-misc/switch-case-spacing`](../switch-case-spacing.md) (R072)
|
|
105
|
+
- [`etc-misc/template-literal-format`](../template-literal-format.md) (R073)
|
|
106
|
+
- [`etc-misc/throw-error`](../throw-error.md) (R074)
|
|
107
|
+
- [`etc-misc/throw-new-error`](../throw-new-error.md) (R075)
|
|
108
|
+
- [`etc-misc/underscore-internal`](../underscore-internal.md) (R076)
|
|
109
|
+
- [`etc-misc/unused-internal-properties`](../unused-internal-properties.md) (R077)
|
|
110
|
+
- [`etc-misc/uppercase-iife`](../uppercase-iife.md) (R078)
|
|
111
|
+
- [`etc-misc/words`](../words.md) (R079)
|
|
112
|
+
|
|
113
|
+
### TypeScript-scoped rules
|
|
114
|
+
|
|
115
|
+
- [`etc-misc/typescript/array-callback-return-type`](../typescript-array-callback-return-type.md) (R080)
|
|
116
|
+
- [`etc-misc/typescript/class-methods-use-this`](../typescript-class-methods-use-this.md) (R081)
|
|
117
|
+
- [`etc-misc/typescript/consistent-array-type-name`](../typescript-consistent-array-type-name.md) (R082)
|
|
118
|
+
- [`etc-misc/typescript/define-function-in-one-statement`](../typescript-define-function-in-one-statement.md) (R083)
|
|
119
|
+
- [`etc-misc/typescript/exhaustive-switch`](../typescript-exhaustive-switch.md) (R084)
|
|
120
|
+
- [`etc-misc/typescript/no-boolean-literal-type`](../typescript-no-boolean-literal-type.md) (R085)
|
|
121
|
+
- [`etc-misc/typescript/no-complex-declarator-type`](../typescript-no-complex-declarator-type.md) (R086)
|
|
122
|
+
- [`etc-misc/typescript/no-complex-return-type`](../typescript-no-complex-return-type.md) (R087)
|
|
123
|
+
- [`etc-misc/typescript/no-empty-interfaces`](../typescript-no-empty-interfaces.md) (R088)
|
|
124
|
+
- [`etc-misc/typescript/no-inferrable-types`](../typescript-no-inferrable-types.md) (R089)
|
|
125
|
+
- [`etc-misc/typescript/no-multi-type-tuples`](../typescript-no-multi-type-tuples.md) (R090)
|
|
126
|
+
- [`etc-misc/typescript/no-never`](../typescript-no-never.md) (R091)
|
|
127
|
+
- [`etc-misc/typescript/no-redundant-undefined-const`](../typescript-no-redundant-undefined-const.md) (R092)
|
|
128
|
+
- [`etc-misc/typescript/no-redundant-undefined-default-parameter`](../typescript-no-redundant-undefined-default-parameter.md) (R093)
|
|
129
|
+
- [`etc-misc/typescript/no-redundant-undefined-let`](../typescript-no-redundant-undefined-let.md) (R094)
|
|
130
|
+
- [`etc-misc/typescript/no-redundant-undefined-optional`](../typescript-no-redundant-undefined-optional.md) (R095)
|
|
131
|
+
- [`etc-misc/typescript/no-redundant-undefined-promise-return-type`](../typescript-no-redundant-undefined-promise-return-type.md) (R096)
|
|
132
|
+
- [`etc-misc/typescript/no-redundant-undefined-readonly-property`](../typescript-no-redundant-undefined-readonly-property.md) (R097)
|
|
133
|
+
- [`etc-misc/typescript/no-redundant-undefined-return-type`](../typescript-no-redundant-undefined-return-type.md) (R098)
|
|
134
|
+
- [`etc-misc/typescript/no-redundant-undefined-var`](../typescript-no-redundant-undefined-var.md) (R099)
|
|
135
|
+
- [`etc-misc/typescript/no-restricted-syntax`](../typescript-no-restricted-syntax.md) (R100)
|
|
136
|
+
- [`etc-misc/typescript/no-unsafe-object-assign`](../typescript-no-unsafe-object-assign.md) (R101)
|
|
137
|
+
- [`etc-misc/typescript/no-unsafe-object-assignment`](../typescript-no-unsafe-object-assignment.md) (R102)
|
|
138
|
+
- [`etc-misc/typescript/prefer-array-type-alias`](../typescript-prefer-array-type-alias.md) (R103)
|
|
139
|
+
- [`etc-misc/typescript/prefer-class-method`](../typescript-prefer-class-method.md) (R104)
|
|
140
|
+
- [`etc-misc/typescript/prefer-enum`](../typescript-prefer-enum.md) (R105)
|
|
141
|
+
- [`etc-misc/typescript/prefer-named-tuple-members`](../typescript-prefer-named-tuple-members.md) (R106)
|
|
142
|
+
- [`etc-misc/typescript/prefer-readonly-array`](../typescript-prefer-readonly-array.md) (R107)
|
|
143
|
+
- [`etc-misc/typescript/prefer-readonly-array-parameter`](../typescript-prefer-readonly-array-parameter.md) (R108)
|
|
144
|
+
- [`etc-misc/typescript/prefer-readonly-index-signature`](../typescript-prefer-readonly-index-signature.md) (R109)
|
|
145
|
+
- [`etc-misc/typescript/prefer-readonly-map`](../typescript-prefer-readonly-map.md) (R110)
|
|
146
|
+
- [`etc-misc/typescript/prefer-readonly-property`](../typescript-prefer-readonly-property.md) (R111)
|
|
147
|
+
- [`etc-misc/typescript/prefer-readonly-record`](../typescript-prefer-readonly-record.md) (R112)
|
|
148
|
+
- [`etc-misc/typescript/prefer-readonly-set`](../typescript-prefer-readonly-set.md) (R113)
|
|
149
|
+
- [`etc-misc/typescript/require-prop-type-annotation`](../typescript-require-prop-type-annotation.md) (R114)
|
|
150
|
+
- [`etc-misc/typescript/require-readonly-array-property-type`](../typescript-require-readonly-array-property-type.md) (R115)
|
|
151
|
+
- [`etc-misc/typescript/require-readonly-array-return-type`](../typescript-require-readonly-array-return-type.md) (R116)
|
|
152
|
+
- [`etc-misc/typescript/require-readonly-array-type-alias`](../typescript-require-readonly-array-type-alias.md) (R117)
|
|
153
|
+
- [`etc-misc/typescript/require-readonly-map-parameter-type`](../typescript-require-readonly-map-parameter-type.md) (R118)
|
|
154
|
+
- [`etc-misc/typescript/require-readonly-map-property-type`](../typescript-require-readonly-map-property-type.md) (R119)
|
|
155
|
+
- [`etc-misc/typescript/require-readonly-map-return-type`](../typescript-require-readonly-map-return-type.md) (R120)
|
|
156
|
+
- [`etc-misc/typescript/require-readonly-map-type-alias`](../typescript-require-readonly-map-type-alias.md) (R121)
|
|
157
|
+
- [`etc-misc/typescript/require-readonly-record-parameter-type`](../typescript-require-readonly-record-parameter-type.md) (R122)
|
|
158
|
+
- [`etc-misc/typescript/require-readonly-record-property-type`](../typescript-require-readonly-record-property-type.md) (R123)
|
|
159
|
+
- [`etc-misc/typescript/require-readonly-record-return-type`](../typescript-require-readonly-record-return-type.md) (R124)
|
|
160
|
+
- [`etc-misc/typescript/require-readonly-record-type-alias`](../typescript-require-readonly-record-type-alias.md) (R125)
|
|
161
|
+
- [`etc-misc/typescript/require-readonly-set-parameter-type`](../typescript-require-readonly-set-parameter-type.md) (R126)
|
|
162
|
+
- [`etc-misc/typescript/require-readonly-set-property-type`](../typescript-require-readonly-set-property-type.md) (R127)
|
|
163
|
+
- [`etc-misc/typescript/require-readonly-set-return-type`](../typescript-require-readonly-set-return-type.md) (R128)
|
|
164
|
+
- [`etc-misc/typescript/require-readonly-set-type-alias`](../typescript-require-readonly-set-type-alias.md) (R129)
|
|
165
|
+
- [`etc-misc/typescript/require-this-void`](../typescript-require-this-void.md) (R130)
|
|
166
|
+
|
|
167
|
+
## Adoption guidance
|
|
168
|
+
|
|
169
|
+
Start with `recommended` first unless your project is already prepared for broad
|
|
170
|
+
lint enforcement. `all` is best for teams that prefer maximum rule coverage and
|
|
171
|
+
can commit to rule-by-rule tuning where needed.
|
|
172
|
+
|
|
173
|
+
## Related pages
|
|
174
|
+
|
|
175
|
+
- [Overview](../overview.md)
|
|
176
|
+
- [Getting Started](../getting-started.md)
|
|
177
|
+
- [Rule Reference](../)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Recommended preset
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 🟡 Recommended
|
|
6
|
+
|
|
7
|
+
Use this preset as the default onboarding path for most projects.
|
|
8
|
+
|
|
9
|
+
## Config key
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
etcMisc.configs.recommended
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Flat Config example
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
19
|
+
|
|
20
|
+
export default [etcMisc.configs.recommended];
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Rules in this preset
|
|
24
|
+
|
|
25
|
+
- [`etc-misc/consistent-optional-props`](../consistent-optional-props.md) (R008)
|
|
26
|
+
- [`etc-misc/no-assign-mutated-array`](../no-assign-mutated-array.md) (R016)
|
|
27
|
+
- [`etc-misc/no-const-enum`](../no-const-enum.md) (R021)
|
|
28
|
+
- [`etc-misc/no-implicit-any-catch`](../no-implicit-any-catch.md) (R026)
|
|
29
|
+
- [`etc-misc/no-internal`](../no-internal.md) (R028)
|
|
30
|
+
- [`etc-misc/no-t`](../no-t.md) (R043)
|
|
31
|
+
- [`etc-misc/no-unnecessary-as-const`](../no-unnecessary-as-const.md) (R045)
|
|
32
|
+
- [`etc-misc/no-unnecessary-break`](../no-unnecessary-break.md) (R046)
|
|
33
|
+
- [`etc-misc/no-unnecessary-initialization`](../no-unnecessary-initialization.md) (R047)
|
|
34
|
+
- [`etc-misc/no-unnecessary-template-literal`](../no-unnecessary-template-literal.md) (R048)
|
|
35
|
+
- [`etc-misc/throw-error`](../throw-error.md) (R074)
|
|
36
|
+
- [`etc-misc/typescript/no-boolean-literal-type`](../typescript-no-boolean-literal-type.md) (R085)
|
|
37
|
+
- [`etc-misc/typescript/prefer-readonly-array-parameter`](../typescript-prefer-readonly-array-parameter.md) (R108)
|
|
38
|
+
- [`etc-misc/typescript/prefer-readonly-array`](../typescript-prefer-readonly-array.md) (R107)
|
|
39
|
+
- [`etc-misc/typescript/prefer-readonly-index-signature`](../typescript-prefer-readonly-index-signature.md) (R109)
|
|
40
|
+
- [`etc-misc/typescript/prefer-readonly-map`](../typescript-prefer-readonly-map.md) (R110)
|
|
41
|
+
- [`etc-misc/typescript/prefer-readonly-property`](../typescript-prefer-readonly-property.md) (R111)
|
|
42
|
+
- [`etc-misc/typescript/prefer-readonly-record`](../typescript-prefer-readonly-record.md) (R112)
|
|
43
|
+
- [`etc-misc/typescript/prefer-readonly-set`](../typescript-prefer-readonly-set.md) (R113)
|
|
44
|
+
- [`etc-misc/typescript/require-readonly-array-return-type`](../typescript-require-readonly-array-return-type.md) (R116)
|
|
45
|
+
- [`etc-misc/typescript/require-this-void`](../typescript-require-this-void.md) (R130)
|
|
46
|
+
|
|
47
|
+
## Adoption guidance
|
|
48
|
+
|
|
49
|
+
This preset now enables a wider "safe baseline" mix:
|
|
50
|
+
|
|
51
|
+
- strong correctness rules as `error`
|
|
52
|
+
- low-risk style/maintainability rules as `warn`
|
|
53
|
+
|
|
54
|
+
Start with this preset, then promote selected `warn` rules to `error` as your
|
|
55
|
+
codebase stabilizes.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Strict Type-Checked preset
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# 🔵 Strict Type-Checked
|
|
6
|
+
|
|
7
|
+
Use this preset when you want strict linting plus additional non-deprecated
|
|
8
|
+
rules that require TypeScript type information.
|
|
9
|
+
|
|
10
|
+
## Config key
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
etcMisc.configs.strictTypeChecked
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Flat Config example
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import etcMisc from "eslint-plugin-etc-misc";
|
|
20
|
+
|
|
21
|
+
export default [etcMisc.configs.strictTypeChecked];
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Type information requirement
|
|
25
|
+
|
|
26
|
+
⚠️ This preset is type-aware and includes
|
|
27
|
+
`languageOptions.parserOptions.projectService: true`.
|
|
28
|
+
|
|
29
|
+
If your project uses custom parser options, merge this preset with your own
|
|
30
|
+
`languageOptions` so full type information remains available.
|
|
31
|
+
|
|
32
|
+
## Rules in this preset
|
|
33
|
+
|
|
34
|
+
- [`etc-misc/consistent-optional-props`](../consistent-optional-props.md) (R008)
|
|
35
|
+
- [`etc-misc/no-assign-mutated-array`](../no-assign-mutated-array.md) (R016)
|
|
36
|
+
- [`etc-misc/no-const-enum`](../no-const-enum.md) (R021)
|
|
37
|
+
- [`etc-misc/no-foreach`](../no-foreach.md) (R025)
|
|
38
|
+
- [`etc-misc/no-implicit-any-catch`](../no-implicit-any-catch.md) (R026)
|
|
39
|
+
- [`etc-misc/no-internal`](../no-internal.md) (R028)
|
|
40
|
+
- [`etc-misc/no-misused-generics`](../no-misused-generics.md) (R031)
|
|
41
|
+
- [`etc-misc/no-t`](../no-t.md) (R043)
|
|
42
|
+
- [`etc-misc/no-unnecessary-as-const`](../no-unnecessary-as-const.md) (R045)
|
|
43
|
+
- [`etc-misc/no-unnecessary-break`](../no-unnecessary-break.md) (R046)
|
|
44
|
+
- [`etc-misc/no-unnecessary-initialization`](../no-unnecessary-initialization.md) (R047)
|
|
45
|
+
- [`etc-misc/no-unnecessary-template-literal`](../no-unnecessary-template-literal.md) (R048)
|
|
46
|
+
- [`etc-misc/throw-error`](../throw-error.md) (R074)
|
|
47
|
+
- [`etc-misc/typescript/array-callback-return-type`](../typescript-array-callback-return-type.md) (R080)
|
|
48
|
+
- [`etc-misc/typescript/no-boolean-literal-type`](../typescript-no-boolean-literal-type.md) (R085)
|
|
49
|
+
- [`etc-misc/typescript/no-never`](../typescript-no-never.md) (R091)
|
|
50
|
+
- [`etc-misc/typescript/no-unsafe-object-assign`](../typescript-no-unsafe-object-assign.md) (R101)
|
|
51
|
+
- [`etc-misc/typescript/no-unsafe-object-assignment`](../typescript-no-unsafe-object-assignment.md) (R102)
|
|
52
|
+
- [`etc-misc/typescript/prefer-enum`](../typescript-prefer-enum.md) (R105)
|
|
53
|
+
- [`etc-misc/typescript/prefer-readonly-array-parameter`](../typescript-prefer-readonly-array-parameter.md) (R108)
|
|
54
|
+
- [`etc-misc/typescript/prefer-readonly-array`](../typescript-prefer-readonly-array.md) (R107)
|
|
55
|
+
- [`etc-misc/typescript/prefer-readonly-index-signature`](../typescript-prefer-readonly-index-signature.md) (R109)
|
|
56
|
+
- [`etc-misc/typescript/prefer-readonly-map`](../typescript-prefer-readonly-map.md) (R110)
|
|
57
|
+
- [`etc-misc/typescript/prefer-readonly-property`](../typescript-prefer-readonly-property.md) (R111)
|
|
58
|
+
- [`etc-misc/typescript/prefer-readonly-record`](../typescript-prefer-readonly-record.md) (R112)
|
|
59
|
+
- [`etc-misc/typescript/prefer-readonly-set`](../typescript-prefer-readonly-set.md) (R113)
|
|
60
|
+
- [`etc-misc/typescript/require-readonly-array-return-type`](../typescript-require-readonly-array-return-type.md) (R116)
|
|
61
|
+
- [`etc-misc/typescript/require-this-void`](../typescript-require-this-void.md) (R130)
|
|
62
|
+
|
|
63
|
+
## Adoption guidance
|
|
64
|
+
|
|
65
|
+
Adopt this preset when your project is fully type-aware and you want stronger
|
|
66
|
+
semantic enforcement before moving to all-rule coverage.
|