@ocavue/eslint-config 3.7.1 → 3.8.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/dist/package-json.js +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +7 -6
- package/dist/react.js.map +1 -1
- package/package.json +6 -14
package/dist/package-json.js
CHANGED
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,CAsCtD"}
|
package/dist/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import eslintReact from '@eslint-react/eslint-plugin';
|
|
2
2
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
3
3
|
import { resolveReactOptions } from './options.js';
|
|
4
4
|
export function react(options) {
|
|
5
5
|
const { files, reactCompiler, version } = resolveReactOptions(options);
|
|
6
|
-
const reactRecommended =
|
|
6
|
+
const reactRecommended = eslintReact.configs['recommended-typescript'];
|
|
7
7
|
const reactHooksRecommended = reactHooksPlugin.configs.flat['recommended'];
|
|
8
8
|
const reactHooksRecommendedCompiler = reactHooksPlugin.configs.flat['recommended-latest'];
|
|
9
9
|
const configs = [
|
|
@@ -12,14 +12,15 @@ export function react(options) {
|
|
|
12
12
|
name: 'react',
|
|
13
13
|
files: files,
|
|
14
14
|
settings: {
|
|
15
|
-
react: {
|
|
16
|
-
version,
|
|
15
|
+
'react-x': {
|
|
16
|
+
version: version,
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
rules: {
|
|
20
20
|
...reactRecommended.rules,
|
|
21
|
-
'react/
|
|
22
|
-
'react/
|
|
21
|
+
'@eslint-react/naming-convention/use-state': 'off',
|
|
22
|
+
'@eslint-react/web-api/no-leaked-event-listener': 'off',
|
|
23
|
+
'@eslint-react/no-array-index-key': 'off',
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
{
|
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,gBAAgB,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,cAAc,CAAA;AAGrE,MAAM,UAAU,KAAK,CAAC,OAAsB;IAC1C,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAEtE,MAAM,gBAAgB,GAAW,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAA;IAE9E,MAAM,qBAAqB,GACzB,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC9C,MAAM,6BAA6B,GACjC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;IAErD,MAAM,OAAO,GAAa;QACxB;YACE,GAAG,gBAAgB;YACnB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE;gBACR,SAAS,EAAE;oBACT,OAAO,EAAE,OAAO;iBACjB;aACF;YACD,KAAK,EAAE;gBACL,GAAG,gBAAgB,CAAC,KAAK;gBACzB,2CAA2C,EAAE,KAAK;gBAClD,gDAAgD,EAAE,KAAK;gBACvD,kCAAkC,EAAE,KAAK;aAC1C;SACF;QAED;YACE,GAAG,CAAC,aAAa;gBACf,CAAC,CAAC,6BAA6B;gBAC/B,CAAC,CAAC,qBAAqB,CAAC;YAC1B,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,KAAK;SACb;KACF,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"description": "Opinionated ESLint config preset",
|
|
6
6
|
"author": "ocavue <ocavue@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@eslint-react/eslint-plugin": "^2.3.13",
|
|
31
32
|
"@eslint/js": "^9.39.1",
|
|
32
33
|
"@eslint/markdown": "^7.5.1",
|
|
33
34
|
"@unocss/eslint-config": "^66.5.7",
|
|
@@ -35,22 +36,21 @@
|
|
|
35
36
|
"eslint-config-prettier": "^10.1.8",
|
|
36
37
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
38
|
"eslint-plugin-antfu": "^3.1.1",
|
|
38
|
-
"eslint-plugin-command": "^3.
|
|
39
|
+
"eslint-plugin-command": "^3.4.0",
|
|
39
40
|
"eslint-plugin-import-x": "^4.16.1",
|
|
40
41
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
41
42
|
"eslint-plugin-package-json": "^0.85.0",
|
|
42
|
-
"eslint-plugin-react": "^7.37.5",
|
|
43
43
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
44
44
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
45
45
|
"eslint-plugin-vue": "^10.6.2",
|
|
46
46
|
"globals": "^16.5.0",
|
|
47
|
-
"typescript-eslint": "^8.
|
|
47
|
+
"typescript-eslint": "^8.49.0",
|
|
48
48
|
"vue-eslint-parser": "^10.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@ocavue/tsconfig": "^0.6.
|
|
51
|
+
"@ocavue/tsconfig": "^0.6.2",
|
|
52
52
|
"@types/node": "^20.17.9",
|
|
53
|
-
"@typescript-eslint/utils": "^8.
|
|
53
|
+
"@typescript-eslint/utils": "^8.49.0",
|
|
54
54
|
"eslint": "^9.39.1",
|
|
55
55
|
"jiti": "^2.6.1",
|
|
56
56
|
"pkg-pr-new": "^0.0.62",
|
|
@@ -60,14 +60,6 @@
|
|
|
60
60
|
"renovate": {
|
|
61
61
|
"extends": [
|
|
62
62
|
"github>ocavue/config-renovate"
|
|
63
|
-
],
|
|
64
|
-
"packageRules": [
|
|
65
|
-
{
|
|
66
|
-
"matchPackageNames": [
|
|
67
|
-
"eslint-plugin-react-hooks"
|
|
68
|
-
],
|
|
69
|
-
"allowedVersions": "!/6.0.0-rc1$/"
|
|
70
|
-
}
|
|
71
63
|
]
|
|
72
64
|
},
|
|
73
65
|
"scripts": {
|