@repodog/eslint-config 9.0.16 → 9.0.18
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 +9 -16
- package/package.json +15 -15
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FlatCompat } from '@eslint/eslintrc';
|
|
1
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
3
2
|
import eslint from '@eslint/js';
|
|
4
3
|
import stylistic from '@stylistic/eslint-plugin';
|
|
5
|
-
import
|
|
4
|
+
import eslintComments from 'eslint-plugin-eslint-comments';
|
|
5
|
+
import { importX } from 'eslint-plugin-import-x';
|
|
6
6
|
import preferArrow from 'eslint-plugin-prefer-arrow';
|
|
7
7
|
import prettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
8
8
|
import sortClassMembers from 'eslint-plugin-sort-class-members';
|
|
@@ -11,17 +11,11 @@ import sortKeysFix from 'eslint-plugin-sort-keys-fix';
|
|
|
11
11
|
import typescriptSortKeys from 'eslint-plugin-typescript-sort-keys';
|
|
12
12
|
import unicorn from 'eslint-plugin-unicorn';
|
|
13
13
|
import globals from 'globals';
|
|
14
|
-
// eslint is randomly not resolving module
|
|
15
|
-
// eslint-disable-next-line import-x/no-unresolved
|
|
16
14
|
import tsEslint from 'typescript-eslint';
|
|
17
15
|
|
|
18
16
|
const cwd = process.cwd();
|
|
19
17
|
const project = './tsconfig.json';
|
|
20
18
|
|
|
21
|
-
const flatCompat = new FlatCompat({
|
|
22
|
-
baseDirectory: cwd,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
19
|
// eslint convention is to export default
|
|
26
20
|
// eslint-disable-next-line import-x/no-default-export
|
|
27
21
|
export default tsEslint.config(
|
|
@@ -45,12 +39,7 @@ export default tsEslint.config(
|
|
|
45
39
|
],
|
|
46
40
|
},
|
|
47
41
|
{
|
|
48
|
-
extends: [
|
|
49
|
-
eslint.configs.recommended,
|
|
50
|
-
importX.flatConfigs.recommended,
|
|
51
|
-
unicorn.configs['flat/recommended'],
|
|
52
|
-
...fixupConfigRules(flatCompat.extends('plugin:eslint-comments/recommended')),
|
|
53
|
-
],
|
|
42
|
+
extends: [eslint.configs.recommended, importX.flatConfigs.recommended, unicorn.configs['flat/recommended']],
|
|
54
43
|
files: ['**/*.{mjs,cjs,js,jsx,ts,tsx}'],
|
|
55
44
|
languageOptions: {
|
|
56
45
|
ecmaVersion: 'latest',
|
|
@@ -65,6 +54,7 @@ export default tsEslint.config(
|
|
|
65
54
|
},
|
|
66
55
|
plugins: {
|
|
67
56
|
'@stylistic': stylistic,
|
|
57
|
+
'eslint-comments': fixupPluginRules(eslintComments),
|
|
68
58
|
'prefer-arrow': fixupPluginRules(preferArrow),
|
|
69
59
|
'sort-class-members': fixupPluginRules(sortClassMembers),
|
|
70
60
|
'sort-destructure-keys': fixupPluginRules(sortDestructureKeys),
|
|
@@ -108,7 +98,10 @@ export default tsEslint.config(
|
|
|
108
98
|
{ blankLine: 'always', next: 'default', prev: '*' },
|
|
109
99
|
{ blankLine: 'always', next: '*', prev: 'break' },
|
|
110
100
|
],
|
|
111
|
-
'eslint-comments/
|
|
101
|
+
'eslint-comments/no-aggregating-enable': 2,
|
|
102
|
+
'eslint-comments/no-duplicate-disable': 2,
|
|
103
|
+
'eslint-comments/no-unlimited-disable': 2,
|
|
104
|
+
'eslint-comments/no-unused-enable': 2,
|
|
112
105
|
'import-x/extensions': [2, 'ignorePackages'],
|
|
113
106
|
'import-x/namespace': 0,
|
|
114
107
|
// This rule doesn't work on typescript files currently.
|
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.18",
|
|
5
5
|
"author": "miami-man",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/repodog",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@eslint/compat": "^1.2
|
|
26
|
-
"@eslint/eslintrc": "^3.
|
|
27
|
-
"@eslint/js": "^9.
|
|
28
|
-
"@stylistic/eslint-plugin": "^2.
|
|
29
|
-
"eslint-config-prettier": "^
|
|
30
|
-
"eslint-import-resolver-typescript": "^
|
|
25
|
+
"@eslint/compat": "^1.3.2",
|
|
26
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
27
|
+
"@eslint/js": "^9.33.0",
|
|
28
|
+
"@stylistic/eslint-plugin": "^5.2.3",
|
|
29
|
+
"eslint-config-prettier": "^10.1.8",
|
|
30
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
31
31
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
32
|
-
"eslint-plugin-import-x": "^4.
|
|
32
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
33
33
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
34
|
-
"eslint-plugin-prettier": "^5.
|
|
34
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
35
35
|
"eslint-plugin-sort-class-members": "^1.21.0",
|
|
36
36
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
37
37
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
38
38
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
39
|
-
"eslint-plugin-unicorn": "^
|
|
40
|
-
"globals": "^
|
|
41
|
-
"typescript-eslint": "^8.
|
|
39
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
40
|
+
"globals": "^16.3.0",
|
|
41
|
+
"typescript-eslint": "^8.39.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"eslint": "<10",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/eslint__js": "^8.42.3",
|
|
50
|
-
"eslint": "^9.
|
|
51
|
-
"prettier": "^3.
|
|
52
|
-
"typescript": "^5.
|
|
50
|
+
"eslint": "^9.33.0",
|
|
51
|
+
"prettier": "^3.6.2",
|
|
52
|
+
"typescript": "^5.9.2"
|
|
53
53
|
}
|
|
54
54
|
}
|