@repodog/eslint-config 9.0.25 → 9.0.27
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 +8 -8
- package/package.json +14 -18
package/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
2
|
import eslint from '@eslint/js';
|
|
3
3
|
import stylistic from '@stylistic/eslint-plugin';
|
|
4
|
+
import eslintPrettier from 'eslint-config-prettier/flat';
|
|
4
5
|
import eslintComments from 'eslint-plugin-eslint-comments';
|
|
5
6
|
import { importX } from 'eslint-plugin-import-x';
|
|
6
7
|
import preferArrow from 'eslint-plugin-prefer-arrow';
|
|
7
|
-
import prettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
8
8
|
import sortClassMembers from 'eslint-plugin-sort-class-members';
|
|
9
9
|
import sortDestructureKeys from 'eslint-plugin-sort-destructure-keys';
|
|
10
10
|
import sortKeysFix from 'eslint-plugin-sort-keys-fix';
|
|
@@ -16,7 +16,7 @@ import tsEslint from 'typescript-eslint';
|
|
|
16
16
|
const cwd = process.cwd();
|
|
17
17
|
const project = './tsconfig.json';
|
|
18
18
|
|
|
19
|
-
//
|
|
19
|
+
// ESLint convention is to export default
|
|
20
20
|
// eslint-disable-next-line import-x/no-default-export
|
|
21
21
|
export default tsEslint.config(
|
|
22
22
|
{
|
|
@@ -39,7 +39,7 @@ export default tsEslint.config(
|
|
|
39
39
|
],
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
extends: [eslint.configs.recommended, importX.flatConfigs.recommended, unicorn.configs
|
|
42
|
+
extends: [eslint.configs.recommended, importX.flatConfigs.recommended, unicorn.configs.recommended],
|
|
43
43
|
files: ['**/*.{mjs,cjs,js,jsx,ts,tsx}'],
|
|
44
44
|
languageOptions: {
|
|
45
45
|
ecmaVersion: 'latest',
|
|
@@ -104,6 +104,8 @@ export default tsEslint.config(
|
|
|
104
104
|
{ blankLine: 'always', next: 'multiline-let', prev: '*' },
|
|
105
105
|
{ blankLine: 'never', next: 'cjs-export', prev: 'cjs-export' },
|
|
106
106
|
{ blankLine: 'never', next: 'cjs-import', prev: 'cjs-import' },
|
|
107
|
+
{ blankLine: 'always', next: '*', prev: 'multiline-export' },
|
|
108
|
+
{ blankLine: 'always', next: 'multiline-export', prev: '*' },
|
|
107
109
|
{ blankLine: 'always', next: 'case', prev: '*' },
|
|
108
110
|
{ blankLine: 'always', next: 'default', prev: '*' },
|
|
109
111
|
{ blankLine: 'always', next: '*', prev: 'break' },
|
|
@@ -114,7 +116,7 @@ export default tsEslint.config(
|
|
|
114
116
|
'eslint-comments/no-unused-enable': 2,
|
|
115
117
|
'import-x/extensions': [2, 'ignorePackages'],
|
|
116
118
|
'import-x/namespace': 0,
|
|
117
|
-
// This rule doesn't work on
|
|
119
|
+
// This rule doesn't work on TypeScript files currently.
|
|
118
120
|
// https://github.com/un-ts/eslint-plugin-import-x/issues/144
|
|
119
121
|
'import-x/no-default-export': 2,
|
|
120
122
|
'import-x/no-extraneous-dependencies': [
|
|
@@ -211,6 +213,7 @@ export default tsEslint.config(
|
|
|
211
213
|
camelCase: true,
|
|
212
214
|
pascalCase: true,
|
|
213
215
|
},
|
|
216
|
+
checkDirectories: false,
|
|
214
217
|
ignore: ['^module-defs.d.ts$', '^next-env.d.ts$'],
|
|
215
218
|
},
|
|
216
219
|
],
|
|
@@ -310,10 +313,6 @@ export default tsEslint.config(
|
|
|
310
313
|
'no-shadow': 2,
|
|
311
314
|
},
|
|
312
315
|
},
|
|
313
|
-
{
|
|
314
|
-
extends: [prettierRecommended],
|
|
315
|
-
files: ['**/*.{mjs,cjs,js,jsx,ts,tsx}'],
|
|
316
|
-
},
|
|
317
316
|
{
|
|
318
317
|
files: ['**/*.{spec,test}.*', '**/__testUtils__/**'],
|
|
319
318
|
plugins: {
|
|
@@ -328,4 +327,5 @@ export default tsEslint.config(
|
|
|
328
327
|
'@typescript-eslint/no-non-null-assertion': 0,
|
|
329
328
|
},
|
|
330
329
|
},
|
|
330
|
+
eslintPrettier,
|
|
331
331
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repodog/eslint-config",
|
|
3
3
|
"description": "The Repodog ESLint config module.",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.27",
|
|
5
5
|
"author": "miami-man",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/repodog",
|
|
@@ -22,33 +22,29 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@eslint/compat": "^1.
|
|
26
|
-
"@eslint/
|
|
27
|
-
"@eslint
|
|
28
|
-
"@stylistic/eslint-plugin": "^5.9.0",
|
|
25
|
+
"@eslint/compat": "^2.1.0",
|
|
26
|
+
"@eslint/js": "^9.39.4",
|
|
27
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
29
28
|
"eslint-config-prettier": "^10.1.8",
|
|
30
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
29
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
31
30
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
32
|
-
"eslint-plugin-import-x": "^4.16.
|
|
31
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
33
32
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
34
|
-
"eslint-plugin-
|
|
35
|
-
"eslint-plugin-sort-class-members": "^1.21.0",
|
|
33
|
+
"eslint-plugin-sort-class-members": "^1.22.1",
|
|
36
34
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
37
35
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
38
36
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
39
|
-
"eslint-plugin-unicorn": "^
|
|
40
|
-
"globals": "^
|
|
41
|
-
"typescript-eslint": "^8.
|
|
37
|
+
"eslint-plugin-unicorn": "^66.0.0",
|
|
38
|
+
"globals": "^17.6.0",
|
|
39
|
+
"typescript-eslint": "^8.61.1"
|
|
42
40
|
},
|
|
43
41
|
"peerDependencies": {
|
|
44
42
|
"eslint": "<10",
|
|
45
|
-
"
|
|
46
|
-
"typescript": "<6"
|
|
43
|
+
"typescript": "<7"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
49
|
-
"@types/eslint__js": "^
|
|
50
|
-
"eslint": "^9.
|
|
51
|
-
"
|
|
52
|
-
"typescript": "^5.9.2"
|
|
46
|
+
"@types/eslint__js": "^9.14.0",
|
|
47
|
+
"eslint": "^9.39.4",
|
|
48
|
+
"typescript": "^6.0.3"
|
|
53
49
|
}
|
|
54
50
|
}
|