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