@perfective/eslint-config 0.27.1 → 0.28.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/README.adoc +18 -19
- package/README.md +21 -24
- package/index.js +151 -121
- package/package.json +13 -15
- package/rules/array-func/index.js +40 -4
- package/rules/cypress/index.js +52 -12
- package/rules/eslint/index.js +7 -6
- package/rules/eslint/layout-formatting.js +65 -65
- package/rules/eslint/possible-problems.js +89 -89
- package/rules/eslint/suggestions.js +178 -178
- package/rules/eslint-comments/best-practices.js +9 -9
- package/rules/eslint-comments/index.js +43 -8
- package/rules/eslint-comments/stylistic-issues.js +16 -16
- package/rules/import/helpful-warnings.js +11 -11
- package/rules/import/index.js +12 -10
- package/rules/import/module-systems.js +11 -11
- package/rules/import/static-analysis.js +27 -27
- package/rules/import/style-guide.js +34 -34
- package/rules/jest/index.js +53 -78
- package/rules/jest/typescript-eslint.js +6 -6
- package/rules/jest-dom/index.js +40 -4
- package/rules/jsdoc/index.js +42 -4
- package/rules/n/index.js +40 -4
- package/rules/prefer-arrow/index.js +40 -4
- package/rules/promise/index.js +54 -7
- package/rules/rxjs/index.js +40 -4
- package/rules/security/index.js +40 -4
- package/rules/simple-import-sort/index.js +41 -4
- package/rules/stylistic/js/index.js +40 -4
- package/rules/stylistic/jsx/index.js +41 -5
- package/rules/stylistic/plus/index.js +40 -4
- package/rules/stylistic/ts/index.js +40 -4
- package/rules/testing-library/index.js +40 -4
- package/rules/typescript-eslint/extension-rules.js +114 -114
- package/rules/typescript-eslint/index.js +43 -8
- package/rules/typescript-eslint/supported-rules.js +315 -314
- package/rules/unicorn/index.js +40 -4
- package/rules/sonarjs/bug-detection.js +0 -15
- package/rules/sonarjs/code-smell-detection.js +0 -27
- package/rules/sonarjs/index.js +0 -10
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eslintLayoutFormattingRules = void 0;
|
|
4
|
+
exports.eslintLayoutFormattingRules = {
|
|
5
|
+
'array-bracket-newline': 'off',
|
|
6
|
+
'array-bracket-spacing': 'off',
|
|
7
|
+
'array-element-newline': 'off',
|
|
8
|
+
'arrow-parens': 'off',
|
|
9
|
+
'arrow-spacing': 'off',
|
|
10
|
+
'block-spacing': 'off',
|
|
11
|
+
'brace-style': 'off',
|
|
12
|
+
'comma-dangle': 'off',
|
|
13
|
+
'comma-spacing': 'off',
|
|
14
|
+
'comma-style': 'off',
|
|
15
|
+
'computed-property-spacing': 'off',
|
|
16
|
+
'dot-location': 'off',
|
|
17
|
+
'eol-last': 'off',
|
|
18
|
+
'func-call-spacing': 'off',
|
|
19
|
+
'function-call-argument-newline': 'off',
|
|
20
|
+
'function-paren-newline': 'off',
|
|
21
|
+
'generator-star-spacing': 'off',
|
|
22
|
+
'implicit-arrow-linebreak': 'off',
|
|
23
|
+
'indent': 'off',
|
|
24
|
+
'jsx-quotes': 'off',
|
|
25
|
+
'key-spacing': 'off',
|
|
26
|
+
'keyword-spacing': 'off',
|
|
27
|
+
'line-comment-position': 'off',
|
|
28
|
+
'linebreak-style': 'off',
|
|
29
|
+
'lines-around-comment': 'off',
|
|
30
|
+
'lines-between-class-members': 'off',
|
|
31
|
+
'max-len': 'off',
|
|
32
|
+
'max-statements-per-line': 'off',
|
|
33
|
+
'multiline-ternary': 'off',
|
|
34
|
+
'new-parens': 'off',
|
|
35
|
+
'newline-per-chained-call': 'off',
|
|
36
|
+
'no-extra-parens': 'off',
|
|
37
|
+
'no-mixed-spaces-and-tabs': 'off',
|
|
38
|
+
'no-multi-spaces': 'off',
|
|
39
|
+
'no-multiple-empty-lines': 'off',
|
|
40
|
+
'no-tabs': 'off',
|
|
41
|
+
'no-trailing-spaces': 'off',
|
|
42
|
+
'no-whitespace-before-property': 'off',
|
|
43
|
+
'nonblock-statement-body-position': 'off',
|
|
44
|
+
'object-curly-newline': 'off',
|
|
45
|
+
'object-curly-spacing': 'off',
|
|
46
|
+
'object-property-newline': 'off',
|
|
47
|
+
'operator-linebreak': 'off',
|
|
48
|
+
'padded-blocks': 'off',
|
|
49
|
+
'padding-line-between-statements': 'off',
|
|
50
|
+
'quotes': 'off',
|
|
51
|
+
'rest-spread-spacing': 'off',
|
|
52
|
+
'semi': 'off',
|
|
53
|
+
'semi-spacing': 'off',
|
|
54
|
+
'semi-style': 'off',
|
|
55
|
+
'space-before-blocks': 'off',
|
|
56
|
+
'space-before-function-paren': 'off',
|
|
57
|
+
'space-in-parens': 'off',
|
|
58
|
+
'space-infix-ops': 'off',
|
|
59
|
+
'space-unary-ops': 'off',
|
|
60
|
+
'switch-colon-spacing': 'off',
|
|
61
|
+
'template-curly-spacing': 'off',
|
|
62
|
+
'template-tag-spacing': 'off',
|
|
63
|
+
'unicode-bom': ['warn', 'never'],
|
|
64
|
+
'wrap-iife': 'off',
|
|
65
|
+
'wrap-regex': 'off',
|
|
66
|
+
'yield-star-spacing': 'off',
|
|
67
67
|
};
|
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
'no-func-assign': 'error',
|
|
37
|
+
'no-import-assign': 'error',
|
|
38
|
+
'no-inner-declarations': 'error',
|
|
39
|
+
'no-invalid-regexp': 'error',
|
|
40
|
+
'no-irregular-whitespace': ['error', {
|
|
41
|
+
skipStrings: false,
|
|
42
|
+
skipComments: false,
|
|
43
|
+
skipRegExps: false,
|
|
44
|
+
skipTemplates: false,
|
|
45
|
+
skipJSXText: false,
|
|
46
|
+
}],
|
|
47
|
+
'no-loss-of-precision': 'error',
|
|
48
|
+
'no-misleading-character-class': 'error',
|
|
49
|
+
'no-new-native-nonconstructor': 'error',
|
|
50
|
+
'no-new-symbol': 'error',
|
|
51
|
+
'no-obj-calls': 'error',
|
|
52
|
+
'no-promise-executor-return': 'error',
|
|
53
|
+
'no-prototype-builtins': 'error',
|
|
54
|
+
'no-self-assign': 'error',
|
|
55
|
+
'no-self-compare': 'error',
|
|
56
|
+
'no-setter-return': 'error',
|
|
57
|
+
'no-sparse-arrays': 'error',
|
|
58
|
+
'no-template-curly-in-string': 'error',
|
|
59
|
+
'no-this-before-super': 'error',
|
|
60
|
+
'no-undef': 'off',
|
|
61
|
+
'no-unexpected-multiline': 'error',
|
|
62
|
+
'no-unmodified-loop-condition': 'error',
|
|
63
|
+
'no-unreachable': 'error',
|
|
64
|
+
'no-unreachable-loop': 'error',
|
|
65
|
+
'no-unsafe-finally': 'error',
|
|
66
|
+
'no-unsafe-negation': 'error',
|
|
67
|
+
'no-unsafe-optional-chaining': 'error',
|
|
68
|
+
'no-unused-private-class-members': 'error',
|
|
69
|
+
'no-unused-vars': ['error', {
|
|
70
|
+
args: 'after-used',
|
|
71
|
+
argsIgnorePattern: '^_',
|
|
72
|
+
caughtErrors: 'all',
|
|
73
|
+
destructuredArrayIgnorePattern: '^_',
|
|
74
|
+
ignoreRestSiblings: false,
|
|
75
|
+
vars: 'all',
|
|
76
|
+
}],
|
|
77
|
+
'no-use-before-define': ['error', {
|
|
78
|
+
functions: false,
|
|
79
|
+
classes: false,
|
|
80
|
+
variables: false,
|
|
81
|
+
allowNamedExports: false,
|
|
82
|
+
}],
|
|
83
|
+
'no-useless-backreference': 'error',
|
|
84
|
+
'require-atomic-updates': ['error', {
|
|
85
|
+
allowProperties: false,
|
|
86
|
+
}],
|
|
87
|
+
'use-isnan': 'error',
|
|
88
|
+
'valid-typeof': ['error', {
|
|
89
|
+
requireStringLiterals: true,
|
|
90
|
+
}],
|
|
91
91
|
};
|