|
1 | 1 | import type { PickierPlugin } from '../types' |
2 | 2 |
|
3 | | -// Import all eslint rules |
4 | | -import { arrayCallbackReturnRule } from '../rules/eslint/array-callback-return' |
5 | | -import { complexityRule } from '../rules/eslint/complexity' |
6 | | -import { constructorSuperRule } from '../rules/eslint/constructor-super' |
7 | | -import { defaultCaseRule } from '../rules/eslint/default-case' |
8 | | -import { eqeqeqRule } from '../rules/eslint/eqeqeq' |
9 | | -import { forDirectionRule } from '../rules/eslint/for-direction' |
10 | | -import { getterReturnRule } from '../rules/eslint/getter-return' |
11 | | -import { maxDepthRule } from '../rules/eslint/max-depth' |
12 | | -import { maxLinesPerFunctionRule } from '../rules/eslint/max-lines-per-function' |
13 | | -import { noAlertRule } from '../rules/eslint/no-alert' |
14 | | -import { noAsyncPromiseExecutorRule } from '../rules/eslint/no-async-promise-executor' |
15 | | -import { noAwaitInLoopRule } from '../rules/eslint/no-await-in-loop' |
16 | | -import { noCallerRule } from '../rules/eslint/no-caller' |
17 | | -import { noCaseDeclarationsRule } from '../rules/eslint/no-case-declarations' |
18 | | -import { noCompareNegZeroRule } from '../rules/eslint/no-compare-neg-zero' |
19 | | -import { noCondAssignRule } from '../rules/eslint/no-cond-assign' |
20 | | -import { noConstAssignRule } from '../rules/eslint/no-const-assign' |
21 | | -import { noConstantConditionRule } from '../rules/eslint/no-constant-condition' |
22 | | -import { noDupeClassMembersRule } from '../rules/eslint/no-dupe-class-members' |
23 | | -import { noDupeKeysRule } from '../rules/eslint/no-dupe-keys' |
24 | | -import { noDuplicateCaseRule } from '../rules/eslint/no-duplicate-case' |
25 | | -import { noElseReturnRule } from '../rules/eslint/no-else-return' |
26 | | -import { noEmptyRule } from '../rules/eslint/no-empty' |
27 | | -import { noEmptyFunctionRule } from '../rules/eslint/no-empty-function' |
28 | | -import { noEmptyPatternRule } from '../rules/eslint/no-empty-pattern' |
29 | | -import { noEvalRule } from '../rules/eslint/no-eval' |
30 | | -import { noExtendNativeRule } from '../rules/eslint/no-extend-native' |
31 | | -import { noExtraBooleanCastRule } from '../rules/eslint/no-extra-boolean-cast' |
32 | | -import { noFallthroughRule } from '../rules/eslint/no-fallthrough' |
33 | | -import { noGlobalAssignRule } from '../rules/eslint/no-global-assign' |
34 | | -import { noImpliedEvalRule } from '../rules/eslint/no-implied-eval' |
35 | | -import { noIteratorRule } from '../rules/eslint/no-iterator' |
36 | | -import { noLonelyIfRule } from '../rules/eslint/no-lonely-if' |
37 | | -import { noLossOfPrecisionRule } from '../rules/eslint/no-loss-of-precision' |
38 | | -import { noNewRule } from '../rules/eslint/no-new' |
39 | | -import { noNewFuncRule } from '../rules/eslint/no-new-func' |
40 | | -import { noNewWrappersRule } from '../rules/eslint/no-new-wrappers' |
41 | | -import { noOctalRule } from '../rules/eslint/no-octal' |
42 | | -import { noParamReassignRule } from '../rules/eslint/no-param-reassign' |
43 | | -import { noPromiseExecutorReturnRule } from '../rules/eslint/no-promise-executor-return' |
44 | | -import { noProtoRule } from '../rules/eslint/no-proto' |
45 | | -import { noRedeclareRule } from '../rules/eslint/no-redeclare' |
46 | | -import { noReturnAssignRule } from '../rules/eslint/no-return-assign' |
47 | | -import { noSelfAssignRule } from '../rules/eslint/no-self-assign' |
48 | | -import { noSelfCompareRule } from '../rules/eslint/no-self-compare' |
49 | | -import { noSequencesRule } from '../rules/eslint/no-sequences' |
50 | | -import { noShadowRule } from '../rules/eslint/no-shadow' |
51 | | -import { noSparseArraysRule } from '../rules/eslint/no-sparse-arrays' |
52 | | -import { noThrowLiteralRule } from '../rules/eslint/no-throw-literal' |
53 | | -import { noUndefRule } from '../rules/eslint/no-undef' |
54 | | -import { noUnsafeNegationRule } from '../rules/eslint/no-unsafe-negation' |
55 | | -import { noUnreachableRule } from '../rules/eslint/no-unreachable' |
56 | | -import { noUseBeforeDefineRule } from '../rules/eslint/no-use-before-define' |
57 | | -import { noUselessCallRule } from '../rules/eslint/no-useless-call' |
58 | | -import { noUselessCatchRule } from '../rules/eslint/no-useless-catch' |
59 | | -import { noUselessConcatRule } from '../rules/eslint/no-useless-concat' |
60 | | -import { noUselessEscapeRule } from '../rules/eslint/no-useless-escape' |
61 | | -import { noUselessRenameRule } from '../rules/eslint/no-useless-rename' |
62 | | -import { noUselessReturnRule } from '../rules/eslint/no-useless-return' |
63 | | -import { noVarRule } from '../rules/eslint/no-var' |
64 | | -import { noWithRule } from '../rules/eslint/no-with' |
65 | | -import { preferArrowCallbackRule } from '../rules/eslint/prefer-arrow-callback' |
66 | | -import { requireAwaitRule } from '../rules/eslint/require-await' |
67 | | -import { useIsNaNRule } from '../rules/eslint/use-isnan' |
68 | | -import { validTypeofRule } from '../rules/eslint/valid-typeof' |
| 3 | +// Import Possible Problems rules (from general/) |
| 4 | +import { arrayCallbackReturnRule } from '../rules/general/array-callback-return' |
| 5 | +import { constructorSuperRule } from '../rules/general/constructor-super' |
| 6 | +import { forDirectionRule } from '../rules/general/for-direction' |
| 7 | +import { getterReturnRule } from '../rules/general/getter-return' |
| 8 | +import { noAsyncPromiseExecutorRule } from '../rules/general/no-async-promise-executor' |
| 9 | +import { noCompareNegZeroRule } from '../rules/general/no-compare-neg-zero' |
| 10 | +import { noCondAssignRule } from '../rules/general/no-cond-assign' |
| 11 | +import { noConstAssignRule } from '../rules/general/no-const-assign' |
| 12 | +import { noConstantConditionRule } from '../rules/general/no-constant-condition' |
| 13 | +import { noDupeClassMembersRule } from '../rules/general/no-dupe-class-members' |
| 14 | +import { noDupeKeysRule } from '../rules/general/no-dupe-keys' |
| 15 | +import { noDuplicateCaseRule } from '../rules/general/no-duplicate-case' |
| 16 | +import { noEmptyPatternRule } from '../rules/general/no-empty-pattern' |
| 17 | +import { noFallthroughRule } from '../rules/general/no-fallthrough' |
| 18 | +import { noLossOfPrecisionRule } from '../rules/general/no-loss-of-precision' |
| 19 | +import { noPromiseExecutorReturnRule } from '../rules/general/no-promise-executor-return' |
| 20 | +import { noRedeclareRule } from '../rules/general/no-redeclare' |
| 21 | +import { noSelfAssignRule } from '../rules/general/no-self-assign' |
| 22 | +import { noSelfCompareRule } from '../rules/general/no-self-compare' |
| 23 | +import { noSparseArraysRule } from '../rules/general/no-sparse-arrays' |
| 24 | +import { noUndefRule } from '../rules/general/no-undef' |
| 25 | +import { noUnsafeNegationRule } from '../rules/general/no-unsafe-negation' |
| 26 | +import { noUnreachableRule } from '../rules/general/no-unreachable' |
| 27 | +import { noUselessCatchRule } from '../rules/general/no-useless-catch' |
| 28 | +import { useIsNaNRule } from '../rules/general/use-isnan' |
| 29 | +import { validTypeofRule } from '../rules/general/valid-typeof' |
| 30 | + |
| 31 | +// Import Best Practices & Code Quality rules (from quality/) |
| 32 | +import { complexityRule } from '../rules/quality/complexity' |
| 33 | +import { defaultCaseRule } from '../rules/quality/default-case' |
| 34 | +import { eqeqeqRule } from '../rules/quality/eqeqeq' |
| 35 | +import { maxDepthRule } from '../rules/quality/max-depth' |
| 36 | +import { maxLinesPerFunctionRule } from '../rules/quality/max-lines-per-function' |
| 37 | +import { noAlertRule } from '../rules/quality/no-alert' |
| 38 | +import { noAwaitInLoopRule } from '../rules/quality/no-await-in-loop' |
| 39 | +import { noCallerRule } from '../rules/quality/no-caller' |
| 40 | +import { noCaseDeclarationsRule } from '../rules/quality/no-case-declarations' |
| 41 | +import { noElseReturnRule } from '../rules/quality/no-else-return' |
| 42 | +import { noEmptyRule } from '../rules/quality/no-empty' |
| 43 | +import { noEmptyFunctionRule } from '../rules/quality/no-empty-function' |
| 44 | +import { noEvalRule } from '../rules/quality/no-eval' |
| 45 | +import { noExtendNativeRule } from '../rules/quality/no-extend-native' |
| 46 | +import { noExtraBooleanCastRule } from '../rules/quality/no-extra-boolean-cast' |
| 47 | +import { noGlobalAssignRule } from '../rules/quality/no-global-assign' |
| 48 | +import { noImpliedEvalRule } from '../rules/quality/no-implied-eval' |
| 49 | +import { noIteratorRule } from '../rules/quality/no-iterator' |
| 50 | +import { noLonelyIfRule } from '../rules/quality/no-lonely-if' |
| 51 | +import { noNewRule } from '../rules/quality/no-new' |
| 52 | +import { noNewFuncRule } from '../rules/quality/no-new-func' |
| 53 | +import { noNewWrappersRule } from '../rules/quality/no-new-wrappers' |
| 54 | +import { noOctalRule } from '../rules/quality/no-octal' |
| 55 | +import { noParamReassignRule } from '../rules/quality/no-param-reassign' |
| 56 | +import { noProtoRule } from '../rules/quality/no-proto' |
| 57 | +import { noReturnAssignRule } from '../rules/quality/no-return-assign' |
| 58 | +import { noSequencesRule } from '../rules/quality/no-sequences' |
| 59 | +import { noShadowRule } from '../rules/quality/no-shadow' |
| 60 | +import { noThrowLiteralRule } from '../rules/quality/no-throw-literal' |
| 61 | +import { noUseBeforeDefineRule } from '../rules/quality/no-use-before-define' |
| 62 | +import { noUselessCallRule } from '../rules/quality/no-useless-call' |
| 63 | +import { noUselessConcatRule } from '../rules/quality/no-useless-concat' |
| 64 | +import { noUselessEscapeRule } from '../rules/quality/no-useless-escape' |
| 65 | +import { noUselessRenameRule } from '../rules/quality/no-useless-rename' |
| 66 | +import { noUselessReturnRule } from '../rules/quality/no-useless-return' |
| 67 | +import { noVarRule } from '../rules/quality/no-var' |
| 68 | +import { noWithRule } from '../rules/quality/no-with' |
| 69 | +import { preferArrowCallbackRule } from '../rules/quality/prefer-arrow-callback' |
| 70 | +import { requireAwaitRule } from '../rules/quality/require-await' |
69 | 71 |
|
70 | 72 | export const eslintPlugin: PickierPlugin = { |
71 | 73 | name: 'eslint', |
|
0 commit comments