@jgarber/eslint-config 2.0.0 → 3.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.
- package/lib/index.js +23 -11
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const compat = require('./compat');
|
|
|
11
11
|
|
|
12
12
|
module.exports = [
|
|
13
13
|
// https://www.npmjs.com/package/eslint-plugin-jsdoc
|
|
14
|
-
jsdoc.configs['flat/recommended
|
|
14
|
+
jsdoc.configs['flat/recommended'],
|
|
15
15
|
|
|
16
16
|
// https://www.npmjs.com/package/eslint-plugin-n
|
|
17
17
|
n.configs['flat/recommended'],
|
|
@@ -52,9 +52,13 @@ module.exports = [
|
|
|
52
52
|
// https://eslint.org/docs/latest/rules/semi
|
|
53
53
|
semi: ['error', 'always'],
|
|
54
54
|
|
|
55
|
+
// https://eslint.org/docs/latest/rules/sort-imports
|
|
56
|
+
'sort-imports': ['error', { allowSeparatedGroups: true }],
|
|
57
|
+
|
|
55
58
|
// https://eslint.org/docs/latest/rules/sort-keys
|
|
56
59
|
'sort-keys': ['error', 'asc', {
|
|
57
60
|
allowLineSeparatedGroups: true,
|
|
61
|
+
caseSensitive: false,
|
|
58
62
|
natural: true
|
|
59
63
|
}],
|
|
60
64
|
|
|
@@ -65,24 +69,32 @@ module.exports = [
|
|
|
65
69
|
named: 'never'
|
|
66
70
|
}],
|
|
67
71
|
|
|
68
|
-
// Disable rules conflicting with eslint-plugin-unicorn.
|
|
69
|
-
//
|
|
70
|
-
// https://www.npmjs.com/package/eslint-plugin-array-func
|
|
71
|
-
'array-func/prefer-flat': 'off',
|
|
72
|
-
'array-func/prefer-flat-map': 'off',
|
|
73
|
-
|
|
74
72
|
// https://github.com/gajus/eslint-plugin-jsdoc/blob/HEAD/docs/rules/tag-lines.md
|
|
75
|
-
'jsdoc/tag-lines': ['
|
|
73
|
+
'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }],
|
|
76
74
|
|
|
77
75
|
// ¯\_(ツ)_/¯
|
|
78
76
|
//
|
|
79
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
80
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/
|
|
77
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
|
|
78
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/no-null.md
|
|
79
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/prefer-module.md
|
|
80
|
+
'unicorn/filename-case': 'off',
|
|
81
81
|
'unicorn/no-null': 'off',
|
|
82
82
|
'unicorn/prefer-module': 'off',
|
|
83
83
|
|
|
84
|
+
// Disable rules conflicting with eslint-plugin-array-func.
|
|
85
|
+
//
|
|
86
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
|
|
87
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md
|
|
88
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/prefer-spread.md
|
|
89
|
+
'unicorn/prefer-array-flat': 'off',
|
|
90
|
+
'unicorn/prefer-array-flat-map': 'off',
|
|
91
|
+
'unicorn/prefer-spread': 'off',
|
|
92
|
+
|
|
84
93
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/prevent-abbreviations.md
|
|
85
|
-
'unicorn/prevent-abbreviations': ['warn', { checkFilenames: false }]
|
|
94
|
+
'unicorn/prevent-abbreviations': ['warn', { checkFilenames: false }],
|
|
95
|
+
|
|
96
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/prefer-top-level-await.md
|
|
97
|
+
'unicorn/prefer-top-level-await': 'warn'
|
|
86
98
|
}
|
|
87
99
|
}
|
|
88
100
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jgarber/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Shareable ESLint configuration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"node": ">=18.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eslint/js": "^8.
|
|
36
|
+
"@eslint/js": "^8.51.0",
|
|
37
37
|
"eslint-config-standard": "^17.1.0",
|
|
38
38
|
"eslint-plugin-ava": "^14.0.0",
|
|
39
39
|
"eslint-plugin-array-func": "^4.0.0",
|
|
40
40
|
"eslint-plugin-jsdoc": "^46.8.2",
|
|
41
|
-
"eslint-plugin-n": "^16.
|
|
41
|
+
"eslint-plugin-n": "^16.2.0",
|
|
42
42
|
"eslint-plugin-promise": "^6.1.1",
|
|
43
43
|
"eslint-plugin-regexp": "^1.15.0",
|
|
44
44
|
"eslint-plugin-sort-class-members": "^1.19.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"ava": "^5.3.1",
|
|
49
49
|
"c8": "^8.0.1",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.51.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"eslint": ">=8.
|
|
53
|
+
"eslint": ">=8.51.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|