@cocopalm/oxc-linter-config 0.2.1 → 0.2.3
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/react-compiler.d.mts +19 -16
- package/dist/react-compiler.mjs +19 -16
- package/package.json +16 -16
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
//#region src/react-compiler.d.ts
|
|
2
2
|
declare const _default: {
|
|
3
|
-
jsPlugins:
|
|
3
|
+
jsPlugins: {
|
|
4
|
+
name: string;
|
|
5
|
+
specifier: string;
|
|
6
|
+
}[];
|
|
4
7
|
rules: {
|
|
5
|
-
'react-hooks/config': "error";
|
|
6
|
-
'react-hooks/error-boundaries': "error";
|
|
7
|
-
'react-hooks/component-hook-factories': "error";
|
|
8
|
-
'react-hooks/gating': "error";
|
|
9
|
-
'react-hooks/globals': "error";
|
|
10
|
-
'react-hooks/immutability': "error";
|
|
11
|
-
'react-hooks/preserve-manual-memoization': "error";
|
|
12
|
-
'react-hooks/purity': "error";
|
|
13
|
-
'react-hooks/refs': "error";
|
|
14
|
-
'react-hooks/set-state-in-effect': "error";
|
|
15
|
-
'react-hooks/set-state-in-render': "error";
|
|
16
|
-
'react-hooks/static-components': "error";
|
|
17
|
-
'react-hooks/unsupported-syntax': "warn";
|
|
18
|
-
'react-hooks/use-memo': "error";
|
|
19
|
-
'react-hooks/incompatible-library': "warn";
|
|
8
|
+
'react-hooks-js/config': "error";
|
|
9
|
+
'react-hooks-js/error-boundaries': "error";
|
|
10
|
+
'react-hooks-js/component-hook-factories': "error";
|
|
11
|
+
'react-hooks-js/gating': "error";
|
|
12
|
+
'react-hooks-js/globals': "error";
|
|
13
|
+
'react-hooks-js/immutability': "error";
|
|
14
|
+
'react-hooks-js/preserve-manual-memoization': "error";
|
|
15
|
+
'react-hooks-js/purity': "error";
|
|
16
|
+
'react-hooks-js/refs': "error";
|
|
17
|
+
'react-hooks-js/set-state-in-effect': "error";
|
|
18
|
+
'react-hooks-js/set-state-in-render': "error";
|
|
19
|
+
'react-hooks-js/static-components': "error";
|
|
20
|
+
'react-hooks-js/unsupported-syntax': "warn";
|
|
21
|
+
'react-hooks-js/use-memo': "error";
|
|
22
|
+
'react-hooks-js/incompatible-library': "warn";
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
//#endregion
|
package/dist/react-compiler.mjs
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { defineConfig } from "oxlint";
|
|
2
2
|
//#region src/react-compiler.ts
|
|
3
3
|
var react_compiler_default = defineConfig({
|
|
4
|
-
jsPlugins: [
|
|
4
|
+
jsPlugins: [{
|
|
5
|
+
name: "react-hooks-js",
|
|
6
|
+
specifier: "eslint-plugin-react-hooks"
|
|
7
|
+
}],
|
|
5
8
|
rules: {
|
|
6
|
-
"react-hooks/config": "error",
|
|
7
|
-
"react-hooks/error-boundaries": "error",
|
|
8
|
-
"react-hooks/component-hook-factories": "error",
|
|
9
|
-
"react-hooks/gating": "error",
|
|
10
|
-
"react-hooks/globals": "error",
|
|
11
|
-
"react-hooks/immutability": "error",
|
|
12
|
-
"react-hooks/preserve-manual-memoization": "error",
|
|
13
|
-
"react-hooks/purity": "error",
|
|
14
|
-
"react-hooks/refs": "error",
|
|
15
|
-
"react-hooks/set-state-in-effect": "error",
|
|
16
|
-
"react-hooks/set-state-in-render": "error",
|
|
17
|
-
"react-hooks/static-components": "error",
|
|
18
|
-
"react-hooks/unsupported-syntax": "warn",
|
|
19
|
-
"react-hooks/use-memo": "error",
|
|
20
|
-
"react-hooks/incompatible-library": "warn"
|
|
9
|
+
"react-hooks-js/config": "error",
|
|
10
|
+
"react-hooks-js/error-boundaries": "error",
|
|
11
|
+
"react-hooks-js/component-hook-factories": "error",
|
|
12
|
+
"react-hooks-js/gating": "error",
|
|
13
|
+
"react-hooks-js/globals": "error",
|
|
14
|
+
"react-hooks-js/immutability": "error",
|
|
15
|
+
"react-hooks-js/preserve-manual-memoization": "error",
|
|
16
|
+
"react-hooks-js/purity": "error",
|
|
17
|
+
"react-hooks-js/refs": "error",
|
|
18
|
+
"react-hooks-js/set-state-in-effect": "error",
|
|
19
|
+
"react-hooks-js/set-state-in-render": "error",
|
|
20
|
+
"react-hooks-js/static-components": "error",
|
|
21
|
+
"react-hooks-js/unsupported-syntax": "warn",
|
|
22
|
+
"react-hooks-js/use-memo": "error",
|
|
23
|
+
"react-hooks-js/incompatible-library": "warn"
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
26
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocopalm/oxc-linter-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "oxc linter configuration",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"config",
|
|
7
|
+
"linter",
|
|
8
|
+
"oxc"
|
|
9
|
+
],
|
|
6
10
|
"license": "MIT",
|
|
11
|
+
"author": "puffcocos",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/puffcocos/oxc-config-kit"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
7
19
|
"type": "module",
|
|
8
20
|
"main": "./dist/base.mjs",
|
|
9
21
|
"exports": {
|
|
@@ -24,18 +36,6 @@
|
|
|
24
36
|
"types": "./dist/react-compiler.d.mts"
|
|
25
37
|
}
|
|
26
38
|
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist"
|
|
29
|
-
],
|
|
30
|
-
"keywords": [
|
|
31
|
-
"oxc",
|
|
32
|
-
"linter",
|
|
33
|
-
"config"
|
|
34
|
-
],
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "https://github.com/puffcocos/oxc-config-kit"
|
|
38
|
-
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|
|
41
41
|
"provenance": true
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"typescript": "^6.0.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
49
|
+
"eslint-plugin-react-hooks": "^6.0.0 || ^7.0.0",
|
|
50
|
+
"oxlint": "^1.57.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"eslint-plugin-react-hooks": {
|