@cherepanov.pavel/shareable-config 1.0.3 → 1.0.4

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 (48) hide show
  1. package/.editorconfig +2 -3
  2. package/.editorconfig-get.js +3 -3
  3. package/.get-all.js +16 -12
  4. package/.gitattributes-get.js +3 -3
  5. package/.gitignore-get.js +33 -30
  6. package/.vscode/.code-snippets-get.js +34 -31
  7. package/.vscode/extensions.json +17 -17
  8. package/.vscode/extensions.json-get.js +25 -25
  9. package/.vscode/settings.json +36 -27
  10. package/.vscode/settings.json-get.js +25 -25
  11. package/env.json5.set.js +1 -1
  12. package/jsconfig.json +4 -7
  13. package/package.json +10 -1
  14. package/tools/eslint-config/configs/global.js +21 -18
  15. package/tools/eslint-config/configs/javascript.js +14 -14
  16. package/tools/eslint-config/configs/json.js +93 -0
  17. package/tools/eslint-config/configs/typescript.js +17 -17
  18. package/tools/eslint-config/configs/vue.js +22 -22
  19. package/tools/eslint-config/index.js +1 -0
  20. package/tools/eslint-config/rules/constants.js +10 -9
  21. package/tools/eslint-config/rules/javascript/index.js +2 -2
  22. package/tools/eslint-config/rules/javascript/possible-problems.js +76 -58
  23. package/tools/eslint-config/rules/javascript/suggestions.js +405 -249
  24. package/tools/eslint-config/rules/stylistic/jsFormatting.js +321 -167
  25. package/tools/eslint-config/rules/stylistic/tsFormatting.js +4 -4
  26. package/tools/eslint-config/rules/typescript/common.js +135 -126
  27. package/tools/eslint-config/rules/typescript/compatibility.js +20 -20
  28. package/tools/eslint-config/rules/typescript/extension.js +44 -44
  29. package/tools/eslint-config/rules/typescript/index.js +3 -3
  30. package/tools/eslint-config/rules/vue/base.js +2 -2
  31. package/tools/eslint-config/rules/vue/extension.js +47 -44
  32. package/tools/eslint-config/rules/vue/formatting.js +66 -36
  33. package/tools/eslint-config/rules/vue/index.js +5 -5
  34. package/tools/eslint-config/rules/vue/possibleProblems.js +182 -109
  35. package/tools/eslint-config/rules/vue/suggestions.js +82 -79
  36. package/tools/stylelint-config/config.js +18 -20
  37. package/tools/stylelint-config/rules/base.js +30 -24
  38. package/tools/stylelint-config/rules/conflicts.js +5 -5
  39. package/tools/stylelint-config/rules/order.js +38 -38
  40. package/tools/stylelint-config/rules/property-groups.js +392 -389
  41. package/tools/stylelint-config/rules/scss.js +9 -6
  42. package/tools/stylelint-config/rules/stylistic.js +110 -109
  43. package/utils/communication.js +26 -26
  44. package/utils/copy-with-override.js +35 -33
  45. package/utils/env.js +4 -4
  46. package/utils/file-header.js +9 -9
  47. package/utils/file.js +46 -46
  48. package/utils/merge.js +161 -155
@@ -1,130 +1,139 @@
1
1
  import { ERROR, OFF, WARN } from '../severity.js';
2
2
 
