@alexlit/config-eslint 90.0.0 → 91.0.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 (67) hide show
  1. package/README.md +14 -29
  2. package/index.js +44 -8
  3. package/package.json +11 -53
  4. package/constants/allow-boolean-property-list.js +0 -38
  5. package/constants/boolean-prefixes.js +0 -11
  6. package/constants/english-verbs.js +0 -3368
  7. package/dictionaries/index.js +0 -467
  8. package/dictionaries/programming/bash.js +0 -25
  9. package/dictionaries/programming/django.js +0 -2345
  10. package/dictionaries/programming/elixir.js +0 -64
  11. package/dictionaries/programming/go.js +0 -7748
  12. package/dictionaries/programming/java.js +0 -33527
  13. package/dictionaries/programming/latex.js +0 -675
  14. package/dictionaries/programming/lua.js +0 -394
  15. package/dictionaries/programming/php.js +0 -9788
  16. package/dictionaries/programming/python.js +0 -367
  17. package/dictionaries/programming/ruby.js +0 -357
  18. package/dictionaries/programming/rust.js +0 -115
  19. package/dictionaries/programming/scala.js +0 -2755
  20. package/dictionaries/specialized/html-symbol-entities.js +0 -1118
  21. package/dictionaries/specialized/lorem-ipsum.js +0 -359
  22. package/legacy.js +0 -3
  23. package/plugins/array-func.js +0 -20
  24. package/plugins/compat.js +0 -7
  25. package/plugins/decorator-position.js +0 -15
  26. package/plugins/eslint-comments.js +0 -9
  27. package/plugins/etc.js +0 -13
  28. package/plugins/ext.js +0 -12
  29. package/plugins/filenames.js +0 -38
  30. package/plugins/import.js +0 -133
  31. package/plugins/jsdoc.js +0 -32
  32. package/plugins/jsx-a11y.js +0 -5
  33. package/plugins/lit-a11y.js +0 -5
  34. package/plugins/lit.js +0 -9
  35. package/plugins/more.js +0 -17
  36. package/plugins/no-await-in-promise.js +0 -5
  37. package/plugins/no-constructor-bind.js +0 -8
  38. package/plugins/no-explicit-type-exports.js +0 -7
  39. package/plugins/no-loops.js +0 -7
  40. package/plugins/no-secrets.js +0 -12
  41. package/plugins/no-use-extend-native.js +0 -5
  42. package/plugins/node.js +0 -5
  43. package/plugins/prettier.js +0 -24
  44. package/plugins/promise.js +0 -10
  45. package/plugins/regexp.js +0 -7
  46. package/plugins/security.js +0 -10
  47. package/plugins/simple-import-sort.js +0 -7
  48. package/plugins/sonar.js +0 -5
  49. package/plugins/sort-class-members.js +0 -298
  50. package/plugins/sort-destructure-keys.js +0 -10
  51. package/plugins/sort-keys-fix.js +0 -7
  52. package/plugins/spellcheck.js +0 -9
  53. package/plugins/sql.js +0 -26
  54. package/plugins/tanstack-query.js +0 -4
  55. package/plugins/testing-library.js +0 -9
  56. package/plugins/typescript-sort-keys.js +0 -5
  57. package/plugins/typescript.js +0 -157
  58. package/plugins/unicorn.js +0 -70
  59. package/plugins/unused-imports.js +0 -17
  60. package/plugins/vitest.js +0 -16
  61. package/plugins/vue-i18n.js +0 -34
  62. package/plugins/vue.js +0 -291
  63. package/plugins/vuejs-accessibility.js +0 -20
  64. package/plugins/wc.js +0 -5
  65. package/plugins/write-good-comments.js +0 -7
  66. package/utils/create-config.js +0 -377
  67. package/utils/extend-spell-checker.js +0 -23
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-constructor-bind'],
3
-
4
- rules: {
5
- 'no-constructor-bind/no-constructor-bind': 'error',
6
- 'no-constructor-bind/no-constructor-state': 'error',
7
- },
8
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['eslint-plugin-no-explicit-type-exports'],
3
-
4
- rules: {
5
- 'no-explicit-type-exports/no-explicit-type-exports': 'error',
6
- },
7
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-loops'],
3
-
4
- rules: {
5
- 'no-loops/no-loops': 'warn',
6
- },
7
- };
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-secrets'],
3
-
4
- rules: {
5
- 'no-secrets/no-secrets': [
6
- 'error',
7
- {
8
- ignoreContent: ['<', '://', '@example', 'META', 'I18N'],
9
- },
10
- ],
11
- },
12
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:no-use-extend-native/recommended'],
3
-
4
- plugins: ['no-use-extend-native'],
5
- };
package/plugins/node.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:node/recommended'],
3
-
4
- plugins: ['node'],
5
- };
@@ -1,24 +0,0 @@
1
- module.exports = {
2
- extends: ['prettier'],
3
-
4
- // plugins: ['prettier'],
5
-
6
- rules: {
7
- // 'prettier/prettier': 'error',
8
-
9
- /** Fix for prettier/vue */
10
- 'vue/html-self-closing': [
11
- 'error',
12
- {
13
- html: {
14
- component: 'always',
15
- normal: 'never',
16
- void: 'always',
17
- },
18
-
19
- math: 'always',
20
- svg: 'always',
21
- },
22
- ],
23
- },
24
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:promise/recommended'],
3
-
4
- plugins: ['promise'],
5
-
6
- rules: {
7
- 'promise/catch-or-return': ['warn', { allowFinally: true }],
8
- 'promise/no-promise-in-callback': 'off',
9
- },
10
- };
package/plugins/regexp.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:regexp/recommended'],
3
-
4
- plugins: ['regexp'],
5
-
6
- rules: {},
7
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:security/recommended-legacy'],
3
-
4
- plugins: ['security'],
5
-
6
- rules: {
7
- 'security/detect-object-injection': 'off',
8
- 'security/detect-unsafe-regex': 'off',
9
- },
10
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['simple-import-sort'],
3
-
4
- rules: {
5
- 'simple-import-sort/exports': 'error',
6
- },
7
- };
package/plugins/sonar.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:sonarjs/recommended-legacy'],
3
-
4
- plugins: ['sonarjs'],
5
- };
@@ -1,298 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-class-members'],
3
-
4
- rules: {
5
- 'sort-class-members/sort-class-members': [
6
- 'error',
7
- {
8
- accessorPairPositioning: 'getThenSet',
9
-
10
- groups: {
11
- 'async-conventional-private-methods': [
12
- {
13
- async: true,
14
- name: '/_.+/',
15
- sort: 'alphabetical',
16
- type: 'method',
17
- },
18
- ],
19
-
20
- emits: [
21
- {
22
- name: '/emit[A-Z].*/',
23
- sort: 'alphabetical',
24
- type: 'method',
25
- },
26
- ],
27
-
28
- injects: [
29
- {
30
- groupByDecorator: 'Inject',
31
- sort: 'alphabetical',
32
- type: 'property',
33
- },
34
- {
35
- groupByDecorator: 'InjectReactive',
36
- sort: 'alphabetical',
37
- type: 'property',
38
- },
39
- ],
40
-
41
- models: [
42
- {
43
- groupByDecorator: 'Model',
44
- sort: 'alphabetical',
45
- type: 'property',
46
- },
47
- {
48
- groupByDecorator: 'ModelSync',
49
- sort: 'alphabetical',
50
- type: 'property',
51
- },
52
- {
53
- groupByDecorator: 'VModel',
54
- sort: 'alphabetical',
55
- type: 'property',
56
- },
57
- ],
58
-
59
- props: [
60
- {
61
- groupByDecorator: 'Prop',
62
- sort: 'alphabetical',
63
- type: 'property',
64
- },
65
- {
66
- groupByDecorator: 'PropSync',
67
- sort: 'alphabetical',
68
- type: 'property',
69
- },
70
- ],
71
-
72
- provides: [
73
- {
74
- groupByDecorator: 'Provide',
75
- sort: 'alphabetical',
76
- type: 'property',
77
- },
78
- {
79
- groupByDecorator: 'ProvideReactive',
80
- sort: 'alphabetical',
81
- type: 'property',
82
- },
83
- ],
84
-
85
- refs: [
86
- {
87
- groupByDecorator: 'Ref',
88
- sort: 'alphabetical',
89
- type: 'property',
90
- },
91
- ],
92
-
93
- 'sorted-methods': [
94
- {
95
- sort: 'alphabetical',
96
- type: 'method',
97
- },
98
- ],
99
-
100
- 'sorted-properties': [
101
- {
102
- sort: 'alphabetical',
103
- type: 'property',
104
- },
105
- ],
106
-
107
- 'static-accessor-pairs': [
108
- {
109
- accessorPair: true,
110
- sort: 'alphabetical',
111
- static: true,
112
- },
113
- ],
114
-
115
- 'static-arrow-function-properties': [
116
- {
117
- propertyType: 'ArrowFunctionExpression',
118
- sort: 'alphabetical',
119
- static: true,
120
- },
121
- ],
122
-
123
- 'static-async-conventional-private-methods': [
124
- {
125
- async: true,
126
- name: '/_.+/',
127
- sort: 'alphabetical',
128
- static: true,
129
- type: 'method',
130
- },
131
- ],
132
-
133
- 'static-async-methods': [
134
- {
135
- async: true,
136
- sort: 'alphabetical',
137
- static: true,
138
- type: 'method',
139
- },
140
- ],
141
-
142
- 'static-conventional-private-methods': [
143
- {
144
- name: '/_.+/',
145
- sort: 'alphabetical',
146
- static: true,
147
- type: 'method',
148
- },
149
- ],
150
-
151
- 'static-conventional-private-properties': [
152
- {
153
- name: '/_.+/',
154
- sort: 'alphabetical',
155
- static: true,
156
- type: 'property',
157
- },
158
- ],
159
-
160
- 'static-getters': [
161
- {
162
- kind: 'get',
163
- sort: 'alphabetical',
164
- static: true,
165
- },
166
- ],
167
-
168
- 'static-setters': [
169
- {
170
- kind: 'set',
171
- sort: 'alphabetical',
172
- static: true,
173
- },
174
- ],
175
-
176
- 'vue-activated': [{ name: 'activated', type: 'method' }],
177
-
178
- 'vue-before-create': [{ name: 'beforeCreate', type: 'method' }],
179
-
180
- 'vue-before-mount': [{ name: 'beforeMount', type: 'method' }],
181
-
182
- 'vue-before-unmount': [{ name: 'beforeUnmount', type: 'method' }],
183
-
184
- 'vue-before-update': [{ name: 'beforeUpdate', type: 'method' }],
185
-
186
- 'vue-created': [{ name: 'created', type: 'method' }],
187
-
188
- 'vue-deactivated': [{ name: 'deactivated', type: 'method' }],
189
-
190
- 'vue-error-captured': [{ name: 'errorCaptured', type: 'method' }],
191
-
192
- 'vue-mounted': [{ name: 'mounted', type: 'method' }],
193
-
194
- 'vue-render-tracked': [{ name: 'renderTracked', type: 'method' }],
195
-
196
- 'vue-render-triggered': [{ name: 'renderTriggered', type: 'method' }],
197
-
198
- 'vue-unmounted': [{ name: 'unmounted', type: 'method' }],
199
-
200
- 'vue-updated': [{ name: 'updated', type: 'method' }],
201
-
202
- vuex: [
203
- {
204
- groupByDecorator: 'namespace',
205
- sort: 'alphabetical',
206
- type: 'property',
207
- },
208
- {
209
- groupByDecorator: 'State',
210
- sort: 'alphabetical',
211
- type: 'property',
212
- },
213
- {
214
- groupByDecorator: 'Getter',
215
- sort: 'alphabetical',
216
- type: 'property',
217
- },
218
- {
219
- groupByDecorator: 'Mutation',
220
- sort: 'alphabetical',
221
- type: 'property',
222
- },
223
- {
224
- groupByDecorator: 'Action',
225
- sort: 'alphabetical',
226
- type: 'property',
227
- },
228
- {
229
- groupByDecorator: '(namespace',
230
- sort: 'alphabetical',
231
- type: 'property',
232
- },
233
- ],
234
- },
235
-
236
- order: [
237
- // static
238
- '[static-properties]',
239
- '[static-arrow-function-properties]',
240
- '[static-accessor-pairs]',
241
- '[static-getters]',
242
- '[static-setters]',
243
- '[static-methods]',
244
- '[static-async-methods]',
245
-
246
- // decorated properties
247
- '[vuex]',
248
- '[injects]',
249
- '[props]',
250
- '[models]',
251
- '[provides]',
252
- '[emits]',
253
- '[refs]',
254
-
255
- // properties
256
- '[sorted-properties]',
257
- '[arrow-function-properties]',
258
-
259
- // constructor
260
- 'constructor',
261
-
262
- // accessor
263
- '[accessor-pairs]',
264
- '[getters]',
265
- '[setters]',
266
-
267
- // vue lifecycle hooks
268
- '[vue-before-create]',
269
- '[vue-created]',
270
- '[vue-before-mount]',
271
- '[vue-mounted]',
272
- '[vue-before-update]',
273
- '[vue-updated]',
274
- '[vue-before-unmount]',
275
- '[vue-unmounted]',
276
- '[vue-error-captured]',
277
- '[vue-render-tracked]',
278
- '[vue-render-triggered]',
279
- '[vue-activated]',
280
-
281
- // methods
282
- '[sorted-methods]',
283
- '[async-methods]',
284
-
285
- // private static
286
- '[static-conventional-private-properties]',
287
- '[static-conventional-private-methods]',
288
- '[static-async-conventional-private-methods]',
289
-
290
- // private
291
- '[conventional-private-properties]',
292
- '[conventional-private-methods]',
293
- '[async-conventional-private-methods]',
294
- ],
295
- },
296
- ],
297
- },
298
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-destructure-keys'],
3
-
4
- rules: {
5
- 'sort-destructure-keys/sort-destructure-keys': [
6
- 'warn',
7
- { caseSensitive: true },
8
- ],
9
- },
10
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-keys-fix'],
3
-
4
- rules: {
5
- 'sort-keys-fix/sort-keys-fix': 'warn',
6
- },
7
- };
@@ -1,9 +0,0 @@
1
- const { extendSpellChecker } = require('../utils/extend-spell-checker');
2
-
3
- module.exports = {
4
- plugins: ['spellcheck'],
5
-
6
- rules: {
7
- 'spellcheck/spell-checker': extendSpellChecker(),
8
- },
9
- };
package/plugins/sql.js DELETED
@@ -1,26 +0,0 @@
1
- module.exports = {
2
- plugins: ['sql'],
3
-
4
- rules: {
5
- 'sql/format': [
6
- 'warn',
7
-
8
- {
9
- ignoreExpressions: false,
10
- ignoreInline: false,
11
- ignoreStartWithNewLine: true,
12
- ignoreTagless: false,
13
- },
14
-
15
- { spaces: 2 },
16
- ],
17
-
18
- 'sql/no-unsafe-query': [
19
- 'warn',
20
-
21
- {
22
- allowLiteral: false,
23
- },
24
- ],
25
- },
26
- };
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:@tanstack/eslint-plugin-query/recommended'],
3
- plugins: ['@tanstack/query'],
4
- };
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- extends: ['plugin:testing-library/vue'],
5
- files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'],
6
- plugins: ['testing-library'],
7
- },
8
- ],
9
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:typescript-sort-keys/recommended'],
3
-
4
- plugins: ['typescript-sort-keys'],
5
- };
@@ -1,157 +0,0 @@
1
- /* eslint-disable unicorn/no-null */
2
-
3
- // const ALLOW_BOOLEAN_PROPERTY_LIST = require('../constants/allow-boolean-property-list');
4
- // const BOOLEAN_PREFIXES = require('../constants/boolean-prefixes');
5
- // const ENGLISH_VERBS = require('../constants/english-verbs');
6
-
7
- module.exports = {
8
- extends: ['plugin:@typescript-eslint/recommended'],
9
-
10
- overrides: [
11
- {
12
- files: ['*.d.ts', '.*'],
13
-
14
- rules: {
15
- '@typescript-eslint/naming-convention': 'off',
16
- },
17
- },
18
- {
19
- files: ['**/store/**/*', '**/vuex/**/*', '**/pinia/**/*'],
20
-
21
- rules: {
22
- '@typescript-eslint/no-shadow': 'off',
23
- },
24
- },
25
- ],
26
-
27
- plugins: ['@typescript-eslint'],
28
-
29
- rules: {
30
- '@typescript-eslint/array-type': ['error', { default: 'array' }],
31
-
32
- '@typescript-eslint/consistent-type-assertions': [
33
- 'error',
34
- {
35
- assertionStyle: 'as',
36
- objectLiteralTypeAssertions: 'allow-as-parameter',
37
- },
38
- ],
39
-
40
- '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
41
-
42
- '@typescript-eslint/consistent-type-imports': [
43
- 'error',
44
- { prefer: 'type-imports' },
45
- ],
46
-
47
- '@typescript-eslint/explicit-module-boundary-types': 'off',
48
-
49
- '@typescript-eslint/indent': 'off',
50
-
51
- '@typescript-eslint/member-ordering': 'off', // delegate to sort-class-members plugin
52
-
53
- '@typescript-eslint/method-signature-style': ['error', 'method'],
54
-
55
- '@typescript-eslint/naming-convention': 'off', // slow
56
-
57
- // '@typescript-eslint/naming-convention': [
58
- // 'error',
59
- // {
60
- // format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
61
- // selector: 'default',
62
- // },
63
- // {
64
- // format: ['camelCase'],
65
- // selector: 'variable',
66
- // },
67
- // {
68
- // format: ['camelCase'],
69
- // leadingUnderscore: 'allow',
70
- // selector: 'parameter',
71
- // },
72
- // {
73
- // format: ['camelCase'],
74
- // leadingUnderscore: 'require',
75
- // modifiers: ['private'],
76
- // selector: 'memberLike',
77
- // },
78
- // {
79
- // format: ['PascalCase'],
80
- // selector: ['typeLike'],
81
- // },
82
- // {
83
- // format: ['UPPER_CASE'],
84
- // selector: ['enumMember'],
85
- // },
86
- // {
87
- // custom: {
88
- // match: false,
89
- // regex: '^I[A-Z]',
90
- // },
91
-
92
- // format: ['PascalCase'],
93
- // selector: 'interface',
94
- // },
95
- // {
96
- // format: null,
97
- // leadingUnderscore: 'allow',
98
- // selector: 'objectLiteralProperty',
99
- // },
100
- // {
101
- // format: null,
102
- // selector: 'objectLiteralMethod',
103
- // },
104
- // {
105
- // format: null,
106
- // modifiers: ['destructured'],
107
- // selector: 'parameter',
108
- // },
109
- // {
110
- // format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
111
- // modifiers: ['const'],
112
- // selector: 'variable',
113
- // },
114
- // {
115
- // filter: {
116
- // match: false,
117
- // regex: `(${ALLOW_BOOLEAN_PROPERTY_LIST.join('|')})`,
118
- // },
119
-
120
- // format: ['PascalCase'],
121
-
122
- // leadingUnderscore: 'allow',
123
-
124
- // prefix: BOOLEAN_PREFIXES,
125
-
126
- // selector: ['accessor', 'parameter', 'variable'],
127
-
128
- // types: ['boolean'],
129
- // },
130
- // {
131
- // format: ['PascalCase'],
132
-
133
- // leadingUnderscore: 'allow',
134
-
135
- // prefix: [...ENGLISH_VERBS, 'on'],
136
-
137
- // selector: ['classMethod', 'function'],
138
- // },
139
- // ],
140
-
141
- '@typescript-eslint/no-explicit-any': 'off',
142
-
143
- '@typescript-eslint/no-inferrable-types': [
144
- 'error',
145
- {
146
- ignoreParameters: true,
147
- },
148
- ],
149
-
150
- '@typescript-eslint/no-shadow': ['error'],
151
- '@typescript-eslint/no-unused-vars': 'off', // delegate to eslint-plugin-unused-imports
152
- '@typescript-eslint/no-use-before-define': ['warn'],
153
- '@typescript-eslint/no-var-requires': 'off',
154
- '@typescript-eslint/sort-type-constituents': ['error'],
155
- '@typescript-eslint/unified-signatures': ['error'],
156
- },
157
- };