@cherepanov.pavel/shareable-config 1.0.13 → 1.0.14

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 (47) hide show
  1. package/.editorconfig-get.js +6 -6
  2. package/.get-all.js +12 -12
  3. package/.gitattributes-get.js +6 -6
  4. package/.gitignore-get.js +12 -12
  5. package/.vscode/.code-snippets-get.js +14 -14
  6. package/.vscode/extensions.json-get.js +12 -12
  7. package/.vscode/settings.json-get.js +12 -12
  8. package/env.json5.set.js +2 -2
  9. package/package.json +1 -1
  10. package/tools/eslint-config/configs/global.js +9 -9
  11. package/tools/eslint-config/configs/javascript.js +7 -7
  12. package/tools/eslint-config/configs/json.js +57 -57
  13. package/tools/eslint-config/configs/typescript.js +9 -9
  14. package/tools/eslint-config/configs/vue.js +16 -16
  15. package/tools/eslint-config/index.js +5 -5
  16. package/tools/eslint-config/rules/constants.js +1 -1
  17. package/tools/eslint-config/rules/javascript/index.js +2 -2
  18. package/tools/eslint-config/rules/javascript/possible-problems.js +60 -60
  19. package/tools/eslint-config/rules/javascript/suggestions.js +206 -207
  20. package/tools/eslint-config/rules/severity.js +3 -3
  21. package/tools/eslint-config/rules/stylistic/index.js +2 -2
  22. package/tools/eslint-config/rules/stylistic/jsFormatting.js +113 -114
  23. package/tools/eslint-config/rules/stylistic/tsFormatting.js +5 -5
  24. package/tools/eslint-config/rules/typescript/common.js +103 -103
  25. package/tools/eslint-config/rules/typescript/compatibility.js +21 -21
  26. package/tools/eslint-config/rules/typescript/extension.js +46 -46
  27. package/tools/eslint-config/rules/typescript/index.js +3 -3
  28. package/tools/eslint-config/rules/vue/base.js +3 -3
  29. package/tools/eslint-config/rules/vue/extension.js +46 -45
  30. package/tools/eslint-config/rules/vue/formatting.js +33 -37
  31. package/tools/eslint-config/rules/vue/index.js +5 -5
  32. package/tools/eslint-config/rules/vue/possibleProblems.js +123 -123
  33. package/tools/eslint-config/rules/vue/suggestions.js +76 -76
  34. package/tools/stylelint-config/config.js +11 -11
  35. package/tools/stylelint-config/rules/base.js +19 -19
  36. package/tools/stylelint-config/rules/conflicts.js +2 -2
  37. package/tools/stylelint-config/rules/order.js +19 -19
  38. package/tools/stylelint-config/rules/property-groups.js +337 -337
  39. package/tools/stylelint-config/rules/scss.js +4 -4
  40. package/tools/stylelint-config/rules/stylistic.js +82 -82
  41. package/utils/communication.js +3 -3
  42. package/utils/copy-with-override.js +9 -9
  43. package/utils/env.js +6 -6
  44. package/utils/file-header.js +8 -8
  45. package/utils/file.js +12 -12
  46. package/utils/lint.js +2 -2
  47. package/utils/merge.js +11 -11
