@kitql/eslint-config 0.4.0-next.0 → 0.4.0-next.1
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/cmd.js +1 -1
- package/eslint.config.js +21 -8
- package/package.json +2 -1
package/cmd.js
CHANGED
package/eslint.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import js from '@eslint/js'
|
|
2
2
|
import svelte from 'eslint-plugin-svelte'
|
|
3
|
+
import unusedImports from 'eslint-plugin-unused-imports'
|
|
3
4
|
import globals from 'globals'
|
|
4
5
|
import ts from 'typescript-eslint'
|
|
5
6
|
|
|
@@ -37,14 +38,6 @@ export const config = [
|
|
|
37
38
|
},
|
|
38
39
|
],
|
|
39
40
|
|
|
40
|
-
'@typescript-eslint/no-unused-vars': [
|
|
41
|
-
'warn',
|
|
42
|
-
{
|
|
43
|
-
argsIgnorePattern: '^_',
|
|
44
|
-
varsIgnorePattern: '^_',
|
|
45
|
-
caughtErrorsIgnorePattern: '^(_.*|e|error)$',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
41
|
'@typescript-eslint/no-require-imports': 'off',
|
|
49
42
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
50
43
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
@@ -59,6 +52,26 @@ export const config = [
|
|
|
59
52
|
'svelte/no-inner-declarations': 'off',
|
|
60
53
|
},
|
|
61
54
|
},
|
|
55
|
+
{
|
|
56
|
+
plugins: {
|
|
57
|
+
'unused-imports': unusedImports,
|
|
58
|
+
},
|
|
59
|
+
rules: {
|
|
60
|
+
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
|
|
61
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
62
|
+
'unused-imports/no-unused-imports': 'error',
|
|
63
|
+
'unused-imports/no-unused-vars': 'off',
|
|
64
|
+
// 'unused-imports/no-unused-vars': [
|
|
65
|
+
// 'warn',
|
|
66
|
+
// {
|
|
67
|
+
// vars: 'all',
|
|
68
|
+
// varsIgnorePattern: '^_',
|
|
69
|
+
// args: 'after-used',
|
|
70
|
+
// argsIgnorePattern: '^_',
|
|
71
|
+
// },
|
|
72
|
+
// ],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
62
75
|
]
|
|
63
76
|
|
|
64
77
|
export default config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"commander": "12.1.0",
|
|
37
37
|
"eslint": "9.10.0",
|
|
38
38
|
"eslint-plugin-svelte": "2.43.0",
|
|
39
|
+
"eslint-plugin-unused-imports": "^4.1.3",
|
|
39
40
|
"globals": "15.9.0",
|
|
40
41
|
"prettier": "3.3.3",
|
|
41
42
|
"prettier-plugin-svelte": "3.2.6",
|