@perfective/eslint-config 0.29.2 → 0.31.0
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/LICENSE +1 -1
- package/README.adoc +198 -67
- package/README.md +62 -45
- package/config/array-func/array-func-config.d.ts +2 -0
- package/config/array-func/array-func-config.js +16 -0
- package/config/cypress/cypress-config.d.ts +10 -0
- package/config/cypress/cypress-config.js +38 -0
- package/config/cypress/index.d.ts +1 -0
- package/config/cypress/index.js +1 -0
- package/config/eslint/eslint-config.d.ts +2 -0
- package/config/eslint/eslint-config.js +8 -0
- package/config/eslint/layout-formatting-rules.d.ts +2 -0
- package/config/eslint/layout-formatting-rules.js +64 -0
- package/config/eslint/possible-problems-rules.d.ts +2 -0
- package/config/eslint/possible-problems-rules.js +96 -0
- package/config/eslint/suggestions-rules.d.ts +2 -0
- package/config/eslint/suggestions-rules.js +181 -0
- package/config/eslint-comments/best-practices-rules.d.ts +2 -0
- package/config/eslint-comments/best-practices-rules.js +8 -0
- package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
- package/config/eslint-comments/eslint-comments-config.js +11 -0
- package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
- package/config/eslint-comments/stylistic-issues-rules.js +9 -0
- package/config/import/helpful-warnings-rules.d.ts +2 -0
- package/config/import/helpful-warnings-rules.js +11 -0
- package/config/import/import-config.d.ts +4 -0
- package/config/import/import-config.js +46 -0
- package/config/import/index.d.ts +1 -0
- package/config/import/index.js +1 -0
- package/config/import/module-systems-rules.d.ts +2 -0
- package/config/import/module-systems-rules.js +10 -0
- package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
- package/config/import/rules/no-extraneous-dependencies.js +8 -0
- package/config/import/static-analysis-rules.d.ts +2 -0
- package/config/import/static-analysis-rules.js +26 -0
- package/config/import/style-guide-rules.d.ts +2 -0
- package/config/import/style-guide-rules.js +33 -0
- package/config/jest/index.d.ts +1 -0
- package/config/jest/index.js +1 -0
- package/config/jest/jest-config.d.ts +8 -0
- package/config/jest/jest-config.js +128 -0
- package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
- package/config/jest/typescript-eslint-jest-rules.js +5 -0
- package/config/jest-dom/index.d.ts +1 -0
- package/config/jest-dom/index.js +1 -0
- package/config/jest-dom/jest-dom-config.d.ts +8 -0
- package/config/jest-dom/jest-dom-config.js +23 -0
- package/config/jsdoc/jsdoc-config.d.ts +3 -0
- package/config/jsdoc/jsdoc-config.js +179 -0
- package/config/node/node-config.d.ts +2 -0
- package/config/node/node-config.js +66 -0
- package/config/perfective-eslint-config.d.ts +6 -0
- package/config/perfective-eslint-config.js +45 -0
- package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
- package/config/prefer-arrow/prefer-arrow-config.js +16 -0
- package/config/promise/promise-config.d.ts +2 -0
- package/config/promise/promise-config.js +37 -0
- package/config/rxjs/index.d.ts +1 -0
- package/config/rxjs/index.js +1 -0
- package/config/rxjs/rxjs-config.d.ts +8 -0
- package/config/rxjs/rxjs-config.js +67 -0
- package/config/security/security-config.d.ts +2 -0
- package/config/security/security-config.js +24 -0
- package/config/simple-import-sort/index.d.ts +1 -0
- package/config/simple-import-sort/index.js +1 -0
- package/config/simple-import-sort/rules/imports.d.ts +28 -0
- package/config/simple-import-sort/rules/imports.js +32 -0
- package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
- package/config/simple-import-sort/simple-import-sort-config.js +13 -0
- package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
- package/config/stylistic/js/stylistic-js-config.js +200 -0
- package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
- package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
- package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
- package/config/stylistic/plus/stylistic-plus-config.js +16 -0
- package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
- package/config/stylistic/ts/stylistic-ts-config.js +141 -0
- package/config/testing-library/index.d.ts +1 -0
- package/config/testing-library/index.js +1 -0
- package/config/testing-library/testing-library-config.d.ts +8 -0
- package/config/testing-library/testing-library-config.js +45 -0
- package/config/typescript-eslint/extension-rules.d.ts +2 -0
- package/config/typescript-eslint/extension-rules.js +113 -0
- package/config/typescript-eslint/index.d.ts +1 -0
- package/config/typescript-eslint/index.js +1 -0
- package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +39 -0
- package/config/typescript-eslint/rules/typescript-eslint-naming-convention.js +26 -0
- package/config/typescript-eslint/supported-rules.d.ts +2 -0
- package/config/typescript-eslint/supported-rules.js +260 -0
- package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
- package/config/typescript-eslint/typescript-eslint-config.js +15 -0
- package/config/unicorn/index.d.ts +1 -0
- package/config/unicorn/index.js +1 -0
- package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +20 -0
- package/config/unicorn/rules/prevent-abbreviations.js +30 -0
- package/config/unicorn/unicorn-config.d.ts +2 -0
- package/config/unicorn/unicorn-config.js +185 -0
- package/index.d.ts +5 -1732
- package/index.js +5 -146
- package/linter/glob.d.ts +59 -0
- package/linter/glob.js +8 -0
- package/linter/language-options.d.ts +25 -0
- package/linter/language-options.js +45 -0
- package/linter/linter-config.d.ts +13 -0
- package/linter/linter-config.js +6 -0
- package/linter/node.d.ts +10 -0
- package/linter/node.js +7 -0
- package/linter/plugin.d.ts +15 -0
- package/linter/plugin.js +26 -0
- package/package.json +45 -45
- package/config/node.d.ts +0 -1
- package/config/node.js +0 -11
- package/config/plugin.d.ts +0 -2
- package/config/plugin.js +0 -30
- package/config.d.ts +0 -1
- package/config.js +0 -6
- package/cypress.d.ts +0 -1
- package/cypress.js +0 -56
- package/jest-dom.d.ts +0 -1
- package/jest-dom.js +0 -11
- package/jest.d.ts +0 -1
- package/jest.js +0 -24
- package/rules/array-func/index.d.ts +0 -14
- package/rules/array-func/index.js +0 -50
- package/rules/cypress/index.d.ts +0 -21
- package/rules/cypress/index.js +0 -57
- package/rules/eslint/index.d.ts +0 -339
- package/rules/eslint/index.js +0 -9
- package/rules/eslint/layout-formatting.d.ts +0 -64
- package/rules/eslint/layout-formatting.js +0 -67
- package/rules/eslint/possible-problems.d.ts +0 -96
- package/rules/eslint/possible-problems.js +0 -99
- package/rules/eslint/suggestions.d.ts +0 -181
- package/rules/eslint/suggestions.js +0 -182
- package/rules/eslint-comments/best-practices.d.ts +0 -8
- package/rules/eslint-comments/best-practices.js +0 -11
- package/rules/eslint-comments/index.d.ts +0 -21
- package/rules/eslint-comments/index.js +0 -45
- package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
- package/rules/eslint-comments/stylistic-issues.js +0 -18
- package/rules/import/helpful-warnings.d.ts +0 -10
- package/rules/import/helpful-warnings.js +0 -14
- package/rules/import/index.d.ts +0 -78
- package/rules/import/index.js +0 -14
- package/rules/import/module-systems.d.ts +0 -10
- package/rules/import/module-systems.js +0 -13
- package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -11
- package/rules/import/rules/no-extraneous-dependencies.js +0 -24
- package/rules/import/static-analysis.d.ts +0 -26
- package/rules/import/static-analysis.js +0 -29
- package/rules/import/style-guide.d.ts +0 -33
- package/rules/import/style-guide.js +0 -36
- package/rules/jest/index.d.ts +0 -124
- package/rules/jest/index.js +0 -72
- package/rules/jest/typescript-eslint.d.ts +0 -5
- package/rules/jest/typescript-eslint.js +0 -8
- package/rules/jest-dom/index.d.ts +0 -32
- package/rules/jest-dom/index.js +0 -55
- package/rules/jsdoc/index.d.ts +0 -134
- package/rules/jsdoc/index.js +0 -347
- package/rules/n/index.d.ts +0 -66
- package/rules/n/index.js +0 -98
- package/rules/prefer-arrow/index.d.ts +0 -14
- package/rules/prefer-arrow/index.js +0 -50
- package/rules/promise/index.d.ts +0 -35
- package/rules/promise/index.js +0 -73
- package/rules/rxjs/index.d.ts +0 -60
- package/rules/rxjs/index.js +0 -96
- package/rules/security/index.d.ts +0 -22
- package/rules/security/index.js +0 -58
- package/rules/simple-import-sort/index.d.ts +0 -10
- package/rules/simple-import-sort/index.js +0 -48
- package/rules/simple-import-sort/rules/imports.d.ts +0 -8
- package/rules/simple-import-sort/rules/imports.js +0 -46
- package/rules/stylistic/js/index.d.ts +0 -197
- package/rules/stylistic/js/index.js +0 -236
- package/rules/stylistic/jsx/index.d.ts +0 -81
- package/rules/stylistic/jsx/index.js +0 -117
- package/rules/stylistic/plus/index.d.ts +0 -14
- package/rules/stylistic/plus/index.js +0 -50
- package/rules/stylistic/ts/index.d.ts +0 -135
- package/rules/stylistic/ts/index.js +0 -169
- package/rules/testing-library/index.d.ts +0 -62
- package/rules/testing-library/index.js +0 -77
- package/rules/typescript-eslint/extension-rules.d.ts +0 -113
- package/rules/typescript-eslint/extension-rules.js +0 -116
- package/rules/typescript-eslint/index.d.ts +0 -369
- package/rules/typescript-eslint/index.js +0 -45
- package/rules/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -32
- package/rules/typescript-eslint/supported-rules.d.ts +0 -253
- package/rules/typescript-eslint/supported-rules.js +0 -319
- package/rules/unicorn/index.d.ts +0 -178
- package/rules/unicorn/index.js +0 -209
- package/rules/unicorn/rules/prevent-abbreviations.js +0 -8
- package/rules.d.ts +0 -4
- package/rules.js +0 -14
- package/rxjs.d.ts +0 -1
- package/rxjs.js +0 -58
- package/testing-library.d.ts +0 -1
- package/testing-library.js +0 -11
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export declare const eslintPossibleProblemsRules: {
|
|
2
|
-
'array-callback-return': (string | {
|
|
3
|
-
allowImplicit: boolean;
|
|
4
|
-
checkForEach: boolean;
|
|
5
|
-
allowVoid: boolean;
|
|
6
|
-
})[];
|
|
7
|
-
'constructor-super': string;
|
|
8
|
-
'for-direction': string;
|
|
9
|
-
'getter-return': string;
|
|
10
|
-
'no-async-promise-executor': string;
|
|
11
|
-
'no-await-in-loop': string;
|
|
12
|
-
'no-class-assign': string;
|
|
13
|
-
'no-compare-neg-zero': string;
|
|
14
|
-
'no-cond-assign': string[];
|
|
15
|
-
'no-const-assign': string;
|
|
16
|
-
'no-constant-binary-expression': string;
|
|
17
|
-
'no-constant-condition': string;
|
|
18
|
-
'no-constructor-return': string;
|
|
19
|
-
'no-control-regex': string;
|
|
20
|
-
'no-debugger': string;
|
|
21
|
-
'no-dupe-args': string;
|
|
22
|
-
'no-dupe-class-members': string;
|
|
23
|
-
'no-dupe-else-if': string;
|
|
24
|
-
'no-dupe-keys': string;
|
|
25
|
-
'no-duplicate-case': string;
|
|
26
|
-
'no-duplicate-imports': (string | {
|
|
27
|
-
includeExports: boolean;
|
|
28
|
-
})[];
|
|
29
|
-
'no-empty-character-class': string;
|
|
30
|
-
'no-empty-pattern': string;
|
|
31
|
-
'no-ex-assign': string;
|
|
32
|
-
'no-fallthrough': (string | {
|
|
33
|
-
allowEmptyCase: boolean;
|
|
34
|
-
reportUnusedFallthroughComment: boolean;
|
|
35
|
-
})[];
|
|
36
|
-
'no-func-assign': string;
|
|
37
|
-
'no-import-assign': string;
|
|
38
|
-
'no-inner-declarations': string;
|
|
39
|
-
'no-invalid-regexp': string;
|
|
40
|
-
'no-irregular-whitespace': (string | {
|
|
41
|
-
skipStrings: boolean;
|
|
42
|
-
skipComments: boolean;
|
|
43
|
-
skipRegExps: boolean;
|
|
44
|
-
skipTemplates: boolean;
|
|
45
|
-
skipJSXText: boolean;
|
|
46
|
-
})[];
|
|
47
|
-
'no-loss-of-precision': string;
|
|
48
|
-
'no-misleading-character-class': (string | {
|
|
49
|
-
allowEscape: boolean;
|
|
50
|
-
})[];
|
|
51
|
-
'no-new-native-nonconstructor': string;
|
|
52
|
-
'no-new-symbol': string;
|
|
53
|
-
'no-obj-calls': string;
|
|
54
|
-
'no-promise-executor-return': string;
|
|
55
|
-
'no-prototype-builtins': string;
|
|
56
|
-
'no-self-assign': string;
|
|
57
|
-
'no-self-compare': string;
|
|
58
|
-
'no-setter-return': string;
|
|
59
|
-
'no-sparse-arrays': string;
|
|
60
|
-
'no-template-curly-in-string': string;
|
|
61
|
-
'no-this-before-super': string;
|
|
62
|
-
'no-undef': string;
|
|
63
|
-
'no-unexpected-multiline': string;
|
|
64
|
-
'no-unmodified-loop-condition': string;
|
|
65
|
-
'no-unreachable': string;
|
|
66
|
-
'no-unreachable-loop': string;
|
|
67
|
-
'no-unsafe-finally': string;
|
|
68
|
-
'no-unsafe-negation': string;
|
|
69
|
-
'no-unsafe-optional-chaining': string;
|
|
70
|
-
'no-unused-private-class-members': string;
|
|
71
|
-
'no-unused-vars': (string | {
|
|
72
|
-
args: string;
|
|
73
|
-
argsIgnorePattern: string;
|
|
74
|
-
caughtErrors: string;
|
|
75
|
-
destructuredArrayIgnorePattern: string;
|
|
76
|
-
ignoreClassWithStaticInitBlock: boolean;
|
|
77
|
-
ignoreRestSiblings: boolean;
|
|
78
|
-
reportUsedIgnorePattern: boolean;
|
|
79
|
-
vars: string;
|
|
80
|
-
})[];
|
|
81
|
-
'no-use-before-define': (string | {
|
|
82
|
-
functions: boolean;
|
|
83
|
-
classes: boolean;
|
|
84
|
-
variables: boolean;
|
|
85
|
-
allowNamedExports: boolean;
|
|
86
|
-
})[];
|
|
87
|
-
'no-useless-backreference': string;
|
|
88
|
-
'no-useless-assignment': string;
|
|
89
|
-
'require-atomic-updates': (string | {
|
|
90
|
-
allowProperties: boolean;
|
|
91
|
-
})[];
|
|
92
|
-
'use-isnan': string;
|
|
93
|
-
'valid-typeof': (string | {
|
|
94
|
-
requireStringLiterals: boolean;
|
|
95
|
-
})[];
|
|
96
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eslintPossibleProblemsRules = void 0;
|
|
4
|
-
exports.eslintPossibleProblemsRules = {
|
|
5
|
-
'array-callback-return': ['error', {
|
|
6
|
-
allowImplicit: true,
|
|
7
|
-
checkForEach: false,
|
|
8
|
-
allowVoid: false,
|
|
9
|
-
}],
|
|
10
|
-
'constructor-super': 'error',
|
|
11
|
-
'for-direction': 'error',
|
|
12
|
-
'getter-return': 'error',
|
|
13
|
-
'no-async-promise-executor': 'error',
|
|
14
|
-
'no-await-in-loop': 'error',
|
|
15
|
-
'no-class-assign': 'error',
|
|
16
|
-
'no-compare-neg-zero': 'error',
|
|
17
|
-
'no-cond-assign': ['error', 'always'],
|
|
18
|
-
'no-const-assign': 'error',
|
|
19
|
-
'no-constant-binary-expression': 'error',
|
|
20
|
-
'no-constant-condition': 'error',
|
|
21
|
-
'no-constructor-return': 'error',
|
|
22
|
-
'no-control-regex': 'error',
|
|
23
|
-
'no-debugger': 'error',
|
|
24
|
-
'no-dupe-args': 'error',
|
|
25
|
-
'no-dupe-class-members': 'error',
|
|
26
|
-
'no-dupe-else-if': 'error',
|
|
27
|
-
'no-dupe-keys': 'error',
|
|
28
|
-
'no-duplicate-case': 'error',
|
|
29
|
-
'no-duplicate-imports': ['off', {
|
|
30
|
-
includeExports: true,
|
|
31
|
-
}],
|
|
32
|
-
'no-empty-character-class': 'error',
|
|
33
|
-
'no-empty-pattern': 'error',
|
|
34
|
-
'no-ex-assign': 'error',
|
|
35
|
-
'no-fallthrough': ['error', {
|
|
36
|
-
allowEmptyCase: false,
|
|
37
|
-
reportUnusedFallthroughComment: true,
|
|
38
|
-
}],
|
|
39
|
-
'no-func-assign': 'error',
|
|
40
|
-
'no-import-assign': 'error',
|
|
41
|
-
'no-inner-declarations': 'error',
|
|
42
|
-
'no-invalid-regexp': 'error',
|
|
43
|
-
'no-irregular-whitespace': ['error', {
|
|
44
|
-
skipStrings: false,
|
|
45
|
-
skipComments: false,
|
|
46
|
-
skipRegExps: false,
|
|
47
|
-
skipTemplates: false,
|
|
48
|
-
skipJSXText: false,
|
|
49
|
-
}],
|
|
50
|
-
'no-loss-of-precision': 'error',
|
|
51
|
-
'no-misleading-character-class': ['error', {
|
|
52
|
-
allowEscape: false,
|
|
53
|
-
}],
|
|
54
|
-
'no-new-native-nonconstructor': 'error',
|
|
55
|
-
'no-new-symbol': 'error',
|
|
56
|
-
'no-obj-calls': 'error',
|
|
57
|
-
'no-promise-executor-return': 'error',
|
|
58
|
-
'no-prototype-builtins': 'error',
|
|
59
|
-
'no-self-assign': 'error',
|
|
60
|
-
'no-self-compare': 'error',
|
|
61
|
-
'no-setter-return': 'error',
|
|
62
|
-
'no-sparse-arrays': 'error',
|
|
63
|
-
'no-template-curly-in-string': 'error',
|
|
64
|
-
'no-this-before-super': 'error',
|
|
65
|
-
'no-undef': 'off',
|
|
66
|
-
'no-unexpected-multiline': 'error',
|
|
67
|
-
'no-unmodified-loop-condition': 'error',
|
|
68
|
-
'no-unreachable': 'error',
|
|
69
|
-
'no-unreachable-loop': 'error',
|
|
70
|
-
'no-unsafe-finally': 'error',
|
|
71
|
-
'no-unsafe-negation': 'error',
|
|
72
|
-
'no-unsafe-optional-chaining': 'error',
|
|
73
|
-
'no-unused-private-class-members': 'error',
|
|
74
|
-
'no-unused-vars': ['error', {
|
|
75
|
-
args: 'after-used',
|
|
76
|
-
argsIgnorePattern: '^_',
|
|
77
|
-
caughtErrors: 'all',
|
|
78
|
-
destructuredArrayIgnorePattern: '^_',
|
|
79
|
-
ignoreClassWithStaticInitBlock: false,
|
|
80
|
-
ignoreRestSiblings: false,
|
|
81
|
-
reportUsedIgnorePattern: false,
|
|
82
|
-
vars: 'all',
|
|
83
|
-
}],
|
|
84
|
-
'no-use-before-define': ['error', {
|
|
85
|
-
functions: false,
|
|
86
|
-
classes: false,
|
|
87
|
-
variables: false,
|
|
88
|
-
allowNamedExports: false,
|
|
89
|
-
}],
|
|
90
|
-
'no-useless-backreference': 'error',
|
|
91
|
-
'no-useless-assignment': 'error',
|
|
92
|
-
'require-atomic-updates': ['error', {
|
|
93
|
-
allowProperties: false,
|
|
94
|
-
}],
|
|
95
|
-
'use-isnan': 'error',
|
|
96
|
-
'valid-typeof': ['error', {
|
|
97
|
-
requireStringLiterals: true,
|
|
98
|
-
}],
|
|
99
|
-
};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
export declare const eslintSuggestionsRules: {
|
|
2
|
-
'accessor-pairs': string;
|
|
3
|
-
'arrow-body-style': string[];
|
|
4
|
-
'block-scoped-var': string;
|
|
5
|
-
camelcase: string;
|
|
6
|
-
'capitalized-comments': (string | {
|
|
7
|
-
ignorePattern: string;
|
|
8
|
-
ignoreConsecutiveComments: boolean;
|
|
9
|
-
})[];
|
|
10
|
-
'class-methods-use-this': string;
|
|
11
|
-
complexity: (string | number)[];
|
|
12
|
-
'consistent-return': string;
|
|
13
|
-
'consistent-this': string[];
|
|
14
|
-
curly: string[];
|
|
15
|
-
'default-case': string;
|
|
16
|
-
'default-case-last': string;
|
|
17
|
-
'default-param-last': string;
|
|
18
|
-
'dot-notation': (string | {
|
|
19
|
-
allowKeywords: boolean;
|
|
20
|
-
})[];
|
|
21
|
-
eqeqeq: string[];
|
|
22
|
-
'func-name-matching': string[];
|
|
23
|
-
'func-names': string[];
|
|
24
|
-
'func-style': string[];
|
|
25
|
-
'grouped-accessor-pairs': string[];
|
|
26
|
-
'guard-for-in': string;
|
|
27
|
-
'id-denylist': string[];
|
|
28
|
-
'id-length': string;
|
|
29
|
-
'id-match': string;
|
|
30
|
-
'init-declarations': string[];
|
|
31
|
-
'logical-assignment-operators': (string | {
|
|
32
|
-
enforceForIfStatements: boolean;
|
|
33
|
-
})[];
|
|
34
|
-
'max-classes-per-file': (string | number)[];
|
|
35
|
-
'max-depth': (string | number)[];
|
|
36
|
-
'max-lines': string;
|
|
37
|
-
'max-lines-per-function': string;
|
|
38
|
-
'max-nested-callbacks': (string | number)[];
|
|
39
|
-
'max-params': (string | {
|
|
40
|
-
max: number;
|
|
41
|
-
})[];
|
|
42
|
-
'max-statements': (string | {
|
|
43
|
-
max: number;
|
|
44
|
-
})[];
|
|
45
|
-
'multiline-comment-style': string;
|
|
46
|
-
'new-cap': (string | {
|
|
47
|
-
newIsCap: boolean;
|
|
48
|
-
capIsNew: boolean;
|
|
49
|
-
properties: boolean;
|
|
50
|
-
})[];
|
|
51
|
-
'no-alert': string;
|
|
52
|
-
'no-array-constructor': string;
|
|
53
|
-
'no-bitwise': string;
|
|
54
|
-
'no-caller': string;
|
|
55
|
-
'no-case-declarations': string;
|
|
56
|
-
'no-confusing-arrow': string;
|
|
57
|
-
'no-console': string;
|
|
58
|
-
'no-continue': string;
|
|
59
|
-
'no-delete-var': string;
|
|
60
|
-
'no-div-regex': string;
|
|
61
|
-
'no-else-return': (string | {
|
|
62
|
-
allowElseIf: boolean;
|
|
63
|
-
})[];
|
|
64
|
-
'no-empty': string;
|
|
65
|
-
'no-empty-function': string;
|
|
66
|
-
'no-empty-static-block': string;
|
|
67
|
-
'no-eq-null': string;
|
|
68
|
-
'no-eval': string;
|
|
69
|
-
'no-extend-native': string;
|
|
70
|
-
'no-extra-bind': string;
|
|
71
|
-
'no-extra-boolean-cast': (string | {
|
|
72
|
-
enforceForInnerExpressions: boolean;
|
|
73
|
-
})[];
|
|
74
|
-
'no-extra-label': string;
|
|
75
|
-
'no-extra-semi': string;
|
|
76
|
-
'no-floating-decimal': string;
|
|
77
|
-
'no-global-assign': string;
|
|
78
|
-
'no-implicit-coercion': string;
|
|
79
|
-
'no-implicit-globals': string;
|
|
80
|
-
'no-implied-eval': string;
|
|
81
|
-
'no-inline-comments': (string | {
|
|
82
|
-
ignorePattern: string;
|
|
83
|
-
})[];
|
|
84
|
-
'no-invalid-this': string;
|
|
85
|
-
'no-iterator': string;
|
|
86
|
-
'no-label-var': string;
|
|
87
|
-
'no-labels': string;
|
|
88
|
-
'no-lone-blocks': string;
|
|
89
|
-
'no-lonely-if': string;
|
|
90
|
-
'no-loop-func': string;
|
|
91
|
-
'no-magic-numbers': string;
|
|
92
|
-
'no-mixed-operators': string;
|
|
93
|
-
'no-multi-assign': string;
|
|
94
|
-
'no-multi-str': string;
|
|
95
|
-
'no-negated-condition': string;
|
|
96
|
-
'no-nested-ternary': string;
|
|
97
|
-
'no-new': string;
|
|
98
|
-
'no-new-func': string;
|
|
99
|
-
'no-new-object': string;
|
|
100
|
-
'no-new-wrappers': string;
|
|
101
|
-
'no-nonoctal-decimal-escape': string;
|
|
102
|
-
'no-object-constructor': string;
|
|
103
|
-
'no-octal': string;
|
|
104
|
-
'no-octal-escape': string;
|
|
105
|
-
'no-param-reassign': string;
|
|
106
|
-
'no-plusplus': (string | {
|
|
107
|
-
allowForLoopAfterthoughts: boolean;
|
|
108
|
-
})[];
|
|
109
|
-
'no-proto': string;
|
|
110
|
-
'no-redeclare': string;
|
|
111
|
-
'no-regex-spaces': string;
|
|
112
|
-
'no-restricted-exports': string;
|
|
113
|
-
'no-restricted-globals': string;
|
|
114
|
-
'no-restricted-imports': string;
|
|
115
|
-
'no-restricted-properties': string;
|
|
116
|
-
'no-restricted-syntax': string[];
|
|
117
|
-
'no-return-assign': string;
|
|
118
|
-
'no-script-url': string;
|
|
119
|
-
'no-sequences': (string | {
|
|
120
|
-
allowInParentheses: boolean;
|
|
121
|
-
})[];
|
|
122
|
-
'no-shadow': string;
|
|
123
|
-
'no-shadow-restricted-names': string;
|
|
124
|
-
'no-ternary': string;
|
|
125
|
-
'no-throw-literal': string;
|
|
126
|
-
'no-undef-init': string;
|
|
127
|
-
'no-undefined': string;
|
|
128
|
-
'no-underscore-dangle': (string | {
|
|
129
|
-
allowAfterSuper: boolean;
|
|
130
|
-
allowAfterThis: boolean;
|
|
131
|
-
allowAfterThisConstructor: boolean;
|
|
132
|
-
allowFunctionParams: boolean;
|
|
133
|
-
enforceInMethodNames: boolean;
|
|
134
|
-
enforceInClassFields: boolean;
|
|
135
|
-
})[];
|
|
136
|
-
'no-unneeded-ternary': string;
|
|
137
|
-
'no-unused-expressions': string;
|
|
138
|
-
'no-unused-labels': string;
|
|
139
|
-
'no-useless-call': string;
|
|
140
|
-
'no-useless-catch': string;
|
|
141
|
-
'no-useless-computed-key': string;
|
|
142
|
-
'no-useless-concat': string;
|
|
143
|
-
'no-useless-constructor': string;
|
|
144
|
-
'no-useless-escape': string;
|
|
145
|
-
'no-useless-rename': string;
|
|
146
|
-
'no-useless-return': string;
|
|
147
|
-
'no-var': string;
|
|
148
|
-
'no-void': string;
|
|
149
|
-
'no-warning-comments': string;
|
|
150
|
-
'no-with': string;
|
|
151
|
-
'object-shorthand': string[];
|
|
152
|
-
'one-var': string[];
|
|
153
|
-
'one-var-declaration-per-line': string;
|
|
154
|
-
'operator-assignment': string[];
|
|
155
|
-
'prefer-arrow-callback': string;
|
|
156
|
-
'prefer-const': string;
|
|
157
|
-
'prefer-destructuring': string;
|
|
158
|
-
'prefer-exponentiation-operator': string;
|
|
159
|
-
'prefer-named-capture-group': string;
|
|
160
|
-
'prefer-numeric-literals': string;
|
|
161
|
-
'prefer-object-has-own': string;
|
|
162
|
-
'prefer-object-spread': string;
|
|
163
|
-
'prefer-promise-reject-errors': string;
|
|
164
|
-
'prefer-regex-literals': string;
|
|
165
|
-
'prefer-rest-params': string;
|
|
166
|
-
'prefer-spread': string;
|
|
167
|
-
'prefer-template': string;
|
|
168
|
-
'quote-props': string;
|
|
169
|
-
radix: string;
|
|
170
|
-
'require-await': string;
|
|
171
|
-
'require-unicode-regexp': string;
|
|
172
|
-
'require-yield': string;
|
|
173
|
-
'sort-imports': string;
|
|
174
|
-
'sort-keys': string;
|
|
175
|
-
'sort-vars': string;
|
|
176
|
-
'spaced-comment': string;
|
|
177
|
-
strict: string;
|
|
178
|
-
'symbol-description': string;
|
|
179
|
-
'vars-on-top': string;
|
|
180
|
-
yoda: string[];
|
|
181
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eslintSuggestionsRules = void 0;
|
|
4
|
-
exports.eslintSuggestionsRules = {
|
|
5
|
-
'accessor-pairs': 'error',
|
|
6
|
-
'arrow-body-style': ['warn', 'as-needed'],
|
|
7
|
-
'block-scoped-var': 'error',
|
|
8
|
-
'camelcase': 'off',
|
|
9
|
-
'capitalized-comments': ['warn', 'always', {
|
|
10
|
-
ignorePattern: 'eslint|tslint',
|
|
11
|
-
ignoreConsecutiveComments: true,
|
|
12
|
-
}],
|
|
13
|
-
'class-methods-use-this': 'off',
|
|
14
|
-
'complexity': ['error', 3],
|
|
15
|
-
'consistent-return': 'error',
|
|
16
|
-
'consistent-this': ['error', 'self'],
|
|
17
|
-
'curly': ['warn', 'all'],
|
|
18
|
-
'default-case': 'error',
|
|
19
|
-
'default-case-last': 'error',
|
|
20
|
-
'default-param-last': 'error',
|
|
21
|
-
'dot-notation': ['warn', {
|
|
22
|
-
allowKeywords: true,
|
|
23
|
-
}],
|
|
24
|
-
'eqeqeq': ['warn', 'always'],
|
|
25
|
-
'func-name-matching': ['error', 'always'],
|
|
26
|
-
'func-names': ['error', 'always'],
|
|
27
|
-
'func-style': ['error', 'declaration'],
|
|
28
|
-
'grouped-accessor-pairs': ['error', 'setBeforeGet'],
|
|
29
|
-
'guard-for-in': 'error',
|
|
30
|
-
'id-denylist': ['error', 'arr', 'ctx', 'el', 'elem', 'err', 'ind', 'ptr'],
|
|
31
|
-
'id-length': 'off',
|
|
32
|
-
'id-match': 'off',
|
|
33
|
-
'init-declarations': ['error', 'always'],
|
|
34
|
-
'logical-assignment-operators': ['warn', 'always', {
|
|
35
|
-
enforceForIfStatements: true,
|
|
36
|
-
}],
|
|
37
|
-
'max-classes-per-file': ['error', 1],
|
|
38
|
-
'max-depth': ['error', 4],
|
|
39
|
-
'max-lines': 'off',
|
|
40
|
-
'max-lines-per-function': 'off',
|
|
41
|
-
'max-nested-callbacks': ['error', 2],
|
|
42
|
-
'max-params': ['off', {
|
|
43
|
-
max: 3,
|
|
44
|
-
}],
|
|
45
|
-
'max-statements': ['off', {
|
|
46
|
-
max: 10,
|
|
47
|
-
}],
|
|
48
|
-
'multiline-comment-style': 'off',
|
|
49
|
-
'new-cap': ['error', {
|
|
50
|
-
newIsCap: true,
|
|
51
|
-
capIsNew: true,
|
|
52
|
-
properties: true,
|
|
53
|
-
}],
|
|
54
|
-
'no-alert': 'error',
|
|
55
|
-
'no-array-constructor': 'error',
|
|
56
|
-
'no-bitwise': 'error',
|
|
57
|
-
'no-caller': 'error',
|
|
58
|
-
'no-case-declarations': 'error',
|
|
59
|
-
'no-confusing-arrow': 'off',
|
|
60
|
-
'no-console': 'error',
|
|
61
|
-
'no-continue': 'error',
|
|
62
|
-
'no-delete-var': 'error',
|
|
63
|
-
'no-div-regex': 'warn',
|
|
64
|
-
'no-else-return': ['warn', {
|
|
65
|
-
allowElseIf: false,
|
|
66
|
-
}],
|
|
67
|
-
'no-empty': 'error',
|
|
68
|
-
'no-empty-function': 'error',
|
|
69
|
-
'no-empty-static-block': 'error',
|
|
70
|
-
'no-eq-null': 'error',
|
|
71
|
-
'no-eval': 'error',
|
|
72
|
-
'no-extend-native': 'error',
|
|
73
|
-
'no-extra-bind': 'warn',
|
|
74
|
-
'no-extra-boolean-cast': ['warn', {
|
|
75
|
-
enforceForInnerExpressions: true,
|
|
76
|
-
}],
|
|
77
|
-
'no-extra-label': 'warn',
|
|
78
|
-
'no-extra-semi': 'off',
|
|
79
|
-
'no-floating-decimal': 'off',
|
|
80
|
-
'no-global-assign': 'error',
|
|
81
|
-
'no-implicit-coercion': 'warn',
|
|
82
|
-
'no-implicit-globals': 'error',
|
|
83
|
-
'no-implied-eval': 'error',
|
|
84
|
-
'no-inline-comments': ['error', {
|
|
85
|
-
ignorePattern: '^ == .+',
|
|
86
|
-
}],
|
|
87
|
-
'no-invalid-this': 'error',
|
|
88
|
-
'no-iterator': 'error',
|
|
89
|
-
'no-label-var': 'error',
|
|
90
|
-
'no-labels': 'error',
|
|
91
|
-
'no-lone-blocks': 'error',
|
|
92
|
-
'no-lonely-if': 'warn',
|
|
93
|
-
'no-loop-func': 'error',
|
|
94
|
-
'no-magic-numbers': 'off',
|
|
95
|
-
'no-mixed-operators': 'off',
|
|
96
|
-
'no-multi-assign': 'error',
|
|
97
|
-
'no-multi-str': 'error',
|
|
98
|
-
'no-negated-condition': 'off',
|
|
99
|
-
'no-nested-ternary': 'error',
|
|
100
|
-
'no-new': 'error',
|
|
101
|
-
'no-new-func': 'error',
|
|
102
|
-
'no-new-object': 'off',
|
|
103
|
-
'no-new-wrappers': 'error',
|
|
104
|
-
'no-nonoctal-decimal-escape': 'error',
|
|
105
|
-
'no-object-constructor': 'error',
|
|
106
|
-
'no-octal': 'error',
|
|
107
|
-
'no-octal-escape': 'error',
|
|
108
|
-
'no-param-reassign': 'error',
|
|
109
|
-
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
|
|
110
|
-
'no-proto': 'error',
|
|
111
|
-
'no-redeclare': 'error',
|
|
112
|
-
'no-regex-spaces': 'warn',
|
|
113
|
-
'no-restricted-exports': 'off',
|
|
114
|
-
'no-restricted-globals': 'error',
|
|
115
|
-
'no-restricted-imports': 'error',
|
|
116
|
-
'no-restricted-properties': 'error',
|
|
117
|
-
'no-restricted-syntax': ['error', 'ForInStatement'],
|
|
118
|
-
'no-return-assign': 'error',
|
|
119
|
-
'no-script-url': 'error',
|
|
120
|
-
'no-sequences': ['error', {
|
|
121
|
-
allowInParentheses: false,
|
|
122
|
-
}],
|
|
123
|
-
'no-shadow': 'off',
|
|
124
|
-
'no-shadow-restricted-names': 'error',
|
|
125
|
-
'no-ternary': 'off',
|
|
126
|
-
'no-throw-literal': 'error',
|
|
127
|
-
'no-undef-init': 'warn',
|
|
128
|
-
'no-undefined': 'off',
|
|
129
|
-
'no-underscore-dangle': ['error', {
|
|
130
|
-
allowAfterSuper: false,
|
|
131
|
-
allowAfterThis: true,
|
|
132
|
-
allowAfterThisConstructor: false,
|
|
133
|
-
allowFunctionParams: true,
|
|
134
|
-
enforceInMethodNames: true,
|
|
135
|
-
enforceInClassFields: true,
|
|
136
|
-
}],
|
|
137
|
-
'no-unneeded-ternary': 'warn',
|
|
138
|
-
'no-unused-expressions': 'error',
|
|
139
|
-
'no-unused-labels': 'warn',
|
|
140
|
-
'no-useless-call': 'error',
|
|
141
|
-
'no-useless-catch': 'error',
|
|
142
|
-
'no-useless-computed-key': 'warn',
|
|
143
|
-
'no-useless-concat': 'error',
|
|
144
|
-
'no-useless-constructor': 'error',
|
|
145
|
-
'no-useless-escape': 'error',
|
|
146
|
-
'no-useless-rename': 'warn',
|
|
147
|
-
'no-useless-return': 'warn',
|
|
148
|
-
'no-var': 'warn',
|
|
149
|
-
'no-void': 'error',
|
|
150
|
-
'no-warning-comments': 'off',
|
|
151
|
-
'no-with': 'error',
|
|
152
|
-
'object-shorthand': ['warn', 'always'],
|
|
153
|
-
'one-var': ['warn', 'never'],
|
|
154
|
-
'one-var-declaration-per-line': 'off',
|
|
155
|
-
'operator-assignment': ['warn', 'always'],
|
|
156
|
-
'prefer-arrow-callback': 'warn',
|
|
157
|
-
'prefer-const': 'warn',
|
|
158
|
-
'prefer-destructuring': 'off',
|
|
159
|
-
'prefer-exponentiation-operator': 'warn',
|
|
160
|
-
'prefer-named-capture-group': 'off',
|
|
161
|
-
'prefer-numeric-literals': 'warn',
|
|
162
|
-
'prefer-object-has-own': 'off',
|
|
163
|
-
'prefer-object-spread': 'warn',
|
|
164
|
-
'prefer-promise-reject-errors': 'error',
|
|
165
|
-
'prefer-regex-literals': 'off',
|
|
166
|
-
'prefer-rest-params': 'error',
|
|
167
|
-
'prefer-spread': 'error',
|
|
168
|
-
'prefer-template': 'warn',
|
|
169
|
-
'quote-props': 'off',
|
|
170
|
-
'radix': 'error',
|
|
171
|
-
'require-await': 'error',
|
|
172
|
-
'require-unicode-regexp': 'error',
|
|
173
|
-
'require-yield': 'error',
|
|
174
|
-
'sort-imports': 'off',
|
|
175
|
-
'sort-keys': 'off',
|
|
176
|
-
'sort-vars': 'off',
|
|
177
|
-
'spaced-comment': 'off',
|
|
178
|
-
'strict': 'warn',
|
|
179
|
-
'symbol-description': 'error',
|
|
180
|
-
'vars-on-top': 'error',
|
|
181
|
-
'yoda': ['warn', 'never'],
|
|
182
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const bestPracticesRules: {
|
|
2
|
-
'eslint-comments/disable-enable-pair': string;
|
|
3
|
-
'eslint-comments/no-aggregating-enable': string;
|
|
4
|
-
'eslint-comments/no-duplicate-disable': string;
|
|
5
|
-
'eslint-comments/no-unlimited-disable': string;
|
|
6
|
-
'eslint-comments/no-unused-disable': string;
|
|
7
|
-
'eslint-comments/no-unused-enable': string;
|
|
8
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bestPracticesRules = void 0;
|
|
4
|
-
exports.bestPracticesRules = {
|
|
5
|
-
'eslint-comments/disable-enable-pair': 'error',
|
|
6
|
-
'eslint-comments/no-aggregating-enable': 'error',
|
|
7
|
-
'eslint-comments/no-duplicate-disable': 'error',
|
|
8
|
-
'eslint-comments/no-unlimited-disable': 'error',
|
|
9
|
-
'eslint-comments/no-unused-disable': 'error',
|
|
10
|
-
'eslint-comments/no-unused-enable': 'error',
|
|
11
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginEslintComments from 'eslint-plugin-eslint-comments';
|
|
2
|
-
export declare const eslintCommentsConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
'eslint-comments': typeof eslintPluginEslintComments;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
'eslint-comments/no-restricted-disable': string;
|
|
8
|
-
'eslint-comments/no-use': (string | {
|
|
9
|
-
allow: string[];
|
|
10
|
-
})[];
|
|
11
|
-
'eslint-comments/require-description': (string | {
|
|
12
|
-
ignore: string[];
|
|
13
|
-
})[];
|
|
14
|
-
'eslint-comments/disable-enable-pair': string;
|
|
15
|
-
'eslint-comments/no-aggregating-enable': string;
|
|
16
|
-
'eslint-comments/no-duplicate-disable': string;
|
|
17
|
-
'eslint-comments/no-unlimited-disable': string;
|
|
18
|
-
'eslint-comments/no-unused-disable': string;
|
|
19
|
-
'eslint-comments/no-unused-enable': string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.eslintCommentsConfig = void 0;
|
|
37
|
-
const eslintPluginEslintComments = __importStar(require("eslint-plugin-eslint-comments"));
|
|
38
|
-
const best_practices_1 = require("./best-practices");
|
|
39
|
-
const stylistic_issues_1 = require("./stylistic-issues");
|
|
40
|
-
exports.eslintCommentsConfig = {
|
|
41
|
-
plugins: {
|
|
42
|
-
'eslint-comments': eslintPluginEslintComments,
|
|
43
|
-
},
|
|
44
|
-
rules: Object.assign(Object.assign({}, best_practices_1.bestPracticesRules), stylistic_issues_1.stylisticIssuesRules),
|
|
45
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stylisticIssuesRules = void 0;
|
|
4
|
-
exports.stylisticIssuesRules = {
|
|
5
|
-
'eslint-comments/no-restricted-disable': 'off',
|
|
6
|
-
'eslint-comments/no-use': ['error', {
|
|
7
|
-
allow: [
|
|
8
|
-
'eslint-disable',
|
|
9
|
-
'eslint-disable-next-line',
|
|
10
|
-
'eslint-enable',
|
|
11
|
-
],
|
|
12
|
-
}],
|
|
13
|
-
'eslint-comments/require-description': ['error', {
|
|
14
|
-
ignore: [
|
|
15
|
-
'eslint-enable',
|
|
16
|
-
],
|
|
17
|
-
}],
|
|
18
|
-
};
|