@robot-inventor/eslint-config 6.1.0 → 8.0.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/cjs/index.js +9 -2
- package/dist/cjs/package.json +4 -3
- package/dist/esm/index.js +9 -2
- package/dist/esm/package.json +4 -3
- package/package.json +4 -3
package/dist/cjs/index.js
CHANGED
|
@@ -11,6 +11,9 @@ const eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier
|
|
|
11
11
|
const eslint_plugin_import_x_1 = __importDefault(require("eslint-plugin-import-x"));
|
|
12
12
|
const eslint_plugin_jsdoc_1 = __importDefault(require("eslint-plugin-jsdoc"));
|
|
13
13
|
const eslint_plugin_react_1 = __importDefault(require("eslint-plugin-react"));
|
|
14
|
+
// @ts-expect-error `eslint-plugin-react-compiler` doesn't have type definitions.
|
|
15
|
+
// eslint-disable-next-line import-x/max-dependencies
|
|
16
|
+
const eslint_plugin_react_compiler_1 = __importDefault(require("eslint-plugin-react-compiler"));
|
|
14
17
|
const eslintRules = {
|
|
15
18
|
curly: ["error", "multi-line"],
|
|
16
19
|
"no-magic-numbers": [
|
|
@@ -107,8 +110,11 @@ const eslintConfig = (0, typescript_eslint_1.config)(...eslintConfigNoJSDoc, ...
|
|
|
107
110
|
exports.eslintConfig = eslintConfig;
|
|
108
111
|
const eslintReactConfigBase = (0, typescript_eslint_1.config)({
|
|
109
112
|
files: ["**/*.tsx"],
|
|
110
|
-
// @ts-expect-error `flat` always exists
|
|
111
113
|
...eslint_plugin_react_1.default.configs.flat["recommended"],
|
|
114
|
+
plugins: {
|
|
115
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
116
|
+
"react-compiler": eslint_plugin_react_compiler_1.default
|
|
117
|
+
},
|
|
112
118
|
rules: {
|
|
113
119
|
"jsdoc/check-tag-names": [
|
|
114
120
|
"error",
|
|
@@ -124,7 +130,8 @@ const eslintReactConfigBase = (0, typescript_eslint_1.config)({
|
|
|
124
130
|
}
|
|
125
131
|
],
|
|
126
132
|
"react/jsx-boolean-value": ["error", "never"],
|
|
127
|
-
"react/jsx-curly-brace-presence": ["error", "never"]
|
|
133
|
+
"react/jsx-curly-brace-presence": ["error", "never"],
|
|
134
|
+
"react-compiler/react-compiler": "error"
|
|
128
135
|
}
|
|
129
136
|
});
|
|
130
137
|
const eslintReactConfig = (0, typescript_eslint_1.config)(...eslintConfig, ...eslintReactConfigBase);
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc -p . && tsc -p ./tsconfig.cjs.json && tsconfig-to-dual-package",
|
|
11
|
-
"lint": "npx eslint
|
|
11
|
+
"lint": "npx eslint ./src/**/*.ts",
|
|
12
12
|
"ci:version": "changeset version",
|
|
13
13
|
"ci:publish": "npm run build && changeset publish"
|
|
14
14
|
},
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
37
37
|
"@typescript-eslint/parser": "^8.0.1",
|
|
38
38
|
"eslint": "^9.17.0",
|
|
39
|
-
"eslint-config-prettier": "^
|
|
39
|
+
"eslint-config-prettier": "^10.0.0",
|
|
40
40
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
41
41
|
"eslint-plugin-import-x": "^4.0.0",
|
|
42
42
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
43
43
|
"eslint-plugin-react": "^7.37.3",
|
|
44
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
|
|
44
45
|
"typescript-eslint": "^8.0.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
package/dist/esm/index.js
CHANGED
|
@@ -5,6 +5,9 @@ import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
5
5
|
import importX from "eslint-plugin-import-x";
|
|
6
6
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
7
7
|
import react from "eslint-plugin-react";
|
|
8
|
+
// @ts-expect-error `eslint-plugin-react-compiler` doesn't have type definitions.
|
|
9
|
+
// eslint-disable-next-line import-x/max-dependencies
|
|
10
|
+
import reactCompiler from "eslint-plugin-react-compiler";
|
|
8
11
|
const eslintRules = {
|
|
9
12
|
curly: ["error", "multi-line"],
|
|
10
13
|
"no-magic-numbers": [
|
|
@@ -99,8 +102,11 @@ const JSDocRule = config({
|
|
|
99
102
|
const eslintConfig = config(...eslintConfigNoJSDoc, ...JSDocRule);
|
|
100
103
|
const eslintReactConfigBase = config({
|
|
101
104
|
files: ["**/*.tsx"],
|
|
102
|
-
// @ts-expect-error `flat` always exists
|
|
103
105
|
...react.configs.flat["recommended"],
|
|
106
|
+
plugins: {
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
108
|
+
"react-compiler": reactCompiler
|
|
109
|
+
},
|
|
104
110
|
rules: {
|
|
105
111
|
"jsdoc/check-tag-names": [
|
|
106
112
|
"error",
|
|
@@ -116,7 +122,8 @@ const eslintReactConfigBase = config({
|
|
|
116
122
|
}
|
|
117
123
|
],
|
|
118
124
|
"react/jsx-boolean-value": ["error", "never"],
|
|
119
|
-
"react/jsx-curly-brace-presence": ["error", "never"]
|
|
125
|
+
"react/jsx-curly-brace-presence": ["error", "never"],
|
|
126
|
+
"react-compiler/react-compiler": "error"
|
|
120
127
|
}
|
|
121
128
|
});
|
|
122
129
|
const eslintReactConfig = config(...eslintConfig, ...eslintReactConfigBase);
|
package/dist/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc -p . && tsc -p ./tsconfig.cjs.json && tsconfig-to-dual-package",
|
|
11
|
-
"lint": "npx eslint
|
|
11
|
+
"lint": "npx eslint ./src/**/*.ts",
|
|
12
12
|
"ci:version": "changeset version",
|
|
13
13
|
"ci:publish": "npm run build && changeset publish"
|
|
14
14
|
},
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
37
37
|
"@typescript-eslint/parser": "^8.0.1",
|
|
38
38
|
"eslint": "^9.17.0",
|
|
39
|
-
"eslint-config-prettier": "^
|
|
39
|
+
"eslint-config-prettier": "^10.0.0",
|
|
40
40
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
41
41
|
"eslint-plugin-import-x": "^4.0.0",
|
|
42
42
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
43
43
|
"eslint-plugin-react": "^7.37.3",
|
|
44
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
|
|
44
45
|
"typescript-eslint": "^8.0.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc -p . && tsc -p ./tsconfig.cjs.json && tsconfig-to-dual-package",
|
|
22
|
-
"lint": "npx eslint
|
|
22
|
+
"lint": "npx eslint ./src/**/*.ts",
|
|
23
23
|
"ci:version": "changeset version",
|
|
24
24
|
"ci:publish": "npm run build && changeset publish"
|
|
25
25
|
},
|
|
@@ -47,11 +47,12 @@
|
|
|
47
47
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
48
48
|
"@typescript-eslint/parser": "^8.0.1",
|
|
49
49
|
"eslint": "^9.17.0",
|
|
50
|
-
"eslint-config-prettier": "^
|
|
50
|
+
"eslint-config-prettier": "^10.0.0",
|
|
51
51
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
52
52
|
"eslint-plugin-import-x": "^4.0.0",
|
|
53
53
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
54
54
|
"eslint-plugin-react": "^7.37.3",
|
|
55
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
|
|
55
56
|
"typescript-eslint": "^8.0.0"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|