@repodog/eslint-config 9.0.28 → 9.0.30
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/index.mjs +11 -40
- package/package.json +10 -11
package/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ import eslintPrettier from 'eslint-config-prettier/flat';
|
|
|
5
5
|
import eslintComments from 'eslint-plugin-eslint-comments';
|
|
6
6
|
import { importX } from 'eslint-plugin-import-x';
|
|
7
7
|
import preferArrow from 'eslint-plugin-prefer-arrow';
|
|
8
|
-
import sortClassMembers from 'eslint-plugin-sort-class-members';
|
|
9
8
|
import sortDestructureKeys from 'eslint-plugin-sort-destructure-keys';
|
|
10
9
|
import sortKeysFix from 'eslint-plugin-sort-keys-fix';
|
|
11
10
|
import typescriptSortKeys from 'eslint-plugin-typescript-sort-keys';
|
|
@@ -56,8 +55,7 @@ export default tsEslint.config(
|
|
|
56
55
|
'@stylistic': stylistic,
|
|
57
56
|
'eslint-comments': fixupPluginRules(eslintComments),
|
|
58
57
|
'prefer-arrow': fixupPluginRules(preferArrow),
|
|
59
|
-
'sort-
|
|
60
|
-
'sort-destructure-keys': fixupPluginRules(sortDestructureKeys),
|
|
58
|
+
'sort-destructure-keys': sortDestructureKeys,
|
|
61
59
|
'sort-keys-fix': fixupPluginRules(sortKeysFix),
|
|
62
60
|
},
|
|
63
61
|
rules: {
|
|
@@ -158,43 +156,6 @@ export default tsEslint.config(
|
|
|
158
156
|
singleReturnOnly: false,
|
|
159
157
|
},
|
|
160
158
|
],
|
|
161
|
-
'sort-class-members/sort-class-members': [
|
|
162
|
-
2,
|
|
163
|
-
{
|
|
164
|
-
accessorPairPositioning: 'getThenSet',
|
|
165
|
-
groups: {
|
|
166
|
-
'arrow-function-properties': [
|
|
167
|
-
{ propertyType: 'ArrowFunctionExpression', sort: 'alphabetical', type: 'property' },
|
|
168
|
-
],
|
|
169
|
-
methods: [{ sort: 'alphabetical', type: 'method' }],
|
|
170
|
-
'private-arrow-function-properties': [
|
|
171
|
-
{ name: '/_.+/', propertyType: 'ArrowFunctionExpression', type: 'property' },
|
|
172
|
-
],
|
|
173
|
-
'private-methods': [{ name: '/_.+/', sort: 'alphabetical', type: 'method' }],
|
|
174
|
-
'private-properties': [{ name: '/_.+/', sort: 'alphabetical', type: 'property' }],
|
|
175
|
-
properties: [{ sort: 'alphabetical', type: 'property' }],
|
|
176
|
-
'static-methods': [{ sort: 'alphabetical', static: true, type: 'method' }],
|
|
177
|
-
'static-private-methods': [{ name: '/_.+/', sort: 'alphabetical', static: true, type: 'method' }],
|
|
178
|
-
'static-private-properties': [{ name: '/_.+/', sort: 'alphabetical', static: true, type: 'property' }],
|
|
179
|
-
'static-properties': [{ sort: 'alphabetical', static: true, type: 'property' }],
|
|
180
|
-
},
|
|
181
|
-
order: [
|
|
182
|
-
'[static-properties]',
|
|
183
|
-
'[static-private-properties]',
|
|
184
|
-
'[static-methods]',
|
|
185
|
-
'[static-private-methods]',
|
|
186
|
-
'[arrow-function-properties]',
|
|
187
|
-
'[properties]',
|
|
188
|
-
'[private-arrow-function-properties]',
|
|
189
|
-
'[private-properties]',
|
|
190
|
-
'constructor',
|
|
191
|
-
'getters',
|
|
192
|
-
'setters',
|
|
193
|
-
'[methods]',
|
|
194
|
-
'[private-methods]',
|
|
195
|
-
],
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
159
|
'sort-destructure-keys/sort-destructure-keys': [2, { caseSensitive: true }],
|
|
199
160
|
'sort-imports': [
|
|
200
161
|
2,
|
|
@@ -205,6 +166,14 @@ export default tsEslint.config(
|
|
|
205
166
|
'sort-keys': 0,
|
|
206
167
|
'sort-keys-fix/sort-keys-fix': [2, 'asc', { caseSensitive: true, natural: true }],
|
|
207
168
|
'sort-vars': [2, { ignoreCase: false }],
|
|
169
|
+
'unicorn/consistent-boolean-name': [
|
|
170
|
+
'error',
|
|
171
|
+
{
|
|
172
|
+
prefixes: {
|
|
173
|
+
to: true,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
],
|
|
208
177
|
'unicorn/consistent-function-scoping': [2, { checkArrowFunctions: false }],
|
|
209
178
|
'unicorn/filename-case': [
|
|
210
179
|
2,
|
|
@@ -218,7 +187,9 @@ export default tsEslint.config(
|
|
|
218
187
|
},
|
|
219
188
|
],
|
|
220
189
|
'unicorn/import-style': 0,
|
|
190
|
+
'unicorn/name-replacements': 0,
|
|
221
191
|
'unicorn/no-array-reduce': 0,
|
|
192
|
+
'unicorn/no-top-level-assignment-in-function': 0,
|
|
222
193
|
'unicorn/prevent-abbreviations': 0,
|
|
223
194
|
},
|
|
224
195
|
},
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repodog/eslint-config",
|
|
3
3
|
"description": "The Repodog ESLint config module.",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.30",
|
|
5
5
|
"author": "miami-man",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/repodog",
|
|
8
8
|
"repository": {
|
|
9
9
|
"directory": "configs/eslint-config",
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/badbatch/repodog
|
|
11
|
+
"url": "https://github.com/badbatch/repodog.git"
|
|
12
12
|
},
|
|
13
13
|
"bugs": "https://github.com/badbatch/repodog/issues",
|
|
14
14
|
"type": "module",
|
|
@@ -23,28 +23,27 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@eslint/compat": "^2.1.0",
|
|
26
|
-
"@eslint/js": "^
|
|
26
|
+
"@eslint/js": "^10.0.1",
|
|
27
27
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
28
28
|
"eslint-config-prettier": "^10.1.8",
|
|
29
29
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
30
30
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
31
|
-
"eslint-plugin-import-x": "^4.17.
|
|
31
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
32
32
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
33
|
-
"eslint-plugin-sort-
|
|
34
|
-
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
33
|
+
"eslint-plugin-sort-destructure-keys": "^3.0.0",
|
|
35
34
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
36
35
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
37
|
-
"eslint-plugin-unicorn": "^
|
|
38
|
-
"globals": "^17.
|
|
39
|
-
"typescript-eslint": "^8.
|
|
36
|
+
"eslint-plugin-unicorn": "^72.0.0",
|
|
37
|
+
"globals": "^17.8.0",
|
|
38
|
+
"typescript-eslint": "^8.65.0"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"eslint": "<
|
|
41
|
+
"eslint": "<11",
|
|
43
42
|
"typescript": "<7"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@types/eslint__js": "^9.14.0",
|
|
47
|
-
"eslint": "^
|
|
46
|
+
"eslint": "^10.8.0",
|
|
48
47
|
"typescript": "^6.0.3"
|
|
49
48
|
}
|
|
50
49
|
}
|