3
3
  export const commonRules = {
4
- '@typescript-eslint/adjacent-overload-signatures': ERROR,
5
- '@typescript-eslint/array-type': ERROR,
6
- '@typescript-eslint/await-thenable': ERROR,
7
- '@typescript-eslint/ban-ts-comment': ERROR,
8
- '@typescript-eslint/ban-tslint-comment': ERROR,
9
- // '@typescript-eslint/ban-types': ERROR,
10
- '@typescript-eslint/class-literal-property-style': ERROR,
11
- '@typescript-eslint/consistent-generic-constructors': ERROR,
12
- '@typescript-eslint/consistent-indexed-object-style': ERROR,
13
- '@typescript-eslint/consistent-type-assertions': ERROR,
14
- '@typescript-eslint/consistent-type-definitions': ERROR,
15
- '@typescript-eslint/consistent-type-exports': ERROR,
16
- '@typescript-eslint/consistent-type-imports': ERROR,
17
- '@typescript-eslint/explicit-function-return-type': OFF,
18
- '@typescript-eslint/explicit-member-accessibility': ERROR,
19
- '@typescript-eslint/explicit-module-boundary-types': OFF,
20
- // '@typescript-eslint/member-delimiter-style': ERROR,
21
- '@typescript-eslint/member-ordering': ERROR,
22
- '@typescript-eslint/method-signature-style': ERROR,
23
- '@typescript-eslint/naming-convention': [
24
- ERROR,
25
- {
26
- selector: 'default',
27
- // UPPER_CASE for, like example, consts from env files
28
- format: ['camelCase', 'UPPER_CASE'],
29
- leadingUnderscore: 'forbid',
30
- trailingUnderscore: 'forbid',
31
- },
32
- {
33
- selector: 'import',
34
- // PascalCase for components import
35
- format: ['camelCase', 'PascalCase'],
36
- },
37
- {
38
- selector: 'variable',
39
- // UPPER_CASE for, like example, consts from env files
40
- format: ['camelCase', 'UPPER_CASE'],
41
- },
42
- {
43
- selector: 'typeLike',
44
- format: ['PascalCase'],
45
- },
46
- {
47
- selector: 'objectLiteralProperty',
48
- // because of BE inconsistency
49
- format: null,
50
- },
51
- ],
52
- '@typescript-eslint/no-base-to-string': ERROR,
53
- '@typescript-eslint/no-confusing-non-null-assertion': ERROR,
54
- '@typescript-eslint/no-confusing-void-expression': ERROR,
55
- '@typescript-eslint/no-duplicate-enum-values': ERROR,
56
- '@typescript-eslint/no-duplicate-type-constituents': ERROR,
57
- '@typescript-eslint/no-dynamic-delete': ERROR,
58
- '@typescript-eslint/no-empty-interface': ERROR,
59
- '@typescript-eslint/no-explicit-any': WARN,
60
- '@typescript-eslint/no-extra-non-null-assertion': ERROR,
61
- '@typescript-eslint/no-extraneous-class': ERROR,
62
- '@typescript-eslint/no-floating-promises': ERROR,
63
- '@typescript-eslint/no-for-in-array': ERROR,
64
- '@typescript-eslint/no-import-type-side-effects': ERROR,
65
- '@typescript-eslint/no-inferrable-types': ERROR,
66
- '@typescript-eslint/no-invalid-void-type': ERROR,
67
- '@typescript-eslint/no-meaningless-void-operator': ERROR,
68
- '@typescript-eslint/no-misused-new': ERROR,
69
- '@typescript-eslint/no-misused-promises': [
70
- ERROR,
71
- {
72
- checksVoidReturn: false,
73
- },
74
- ],
75
- '@typescript-eslint/no-mixed-enums': ERROR,
76
- '@typescript-eslint/no-namespace': ERROR,
77
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': ERROR,
78
- '@typescript-eslint/no-non-null-asserted-optional-chain': ERROR,
79
- '@typescript-eslint/no-non-null-assertion': OFF,
80
- '@typescript-eslint/no-redundant-type-constituents': ERROR,
81
- '@typescript-eslint/no-require-imports': ERROR,
82
- '@typescript-eslint/no-this-alias': ERROR,
83
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': ERROR,
84
- '@typescript-eslint/no-unnecessary-condition': ERROR,
85
- '@typescript-eslint/no-unnecessary-qualifier': ERROR,
86
- '@typescript-eslint/no-unnecessary-type-arguments': ERROR,
87
- '@typescript-eslint/no-unnecessary-type-assertion': ERROR,
88
- '@typescript-eslint/no-unnecessary-type-constraint': ERROR,
89
- '@typescript-eslint/no-unsafe-argument': WARN,
90
- '@typescript-eslint/no-unsafe-assignment': OFF,
91
- '@typescript-eslint/no-unsafe-call': WARN,
92
- '@typescript-eslint/no-unsafe-declaration-merging': ERROR,
93
- '@typescript-eslint/no-unsafe-enum-comparison': ERROR,
94
- '@typescript-eslint/no-unsafe-member-access': WARN,
95
- '@typescript-eslint/no-unsafe-return': OFF,
96
- '@typescript-eslint/no-useless-empty-export': ERROR,
97
- '@typescript-eslint/no-var-requires': ERROR,
98
- '@typescript-eslint/non-nullable-type-assertion-style': ERROR,
99
- '@typescript-eslint/parameter-properties': ERROR,
100
- '@typescript-eslint/prefer-as-const': ERROR,
101
- '@typescript-eslint/prefer-enum-initializers': ERROR,
102
- '@typescript-eslint/prefer-for-of': ERROR,
103
- '@typescript-eslint/prefer-function-type': ERROR,
104
- '@typescript-eslint/prefer-includes': ERROR,
105
- '@typescript-eslint/prefer-literal-enum-member': ERROR,
106
- '@typescript-eslint/prefer-namespace-keyword': ERROR,
107
- // maybe we will enable it later, after ending discuss in ts-eslint repo
108
- // https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue%20state%3Aopen%20prefer-nullish-coalescing
109
- '@typescript-eslint/prefer-nullish-coalescing': OFF,
110
- '@typescript-eslint/prefer-optional-chain': ERROR,
111
- '@typescript-eslint/prefer-readonly': ERROR,
112
- '@typescript-eslint/prefer-readonly-parameter-types': OFF,
113
- '@typescript-eslint/prefer-reduce-type-parameter': ERROR,
114
- '@typescript-eslint/prefer-regexp-exec': ERROR,
115
- '@typescript-eslint/prefer-return-this-type': ERROR,
116
- '@typescript-eslint/prefer-string-starts-ends-with': ERROR,
117
- '@typescript-eslint/prefer-ts-expect-error': ERROR,
118
- '@typescript-eslint/promise-function-async': ERROR,
119
- '@typescript-eslint/require-array-sort-compare': ERROR,
120
- '@typescript-eslint/restrict-plus-operands': ERROR,
121
- '@typescript-eslint/restrict-template-expressions': ERROR,
122
- '@typescript-eslint/sort-type-constituents': OFF,
123
- '@typescript-eslint/strict-boolean-expressions': OFF,
124
- '@typescript-eslint/switch-exhaustiveness-check': OFF,
125
- '@typescript-eslint/triple-slash-reference': ERROR,
126
- // '@typescript-eslint/type-annotation-spacing': ERROR,
127
- '@typescript-eslint/typedef': ERROR,
128
- '@typescript-eslint/unbound-method': ERROR,
129
- '@typescript-eslint/unified-signatures': ERROR,
4
+ '@typescript-eslint/adjacent-overload-signatures': ERROR,
5
+ '@typescript-eslint/array-type': ERROR,
6
+ '@typescript-eslint/await-thenable': ERROR,
7
+ '@typescript-eslint/ban-ts-comment': ERROR,
8
+ '@typescript-eslint/ban-tslint-comment': ERROR,
9
+ // '@typescript-eslint/ban-types': ERROR,
10
+ '@typescript-eslint/class-literal-property-style': ERROR,
11
+ '@typescript-eslint/consistent-generic-constructors': ERROR,
12
+ '@typescript-eslint/consistent-indexed-object-style': ERROR,
13
+ '@typescript-eslint/consistent-type-assertions': ERROR,
14
+ '@typescript-eslint/consistent-type-definitions': ERROR,
15
+ '@typescript-eslint/consistent-type-exports': ERROR,
16
+ '@typescript-eslint/consistent-type-imports': ERROR,
17
+ '@typescript-eslint/explicit-function-return-type': OFF,
18
+ '@typescript-eslint/explicit-member-accessibility': ERROR,
19
+ '@typescript-eslint/explicit-module-boundary-types': OFF,
20
+ // '@typescript-eslint/member-delimiter-style': ERROR,
21
+ '@typescript-eslint/member-ordering': ERROR,
22
+ '@typescript-eslint/method-signature-style': ERROR,
23
+ '@typescript-eslint/naming-convention': [
24
+ ERROR,
25
+ {
26
+ selector: 'default',
27
+ // UPPER_CASE for, like example, consts from env files
28
+ format: [
29
+ 'camelCase',
30
+ 'UPPER_CASE',
31
+ ],
32
+ leadingUnderscore: 'forbid',
33
+ trailingUnderscore: 'forbid',
34
+ },
35
+ {
36
+ selector: 'import',
37
+ // PascalCase for components import
38
+ format: [
39
+ 'camelCase',
40
+ 'PascalCase',
41
+ ],
42
+ },
43
+ {
44
+ selector: 'variable',
45
+ // UPPER_CASE for, like example, consts from env files
46
+ format: [
47
+ 'camelCase',
48
+ 'UPPER_CASE',
49
+ ],
50
+ },
51
+ {
52
+ selector: 'typeLike',
53
+ format: ['PascalCase'],
54
+ },
55
+ {
56
+ selector: 'objectLiteralProperty',
57
+ // because of BE inconsistency
58
+ format: null,
59
+ },
60
+ ],
61
+ '@typescript-eslint/no-base-to-string': ERROR,
62
+ '@typescript-eslint/no-confusing-non-null-assertion': ERROR,
63
+ '@typescript-eslint/no-confusing-void-expression': ERROR,
64
+ '@typescript-eslint/no-duplicate-enum-values': ERROR,
65
+ '@typescript-eslint/no-duplicate-type-constituents': ERROR,
66
+ '@typescript-eslint/no-dynamic-delete': ERROR,
67
+ '@typescript-eslint/no-empty-interface': ERROR,
68
+ '@typescript-eslint/no-explicit-any': WARN,
69
+ '@typescript-eslint/no-extra-non-null-assertion': ERROR,
70
+ '@typescript-eslint/no-extraneous-class': ERROR,
71
+ '@typescript-eslint/no-floating-promises': ERROR,
72
+ '@typescript-eslint/no-for-in-array': ERROR,
73
+ '@typescript-eslint/no-import-type-side-effects': ERROR,
74
+ '@typescript-eslint/no-inferrable-types': ERROR,
75
+ '@typescript-eslint/no-invalid-void-type': ERROR,
76
+ '@typescript-eslint/no-meaningless-void-operator': ERROR,
77
+ '@typescript-eslint/no-misused-new': ERROR,
78
+ '@typescript-eslint/no-misused-promises': [
79
+ ERROR,
80
+ {
81
+ checksVoidReturn: false,
82
+ },
83
+ ],
84
+ '@typescript-eslint/no-mixed-enums': ERROR,
85
+ '@typescript-eslint/no-namespace': ERROR,
86
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': ERROR,
87
+ '@typescript-eslint/no-non-null-asserted-optional-chain': ERROR,
88
+ '@typescript-eslint/no-non-null-assertion': OFF,
89
+ '@typescript-eslint/no-redundant-type-constituents': ERROR,
90
+ '@typescript-eslint/no-require-imports': ERROR,
91
+ '@typescript-eslint/no-this-alias': ERROR,
92
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': ERROR,
93
+ '@typescript-eslint/no-unnecessary-condition': ERROR,
94
+ '@typescript-eslint/no-unnecessary-qualifier': ERROR,
95
+ '@typescript-eslint/no-unnecessary-type-arguments': ERROR,
96
+ '@typescript-eslint/no-unnecessary-type-assertion': ERROR,
97
+ '@typescript-eslint/no-unnecessary-type-constraint': ERROR,
98
+ '@typescript-eslint/no-unsafe-argument': WARN,
99
+ '@typescript-eslint/no-unsafe-assignment': OFF,
100
+ '@typescript-eslint/no-unsafe-call': WARN,
101
+ '@typescript-eslint/no-unsafe-declaration-merging': ERROR,
102
+ '@typescript-eslint/no-unsafe-enum-comparison': ERROR,
103
+ '@typescript-eslint/no-unsafe-member-access': WARN,
104
+ '@typescript-eslint/no-unsafe-return': OFF,
105
+ '@typescript-eslint/no-useless-empty-export': ERROR,
106
+ '@typescript-eslint/no-var-requires': ERROR,
107
+ '@typescript-eslint/non-nullable-type-assertion-style': ERROR,
108
+ '@typescript-eslint/parameter-properties': ERROR,
109
+ '@typescript-eslint/prefer-as-const': ERROR,
110
+ '@typescript-eslint/prefer-enum-initializers': ERROR,
111
+ '@typescript-eslint/prefer-for-of': ERROR,
112
+ '@typescript-eslint/prefer-function-type': ERROR,
113
+ '@typescript-eslint/prefer-includes': ERROR,
114
+ '@typescript-eslint/prefer-literal-enum-member': ERROR,
115
+ '@typescript-eslint/prefer-namespace-keyword': ERROR,
116
+ // maybe we will enable it later, after ending discuss in ts-eslint repo
117
+ // https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue%20state%3Aopen%20prefer-nullish-coalescing
118
+ '@typescript-eslint/prefer-nullish-coalescing': OFF,
119
+ '@typescript-eslint/prefer-optional-chain': ERROR,
120
+ '@typescript-eslint/prefer-readonly': ERROR,
121
+ '@typescript-eslint/prefer-readonly-parameter-types': OFF,
122
+ '@typescript-eslint/prefer-reduce-type-parameter': ERROR,
123
+ '@typescript-eslint/prefer-regexp-exec': ERROR,
124
+ '@typescript-eslint/prefer-return-this-type': ERROR,
125
+ '@typescript-eslint/prefer-string-starts-ends-with': ERROR,
126
+ '@typescript-eslint/prefer-ts-expect-error': ERROR,
127
+ '@typescript-eslint/promise-function-async': ERROR,
128
+ '@typescript-eslint/require-array-sort-compare': ERROR,
129
+ '@typescript-eslint/restrict-plus-operands': ERROR,
130
+ '@typescript-eslint/restrict-template-expressions': ERROR,
131
+ '@typescript-eslint/sort-type-constituents': OFF,
132
+ '@typescript-eslint/strict-boolean-expressions': OFF,
133
+ '@typescript-eslint/switch-exhaustiveness-check': OFF,
134
+ '@typescript-eslint/triple-slash-reference': ERROR,
135
+ // '@typescript-eslint/type-annotation-spacing': ERROR,
136
+ '@typescript-eslint/typedef': ERROR,
137
+ '@typescript-eslint/unbound-method': ERROR,
138
+ '@typescript-eslint/unified-signatures': ERROR,
130
139
  };
