@whitetrefoil/eslint-config 5.0.2 → 5.1.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/presets/react.js +3 -2
- package/lib/presets/react.js.map +1 -1
- package/package.json +10 -9
package/lib/presets/react.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
2
3
|
export async function reactPreset(options) {
|
|
3
4
|
let react;
|
|
4
5
|
let reactHooks;
|
|
@@ -28,8 +29,8 @@ export async function reactPreset(options) {
|
|
|
28
29
|
},
|
|
29
30
|
},
|
|
30
31
|
plugins: {
|
|
31
|
-
react,
|
|
32
|
-
'react-hooks': reactHooks,
|
|
32
|
+
'react': fixupPluginRules(react),
|
|
33
|
+
'react-hooks': fixupPluginRules(reactHooks),
|
|
33
34
|
},
|
|
34
35
|
rules: {
|
|
35
36
|
...Object.entries(react.configs.recommended.rules ?? {})
|
package/lib/presets/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/presets/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/presets/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAQ/C,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAsB;IACtD,IAAI,KAAsD,CAAA;IAC1D,IAAI,UAAiE,CAAA;IAErE,IAAI,CAAC;QACH,KAAK,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClE,C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,CAAC,CAAC,CAAC,CAAC,CAAC;SACR;KACF,CAAA;AACH,CAAC;AAED,eAAe,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whitetrefoil/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0
|
|
4
|
+
"version": "5.1.0",
|
|
5
5
|
"author": "WhiteTrefoil <whitetrefoil@gmail.com>",
|
|
6
6
|
"license": "Unlicense",
|
|
7
7
|
"keywords": [
|
|
@@ -37,17 +37,18 @@
|
|
|
37
37
|
"globals": "^15.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"@eslint/compat": "^1.0.1",
|
|
40
41
|
"@eslint/config-inspector": "^0.4.8",
|
|
41
|
-
"@eslint/js": "^
|
|
42
|
+
"@eslint/js": "^9.2.0",
|
|
42
43
|
"@stylistic/eslint-plugin": "^2.1.0",
|
|
43
|
-
"@types/eslint": "^8.56.10
|
|
44
|
+
"@types/eslint": "^8.56.10",
|
|
44
45
|
"@types/eslint__js": "^8.42.3",
|
|
45
|
-
"@types/node": "^20.12.
|
|
46
|
+
"@types/node": "^20.12.12",
|
|
46
47
|
"@typescript-eslint/utils": "^7.9.0",
|
|
47
48
|
"@vitest/coverage-v8": "^1.6.0",
|
|
48
|
-
"eslint": "^
|
|
49
|
+
"eslint": "^9.2.0",
|
|
49
50
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
50
|
-
"eslint-plugin-n": "^17.
|
|
51
|
+
"eslint-plugin-n": "^17.7.0",
|
|
51
52
|
"eslint-plugin-react": "^7.34.1",
|
|
52
53
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
53
54
|
"eslint-plugin-solid": "^0.14.0",
|
|
@@ -65,11 +66,11 @@
|
|
|
65
66
|
"vitest": "^1.6.0"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
|
68
|
-
"@eslint/js": "^
|
|
69
|
+
"@eslint/js": "^9.2.0",
|
|
69
70
|
"@stylistic/eslint-plugin": "^2.1.0",
|
|
70
|
-
"eslint": "^
|
|
71
|
+
"eslint": "^9.2.0",
|
|
71
72
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
72
|
-
"eslint-plugin-n": "^17.
|
|
73
|
+
"eslint-plugin-n": "^17.7.0",
|
|
73
74
|
"eslint-plugin-react": "^7.34.1",
|
|
74
75
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
75
76
|
"eslint-plugin-solid": "^0.14.0",
|