@ivanmaxlogiudice/eslint-config 0.1.5 → 0.1.6
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.js +24 -2
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -28,9 +28,22 @@ module.exports = {
|
|
|
28
28
|
'pnpm-lock.yaml',
|
|
29
29
|
'yarn.lock',
|
|
30
30
|
'__snapshots__',
|
|
31
|
+
// ignore for in lint-staged
|
|
32
|
+
'*.css',
|
|
33
|
+
'*.png',
|
|
34
|
+
'*.ico',
|
|
35
|
+
'*.toml',
|
|
36
|
+
'*.patch',
|
|
37
|
+
'*.txt',
|
|
38
|
+
'*.crt',
|
|
39
|
+
'*.key',
|
|
40
|
+
'Dockerfile',
|
|
41
|
+
// force include
|
|
31
42
|
'!.github',
|
|
32
43
|
'!.vitepress',
|
|
33
44
|
'!.vscode',
|
|
45
|
+
// force exclude
|
|
46
|
+
'.vitepress/cache',
|
|
34
47
|
],
|
|
35
48
|
plugins: [
|
|
36
49
|
'html',
|
|
@@ -46,7 +59,7 @@ module.exports = {
|
|
|
46
59
|
},
|
|
47
60
|
overrides: [
|
|
48
61
|
{
|
|
49
|
-
files: ['*.json', '*.json5'],
|
|
62
|
+
files: ['*.json', '*.json5', '*.jsonc'],
|
|
50
63
|
parser: 'jsonc-eslint-parser',
|
|
51
64
|
rules: {
|
|
52
65
|
'jsonc/array-bracket-spacing': ['error', 'never'],
|
|
@@ -143,9 +156,10 @@ module.exports = {
|
|
|
143
156
|
},
|
|
144
157
|
},
|
|
145
158
|
{
|
|
146
|
-
files: ['*.js'],
|
|
159
|
+
files: ['*.js', '*.cjs', '*.jsx'],
|
|
147
160
|
rules: {
|
|
148
161
|
'@typescript-eslint/no-var-requires': 'off',
|
|
162
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
149
163
|
},
|
|
150
164
|
},
|
|
151
165
|
{
|
|
@@ -177,6 +191,8 @@ module.exports = {
|
|
|
177
191
|
'@typescript-eslint/no-var-requires': 'off',
|
|
178
192
|
'@typescript-eslint/comma-dangle': 'off',
|
|
179
193
|
'@typescript-eslint/consistent-type-imports': 'off',
|
|
194
|
+
'@typescript-eslint/no-namespace': 'off',
|
|
195
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
180
196
|
'import/no-unresolved': 'off',
|
|
181
197
|
'no-alert': 'off',
|
|
182
198
|
'no-console': 'off',
|
|
@@ -186,6 +202,8 @@ module.exports = {
|
|
|
186
202
|
'no-undef': 'off',
|
|
187
203
|
'no-unused-expressions': 'off',
|
|
188
204
|
'no-unused-vars': 'off',
|
|
205
|
+
'antfu/no-cjs-exports': 'off',
|
|
206
|
+
'antfu/no-ts-export-equal': 'off',
|
|
189
207
|
},
|
|
190
208
|
},
|
|
191
209
|
],
|
|
@@ -199,6 +217,7 @@ module.exports = {
|
|
|
199
217
|
'import/no-named-as-default-member': 'off',
|
|
200
218
|
'import/no-named-as-default': 'off',
|
|
201
219
|
'import/namespace': 'off',
|
|
220
|
+
'import/newline-after-import': ['error', { count: 1, considerComments: true }],
|
|
202
221
|
|
|
203
222
|
// unused imports
|
|
204
223
|
'unused-imports/no-unused-imports': 'error',
|
|
@@ -302,6 +321,7 @@ module.exports = {
|
|
|
302
321
|
'no-with': 'error',
|
|
303
322
|
'no-void': 'error',
|
|
304
323
|
'no-useless-escape': 'off',
|
|
324
|
+
'no-invalid-this': 'error',
|
|
305
325
|
'vars-on-top': 'error',
|
|
306
326
|
'require-await': 'off',
|
|
307
327
|
'no-return-assign': 'off',
|
|
@@ -341,7 +361,9 @@ module.exports = {
|
|
|
341
361
|
'unicorn/prefer-node-protocol': 'error',
|
|
342
362
|
|
|
343
363
|
'eslint-comments/disable-enable-pair': 'off',
|
|
364
|
+
|
|
344
365
|
// Enforce Node.js-style error-first callback pattern is followed
|
|
366
|
+
'n/prefer-global/buffer': ['error', 'never'],
|
|
345
367
|
'n/no-callback-literal': 'off',
|
|
346
368
|
|
|
347
369
|
'sort-imports': [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanmaxlogiudice/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Personal ESLint configuration",
|
|
5
5
|
"author": "Iván Máximiliano, Lo Giudice <ivanmaxlogiudice@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"eslint-config-standard": "^17.0.0",
|
|
33
|
-
"eslint-plugin-antfu": "^0.
|
|
33
|
+
"eslint-plugin-antfu": "^0.39.3",
|
|
34
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
35
35
|
"eslint-plugin-html": "^7.1.0",
|
|
36
36
|
"eslint-plugin-import": "^2.27.5",
|
|
37
|
-
"eslint-plugin-jsonc": "^2.
|
|
37
|
+
"eslint-plugin-jsonc": "^2.8.0",
|
|
38
38
|
"eslint-plugin-markdown": "^3.0.0",
|
|
39
|
-
"eslint-plugin-n": "^
|
|
39
|
+
"eslint-plugin-n": "^16.0.0",
|
|
40
40
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
41
41
|
"eslint-plugin-promise": "^6.1.1",
|
|
42
|
-
"eslint-plugin-unicorn": "^
|
|
42
|
+
"eslint-plugin-unicorn": "^47.0.0",
|
|
43
43
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
44
|
-
"eslint-plugin-yml": "^1.
|
|
45
|
-
"jsonc-eslint-parser": "^2.
|
|
46
|
-
"yaml-eslint-parser": "^1.2.
|
|
44
|
+
"eslint-plugin-yml": "^1.7.0",
|
|
45
|
+
"jsonc-eslint-parser": "^2.3.0",
|
|
46
|
+
"yaml-eslint-parser": "^1.2.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"typescript": "^5.0.
|
|
49
|
+
"eslint": "^8.41.0",
|
|
50
|
+
"typescript": "^5.0.4"
|
|
51
51
|
}
|
|
52
52
|
}
|