@@ -1,139 +1,139 @@
1
- import { ERROR, OFF, WARN } from '../severity.js';
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,
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
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,
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
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': [
21
+ "@typescript-eslint/member-ordering": ERROR,
22
+ "@typescript-eslint/method-signature-style": ERROR,
23
+ "@typescript-eslint/naming-convention": [
24
24
  ERROR,
25
25
  {
26
- selector: 'default',
26
+ selector: "default",
27
27
  // UPPER_CASE for, like example, consts from env files
28
28
  format: [
29
- 'camelCase',
30
- 'UPPER_CASE',
29
+ "camelCase",
30
+ "UPPER_CASE",
31
31
  ],
32
- leadingUnderscore: 'forbid',
33
- trailingUnderscore: 'forbid',
32
+ leadingUnderscore: "forbid",
33
+ trailingUnderscore: "forbid",
34
34
  },
35
35
  {
36
- selector: 'import',
36
+ selector: "import",
37
37
  // PascalCase for components import
38
38
  format: [
39
- 'camelCase',
40
- 'PascalCase',
39
+ "camelCase",
40
+ "PascalCase",
41
41
  ],
42
42
  },
43
43
  {
44
- selector: 'variable',
44
+ selector: "variable",
45
45
  // UPPER_CASE for, like example, consts from env files
46
46
  format: [
47
- 'camelCase',
48
- 'UPPER_CASE',
47
+ "camelCase",
48
+ "UPPER_CASE",
49
49
  ],
50
50
  },
51
51
  {
52
- selector: 'typeLike',
53
- format: ['PascalCase'],
52
+ selector: "typeLike",
53
+ format: ["PascalCase"],
54
54
  },
55
55
  {
56
- selector: 'objectLiteralProperty',
56
+ selector: "objectLiteralProperty",
57
57
  // because of BE inconsistency
58
58
  format: null,
59
59
  },
60
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': [
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
79
  ERROR,
80
80
  {
81
81
  checksVoidReturn: false,
82
82
  },
83
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,
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
116
  // maybe we will enable it later, after ending discuss in ts-eslint repo
117
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,
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
135
  // '@typescript-eslint/type-annotation-spacing': ERROR,
136
- '@typescript-eslint/typedef': ERROR,
137
- '@typescript-eslint/unbound-method': ERROR,
138
- '@typescript-eslint/unified-signatures': ERROR,
136
+ "@typescript-eslint/typedef": ERROR,
137
+ "@typescript-eslint/unbound-method": ERROR,
138
+ "@typescript-eslint/unified-signatures": ERROR,
139
139
  };
@@ -1,24 +1,24 @@
1
- import { ERROR, OFF } from '../severity.js';
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
  };
@@ -1,52 +1,52 @@
1
- import { OFF } from '../severity.js';
1
+ import { OFF } from "../severity.js";
2
2
 
3
- import { suggestionRules } from '../javascript/suggestions.js';
4
- import { possibleProblemRules } from '../javascript/possible-problems.js';
3
+ import { suggestionRules } from "../javascript/suggestions.js";
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,
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
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'],
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
  };
@@ -1,6 +1,6 @@
1
- import { compatibilityRules } from './compatibility.js';
2
- import { commonRules } from './common.js';
3
- import { extensionsRules } from './extension.js';
1
+ import { compatibilityRules } from "./compatibility.js";
2
+ import { commonRules } from "./common.js";
3
+ import { extensionsRules } from "./extension.js";
4
4
 
5
5
  export const tsRules = {
6
6
  ...compatibilityRules,
@@ -1,6 +1,6 @@
1
- import { ERROR, OFF } from '../severity.js';
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
  };
@@ -1,55 +1,56 @@
1
- import { ERROR, OFF } from '../severity.js';
2
- import { MAX_LEN } from '../constants.js';
1
+ import { ERROR, OFF } from "../severity.js";
2
+ import { MAX_LEN } from "../constants.js";
3
3
 
4
- import { possibleProblemRules } from '../javascript/possible-problems.js';
5
- import { suggestionRules } from '../javascript/suggestions.js';
4
+ import { possibleProblemRules } from "../javascript/possible-problems.js";
5
+ import { suggestionRules } from "../javascript/suggestions.js";
6
6
 
7
- import { jsFormatting } from '../stylistic/index.js';
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/html-quotes": jsFormatting["@stylistic/quotes"],
46
+ "vue/space-in-parens": jsFormatting["@stylistic/space-in-parens"],
47
+ "vue/space-infix-ops": jsFormatting["@stylistic/space-infix-ops"],
48
+ "vue/space-unary-ops": jsFormatting["@stylistic/space-unary-ops"],
49
+ "vue/template-curly-spacing": jsFormatting["@stylistic/template-curly-spacing"],
49
50
 
50
- '@stylistic/max-len': [OFF],
51
- 'max-len': [OFF],
52
- 'vue/max-len': [
51
+ "@stylistic/max-len": [OFF],
52
+ "max-len": [OFF],
53
+ "vue/max-len": [
53
54
  ERROR,
54
55
  {
55
56
  ...MAX_LEN,