@@ -1,24 +1,24 @@
1
1
  import { ERROR, OFF } from '../severity.js';
2
2
 
3
3
  export const compatibilityRules = {
4
- 'constructor-super': OFF, // ts(2335) & ts(2377)
5
- 'getter-return': OFF, // ts(2378)
6
- 'no-const-assign': OFF, // ts(2588)
7
- 'no-dupe-args': OFF, // ts(2300)
8
- 'no-dupe-class-members': OFF, // ts(2393) & ts(2300)
9
- 'no-dupe-keys': OFF, // ts(1117)
10
- 'no-func-assign': OFF, // ts(2630)
11
- 'no-import-assign': OFF, // ts(2632) & ts(2540)
12
- 'no-new-symbol': OFF, // ts(7009)
13
- 'no-obj-calls': OFF, // ts(2349)
14
- 'no-redeclare': OFF, // ts(2451)
15
- 'no-setter-return': OFF, // ts(2408)
16
- 'no-this-before-super': OFF, // ts(2376) & ts(17009)
17
- 'no-undef': OFF, // ts(2304) & ts(2552)
18
- 'no-unreachable': OFF, // ts(7027)
19
- 'no-unsafe-negation': OFF, // ts(2365) & ts(2322) & ts(2358)
20
- 'no-var': ERROR, // ts transpiles let/const to var, so no need for vars anymore
21
- 'prefer-const': ERROR, // ts provides better types with const
22
- 'prefer-rest-params': ERROR, // ts provides better types with rest args over arguments
23
- 'prefer-spread': ERROR, // ts transpiles spread to apply, so no need for manual apply
4
+ 'constructor-super': OFF, // ts(2335) & ts(2377)
5
+ 'getter-return': OFF, // ts(2378)
6
+ 'no-const-assign': OFF, // ts(2588)
7
+ 'no-dupe-args': OFF, // ts(2300)
8
+ 'no-dupe-class-members': OFF, // ts(2393) & ts(2300)
9
+ 'no-dupe-keys': OFF, // ts(1117)
10
+ 'no-func-assign': OFF, // ts(2630)
11
+ 'no-import-assign': OFF, // ts(2632) & ts(2540)
12
+ 'no-new-symbol': OFF, // ts(7009)
13
+ 'no-obj-calls': OFF, // ts(2349)
14
+ 'no-redeclare': OFF, // ts(2451)
15
+ 'no-setter-return': OFF, // ts(2408)
16
+ 'no-this-before-super': OFF, // ts(2376) & ts(17009)
17
+ 'no-undef': OFF, // ts(2304) & ts(2552)
18
+ 'no-unreachable': OFF, // ts(7027)
19
+ 'no-unsafe-negation': OFF, // ts(2365) & ts(2322) & ts(2358)
20
+ 'no-var': ERROR, // ts transpiles let/const to var, so no need for vars anymore
21
+ 'prefer-const': ERROR, // ts provides better types with const
22
+ 'prefer-rest-params': ERROR, // ts provides better types with rest args over arguments
23
+ 'prefer-spread': ERROR, // ts transpiles spread to apply, so no need for manual apply
24
24
  };
