eslint-config-tungsten-js-flat 0.3.2 → 0.3.4
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/package.json +5 -4
- package/src/index.ts +19 -0
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-tungsten-js-flat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"src"
|
|
8
9
|
],
|
|
9
10
|
"main": "dist/index.js",
|
|
10
11
|
"keywords": [],
|
|
11
12
|
"author": "",
|
|
12
13
|
"license": "UNLICENSED",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"eslint-config-tungsten-base-flat": "^0.3.
|
|
15
|
+
"eslint-config-tungsten-base-flat": "^0.3.5",
|
|
15
16
|
"eslint-plugin-import-x": "^4.17.1"
|
|
16
17
|
},
|
|
17
18
|
"peerDependencies": {
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"eslint-plugin-react-hooks": "^5.2.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^22.20.
|
|
29
|
+
"@types/node": "^22.20.2",
|
|
29
30
|
"typescript": "^5.9.3"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import tungstenBase from 'eslint-config-tungsten-base-flat'
|
|
3
|
+
import pluginImportX from 'eslint-plugin-import-x'
|
|
4
|
+
import { defineConfig } from 'eslint/config'
|
|
5
|
+
|
|
6
|
+
// The base plus import-x. Kept separate from the base so the TS config can take the
|
|
7
|
+
// base alone and avoid import-x's native resolver (and pnpm's ignored-build warning).
|
|
8
|
+
|
|
9
|
+
export default defineConfig([
|
|
10
|
+
...tungstenBase,
|
|
11
|
+
{
|
|
12
|
+
plugins: {
|
|
13
|
+
"import-x": pluginImportX,
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
"import-x/extensions": ["error", "always"],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
])
|