eslint-config-tungsten-flat 0.3.13 → 0.3.15
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/package.json +7 -6
- package/src/index.ts +10 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,MAAM,EAAE,MAAM,eAAe,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,MAAM,EAAE,MAAM,eAAe,CAAA;;AAOnE,wBAuHE"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineConfig, globalIgnores } from 'eslint/config';
|
|
|
2
2
|
//export type { CompatibleConfigArray } from 'typescript-eslint' // would use this instead of `as ConfigArray` if typescript-eslint exported this type
|
|
3
3
|
import tungstenBase from 'eslint-config-tungsten-base-flat';
|
|
4
4
|
import importsRegulation from 'eslint-plugin-imports-regulation';
|
|
5
|
+
import noUselessNoUselessAssignment from 'eslint-plugin-no-useless-no-useless-assignment';
|
|
5
6
|
import tseslint from 'typescript-eslint';
|
|
6
7
|
export default defineConfig([
|
|
7
8
|
{
|
|
@@ -98,5 +99,14 @@ export default defineConfig([
|
|
|
98
99
|
preferTypeDeclarations: false
|
|
99
100
|
}]
|
|
100
101
|
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
plugins: {
|
|
105
|
+
'no-useless-no-useless-assignment': noUselessNoUselessAssignment
|
|
106
|
+
},
|
|
107
|
+
rules: {
|
|
108
|
+
// TS-aware fork of the core rule, which the base turns off
|
|
109
|
+
'no-useless-no-useless-assignment/no-useless-assignment': 'warn'
|
|
110
|
+
}
|
|
101
111
|
}
|
|
102
112
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-tungsten-flat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"author": "",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"eslint-config-tungsten-base-flat": "^0.3.
|
|
16
|
-
"eslint-plugin-imports-regulation": "^0.2.
|
|
17
|
-
"
|
|
15
|
+
"eslint-config-tungsten-base-flat": "^0.3.17",
|
|
16
|
+
"eslint-plugin-imports-regulation": "^0.2.17",
|
|
17
|
+
"eslint-plugin-no-useless-no-useless-assignment": "^0.1.0",
|
|
18
|
+
"typescript-eslint": "^8.70.1"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
|
-
"eslint": "^9.0.0"
|
|
21
|
+
"eslint": "^9.0.0 || ^10.0.0"
|
|
21
22
|
},
|
|
22
23
|
"__OldPeerDependencies": {
|
|
23
24
|
"@babel/core": "^7.18.5",
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
"eslint-plugin-import": "^2.26.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^22.20.
|
|
31
|
+
"@types/node": "^22.20.4",
|
|
31
32
|
"eslint": "^9.39.5",
|
|
32
33
|
"typescript": "^5.9.3"
|
|
33
34
|
},
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { defineConfig, globalIgnores, Config } from 'eslint/config'
|
|
|
3
3
|
//export type { CompatibleConfigArray } from 'typescript-eslint' // would use this instead of `as ConfigArray` if typescript-eslint exported this type
|
|
4
4
|
import tungstenBase from 'eslint-config-tungsten-base-flat'
|
|
5
5
|
import importsRegulation from 'eslint-plugin-imports-regulation'
|
|
6
|
+
import noUselessNoUselessAssignment from 'eslint-plugin-no-useless-no-useless-assignment'
|
|
6
7
|
import tseslint from 'typescript-eslint'
|
|
7
8
|
|
|
8
9
|
export default defineConfig([
|
|
@@ -113,6 +114,15 @@ export default defineConfig([
|
|
|
113
114
|
preferTypeDeclarations: false
|
|
114
115
|
}]
|
|
115
116
|
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
plugins: {
|
|
120
|
+
'no-useless-no-useless-assignment': noUselessNoUselessAssignment
|
|
121
|
+
},
|
|
122
|
+
rules: {
|
|
123
|
+
// TS-aware fork of the core rule, which the base turns off
|
|
124
|
+
'no-useless-no-useless-assignment/no-useless-assignment': 'warn'
|
|
125
|
+
}
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
])
|