@@ -4,49 +4,49 @@ import { suggestionRules } from '../javascript/suggestions.js';
4
4
  import { possibleProblemRules } from '../javascript/possible-problems.js';
5
5
 
6
6
  export const extensionsRules = {
7
- 'class-methods-use-this': OFF,
8
- '@typescript-eslint/class-methods-use-this': suggestionRules['class-methods-use-this'],
9
- 'default-param-last': OFF,
10
- '@typescript-eslint/default-param-last': suggestionRules['default-param-last'],
11
- 'dot-notation': OFF,
12
- '@typescript-eslint/dot-notation': suggestionRules['dot-notation'],
13
- 'init-declarations': OFF,
14
- '@typescript-eslint/init-declarations': suggestionRules['init-declarations'],
15
- 'no-array-constructor': OFF,
16
- '@typescript-eslint/no-array-constructor': suggestionRules['no-array-constructor'],
17
- 'no-empty-function': OFF,
18
- '@typescript-eslint/no-empty-function': suggestionRules['no-empty-function'],
19
- 'no-implied-eval': OFF,
20
- '@typescript-eslint/no-implied-eval': suggestionRules['no-implied-eval'],
21
- 'no-invalid-this': OFF,
22
- '@typescript-eslint/no-invalid-this': suggestionRules['no-invalid-this'],
23
- 'no-loop-func': OFF,
24
- '@typescript-eslint/no-loop-func': suggestionRules['no-loop-func'],
25
- 'no-magic-numbers': OFF,
26
- '@typescript-eslint/no-magic-numbers': suggestionRules['no-magic-numbers'],
27
- 'no-redeclare': OFF,
28
- '@typescript-eslint/no-redeclare': suggestionRules['no-redeclare'],
29
- 'no-restricted-imports': OFF,
30
- '@typescript-eslint/no-restricted-imports': suggestionRules['no-restricted-imports'],
31
- 'no-shadow': OFF,
32
- '@typescript-eslint/no-shadow': suggestionRules['no-shadow'],
33
- 'no-throw-literal': OFF,
34
- // '@typescript-eslint/no-throw-literal': suggestionRules['no-throw-literal'],
35
- 'no-unused-expressions': OFF,
36
- '@typescript-eslint/no-unused-expressions': suggestionRules['no-unused-expressions'],
37
- 'no-useless-constructor': OFF,
38
- '@typescript-eslint/no-useless-constructor': suggestionRules['no-useless-constructor'],
39
- 'require-await': OFF,
40
- '@typescript-eslint/require-await': suggestionRules['require-await'],
41
- 'no-return-await': OFF,
42
- '@typescript-eslint/return-await': suggestionRules['no-return-await'],
7
+ 'class-methods-use-this': OFF,
8
+ '@typescript-eslint/class-methods-use-this': suggestionRules['class-methods-use-this'],
9
+ 'default-param-last': OFF,
10
+ '@typescript-eslint/default-param-last': suggestionRules['default-param-last'],
11
+ 'dot-notation': OFF,
12
+ '@typescript-eslint/dot-notation': suggestionRules['dot-notation'],
13
+ 'init-declarations': OFF,
14
+ '@typescript-eslint/init-declarations': suggestionRules['init-declarations'],
15
+ 'no-array-constructor': OFF,
16
+ '@typescript-eslint/no-array-constructor': suggestionRules['no-array-constructor'],
17
+ 'no-empty-function': OFF,
18
+ '@typescript-eslint/no-empty-function': suggestionRules['no-empty-function'],
19
+ 'no-implied-eval': OFF,
20
+ '@typescript-eslint/no-implied-eval': suggestionRules['no-implied-eval'],
21
+ 'no-invalid-this': OFF,
22
+ '@typescript-eslint/no-invalid-this': suggestionRules['no-invalid-this'],
23
+ 'no-loop-func': OFF,
24
+ '@typescript-eslint/no-loop-func': suggestionRules['no-loop-func'],
25
+ 'no-magic-numbers': OFF,
26
+ '@typescript-eslint/no-magic-numbers': suggestionRules['no-magic-numbers'],
27
+ 'no-redeclare': OFF,
28
+ '@typescript-eslint/no-redeclare': suggestionRules['no-redeclare'],
29
+ 'no-restricted-imports': OFF,
30
+ '@typescript-eslint/no-restricted-imports': suggestionRules['no-restricted-imports'],
31
+ 'no-shadow': OFF,
32
+ '@typescript-eslint/no-shadow': suggestionRules['no-shadow'],
33
+ 'no-throw-literal': OFF,
34
+ // '@typescript-eslint/no-throw-literal': suggestionRules['no-throw-literal'],
35
+ 'no-unused-expressions': OFF,
36
+ '@typescript-eslint/no-unused-expressions': suggestionRules['no-unused-expressions'],
37
+ 'no-useless-constructor': OFF,
38
+ '@typescript-eslint/no-useless-constructor': suggestionRules['no-useless-constructor'],
39
+ 'require-await': OFF,
40
+ '@typescript-eslint/require-await': suggestionRules['require-await'],
41
+ 'no-return-await': OFF,
42
+ '@typescript-eslint/return-await': suggestionRules['no-return-await'],
43
43
 
44
- 'no-dupe-class-members': OFF,
45
- '@typescript-eslint/no-dupe-class-members': possibleProblemRules['no-dupe-class-members'],
46
- 'no-loss-of-precision': OFF,
47
- '@typescript-eslint/no-loss-of-precision': possibleProblemRules['no-loss-of-precision'],
48
- 'no-unused-vars': OFF,
49
- '@typescript-eslint/no-unused-vars': possibleProblemRules['no-unused-vars'],
50
- 'no-use-before-define': OFF,
51
- '@typescript-eslint/no-use-before-define': possibleProblemRules['no-use-before-define'],
44
+ 'no-dupe-class-members': OFF,
45
+ '@typescript-eslint/no-dupe-class-members': possibleProblemRules['no-dupe-class-members'],
46
+ 'no-loss-of-precision': OFF,
47
+ '@typescript-eslint/no-loss-of-precision': possibleProblemRules['no-loss-of-precision'],
48
+ 'no-unused-vars': OFF,
49
+ '@typescript-eslint/no-unused-vars': possibleProblemRules['no-unused-vars'],
50
+ 'no-use-before-define': OFF,
51
+ '@typescript-eslint/no-use-before-define': possibleProblemRules['no-use-before-define'],
52
52
  };
@@ -3,7 +3,7 @@ import { commonRules } from './common.js';
3
3
  import { extensionsRules } from './extension.js';
4
4
 
5
5
  export const tsRules = {
6
- ...compatibilityRules,
7
- ...extensionsRules,
8
- ...commonRules,
6
+ ...compatibilityRules,
7
+ ...extensionsRules,
8
+ ...commonRules,
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import { ERROR, OFF } from '../severity.js';
2
2
 
3
3
  export const baseRules = {
4
- 'vue/comment-directive': [OFF],
5
- 'vue/jsx-uses-vars': [ERROR],
4
+ 'vue/comment-directive': [OFF],
5
+ 'vue/jsx-uses-vars': [ERROR],
6
6
  };
@@ -7,52 +7,55 @@ import { suggestionRules } from '../javascript/suggestions.js';
7
7
  import { jsFormatting } from '../stylistic/index.js';
8
8
 
9
9
  export const extensionRules = {
10
- 'vue/no-constant-condition': possibleProblemRules['no-constant-condition'],
11
- 'vue/no-empty-pattern': possibleProblemRules['no-empty-pattern'],
12
- 'vue/no-irregular-whitespace': possibleProblemRules['no-irregular-whitespace'],
13
- 'vue/no-loss-of-precision': possibleProblemRules['no-loss-of-precision'],
14
- 'vue/no-sparse-arrays': possibleProblemRules['no-sparse-arrays'],
10
+ 'vue/no-constant-condition': possibleProblemRules['no-constant-condition'],
11
+ 'vue/no-empty-pattern': possibleProblemRules['no-empty-pattern'],
12
+ 'vue/no-irregular-whitespace': possibleProblemRules['no-irregular-whitespace'],
13
+ 'vue/no-loss-of-precision': possibleProblemRules['no-loss-of-precision'],
14
+ 'vue/no-sparse-arrays': possibleProblemRules['no-sparse-arrays'],
15
15
 
16
- 'vue/camelcase': suggestionRules.camelcase,
17
- 'vue/dot-notation': suggestionRules['dot-notation'],
18
- 'vue/eqeqeq': suggestionRules.eqeqeq,
19
- 'vue/no-console': suggestionRules['no-console'],
20
- 'vue/no-restricted-syntax': suggestionRules['no-restricted-syntax'],
21
- 'vue/no-useless-concat': suggestionRules['no-useless-concat'],
22
- 'vue/object-shorthand': suggestionRules['object-shorthand'],
23
- 'vue/prefer-template': suggestionRules['prefer-template'],
16
+ 'vue/camelcase': suggestionRules.camelcase,
17
+ 'vue/dot-notation': suggestionRules['dot-notation'],
18
+ 'vue/eqeqeq': suggestionRules.eqeqeq,
19
+ 'vue/no-console': suggestionRules['no-console'],
20
+ 'vue/no-restricted-syntax': suggestionRules['no-restricted-syntax'],
21
+ 'vue/no-useless-concat': suggestionRules['no-useless-concat'],
22
+ 'vue/object-shorthand': suggestionRules['object-shorthand'],
23
+ 'vue/prefer-template': suggestionRules['prefer-template'],
24
24
 
25
- 'vue/array-bracket-newline': jsFormatting['@stylistic/array-bracket-newline'],
26
- 'vue/array-bracket-spacing': jsFormatting['@stylistic/array-bracket-spacing'],
27
- 'vue/array-element-newline': jsFormatting['@stylistic/array-element-newline'],
28
- 'vue/arrow-spacing': jsFormatting['@stylistic/arrow-spacing'],
29
- 'vue/block-spacing': jsFormatting['@stylistic/block-spacing'],
30
- 'vue/brace-style': jsFormatting['@stylistic/brace-style'],
31
- 'vue/comma-dangle': jsFormatting['@stylistic/comma-dangle'],
32
- 'vue/comma-spacing': jsFormatting['@stylistic/comma-spacing'],
33
- 'vue/comma-style': jsFormatting['@stylistic/comma-style'],
34
- 'vue/dot-location': jsFormatting['@stylistic/dot-location'],
35
- 'vue/func-call-spacing': jsFormatting['@stylistic/function-call-spacing'],
36
- 'vue/key-spacing': jsFormatting['@stylistic/key-spacing'],
37
- 'vue/keyword-spacing': jsFormatting['@stylistic/keyword-spacing'],
38
- 'vue/multiline-ternary': jsFormatting['@stylistic/multiline-ternary'],
39
- 'vue/no-extra-parens': jsFormatting['@stylistic/no-extra-parens'],
40
- 'vue/object-curly-newline': jsFormatting['@stylistic/object-curly-newline'],
41
- 'vue/object-curly-spacing': jsFormatting['@stylistic/object-curly-spacing'],
42
- 'vue/object-property-newline': jsFormatting['@stylistic/object-property-newline'],
43
- 'vue/operator-linebreak': jsFormatting['@stylistic/operator-linebreak'],
44
- 'vue/quote-props': jsFormatting['@stylistic/quote-props'],
45
- 'vue/space-in-parens': jsFormatting['@stylistic/space-in-parens'],
46
- 'vue/space-infix-ops': jsFormatting['@stylistic/space-infix-ops'],
47
- 'vue/space-unary-ops': jsFormatting['@stylistic/space-unary-ops'],
48
- 'vue/template-curly-spacing': jsFormatting['@stylistic/template-curly-spacing'],
25
+ 'vue/array-bracket-newline': jsFormatting['@stylistic/array-bracket-newline'],
26
+ 'vue/array-bracket-spacing': jsFormatting['@stylistic/array-bracket-spacing'],
27
+ 'vue/array-element-newline': jsFormatting['@stylistic/array-element-newline'],
28
+ 'vue/arrow-spacing': jsFormatting['@stylistic/arrow-spacing'],
29
+ 'vue/block-spacing': jsFormatting['@stylistic/block-spacing'],
30
+ 'vue/brace-style': jsFormatting['@stylistic/brace-style'],
31
+ 'vue/comma-dangle': jsFormatting['@stylistic/comma-dangle'],
32
+ 'vue/comma-spacing': jsFormatting['@stylistic/comma-spacing'],
33
+ 'vue/comma-style': jsFormatting['@stylistic/comma-style'],
34
+ 'vue/dot-location': jsFormatting['@stylistic/dot-location'],
35
+ 'vue/func-call-spacing': jsFormatting['@stylistic/function-call-spacing'],
36
+ 'vue/key-spacing': jsFormatting['@stylistic/key-spacing'],
37
+ 'vue/keyword-spacing': jsFormatting['@stylistic/keyword-spacing'],
38
+ 'vue/multiline-ternary': jsFormatting['@stylistic/multiline-ternary'],
39
+ 'vue/no-extra-parens': jsFormatting['@stylistic/no-extra-parens'],
40
+ 'vue/object-curly-newline': jsFormatting['@stylistic/object-curly-newline'],
41
+ 'vue/object-curly-spacing': jsFormatting['@stylistic/object-curly-spacing'],
42
+ 'vue/object-property-newline': jsFormatting['@stylistic/object-property-newline'],
43
+ 'vue/operator-linebreak': jsFormatting['@stylistic/operator-linebreak'],
44
+ 'vue/quote-props': jsFormatting['@stylistic/quote-props'],
45
+ 'vue/space-in-parens': jsFormatting['@stylistic/space-in-parens'],
46
+ 'vue/space-infix-ops': jsFormatting['@stylistic/space-infix-ops'],
47
+ 'vue/space-unary-ops': jsFormatting['@stylistic/space-unary-ops'],
48
+ 'vue/template-curly-spacing': jsFormatting['@stylistic/template-curly-spacing'],
49
49
 
50
- '@stylistic/max-len': [OFF],
51
- 'max-len': [OFF],
52
- 'vue/max-len': [ERROR, {
53
- ...MAX_LEN,
50
+ '@stylistic/max-len': [OFF],
51
+ 'max-len': [OFF],
52
+ 'vue/max-len': [
53
+ ERROR,
54
+ {
55
+ ...MAX_LEN,
54
56
 
55
- ignoreHTMLAttributeValues: true,
56
- ignoreHTMLTextContents: true,
57
- }],
57
+ ignoreHTMLAttributeValues: true,
58
+ ignoreHTMLTextContents: true,
59
+ },
60
+ ],
58
61
  };