@open-turo/eslint-config-react 23.0.2 → 24.0.0-pr-440.275.1.1
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/README.md +0 -10
- package/docs/breaking-changes/v24.md +5 -0
- package/eslint.config.mjs +1 -1
- package/index.d.mts +1 -1
- package/index.mjs +1 -1
- package/pack/open-turo-eslint-config-react-24.0.0-pr-440.275.1.1.tgz +0 -0
- package/package.json +6 -8
- package/test/__snapshots__/test.spec.js.snap +48 -3551
- package/test/test.spec.js +0 -92
- package/pack/open-turo-eslint-config-react-23.0.2.tgz +0 -0
- package/recommended.cjs +0 -125
package/README.md
CHANGED
|
@@ -28,16 +28,6 @@ const turoConfig = require("@open-turo/eslint-config-react");
|
|
|
28
28
|
module.exports = turoConfig();
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
### **[.eslintrc](https://eslint.org/docs/latest/use/configure/configuration-files)** (legacy example)
|
|
32
|
-
|
|
33
|
-
```jsonc
|
|
34
|
-
{
|
|
35
|
-
"extends": "@open-turo/eslint-config-react/recommended",
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
You will have to set the `ESLINT_USE_FLAT_CONFIG` env var to true.
|
|
40
|
-
|
|
41
31
|
## Development
|
|
42
32
|
|
|
43
33
|
### Pre-commit
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Breaking changes in v23
|
|
2
|
+
|
|
3
|
+
- Removes the **`@open-turo/eslint-config-react/recommended`** entry point and **`.eslintrc`-style** `recommended.cjs`. This package is **flat config only** (`eslint.config.*`). ESLint v10 no longer supports legacy configuration; migrate using the [ESLint migration guide](https://eslint.org/docs/latest/use/configure/migration-guide) if you still use `.eslintrc`.
|
|
4
|
+
- Replaces `eslint-plugin-import` with `eslint-plugin-import-x` for ESLint v10 support (and performance improvements)
|
|
5
|
+
- Drops support for ESLint v8
|
package/eslint.config.mjs
CHANGED
package/index.d.mts
CHANGED
package/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-default-export
|
|
1
|
+
// eslint-disable-next-line import-x/no-default-export
|
|
2
2
|
export { default } from "./index.cjs";
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
"description": "Turo eslint configuration for react",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@open-turo/eslint-config-typescript": "
|
|
6
|
+
"@open-turo/eslint-config-typescript": "23.0.0-pr-499.691.1.1",
|
|
7
7
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
8
8
|
"eslint-plugin-react": "7.37.5",
|
|
9
9
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
10
10
|
"globals": "17.4.0",
|
|
11
|
-
"typescript-eslint": "8.57.
|
|
11
|
+
"typescript-eslint": "8.57.1"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/react": "19.2.14",
|
|
15
|
-
"eslint": "
|
|
15
|
+
"eslint": "10.1.0",
|
|
16
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
16
17
|
"jest": "30.3.0",
|
|
17
18
|
"prettier": "3.8.1",
|
|
18
19
|
"react": "19.2.4"
|
|
@@ -42,19 +43,16 @@
|
|
|
42
43
|
"default": "./index.cjs"
|
|
43
44
|
},
|
|
44
45
|
"default": "./index.mjs"
|
|
45
|
-
},
|
|
46
|
-
"./recommended": {
|
|
47
|
-
"require": "./recommended.cjs"
|
|
48
46
|
}
|
|
49
47
|
},
|
|
50
48
|
"name": "@open-turo/eslint-config-react",
|
|
51
49
|
"peerDependencies": {
|
|
52
|
-
"eslint": "^
|
|
50
|
+
"eslint": "^9.0.0 || ^10.0.0",
|
|
53
51
|
"prettier": "^3.0.0"
|
|
54
52
|
},
|
|
55
53
|
"publishConfig": {
|
|
56
54
|
"access": "public"
|
|
57
55
|
},
|
|
58
56
|
"repository": "https://github.com/open-turo/eslint-config-react",
|
|
59
|
-
"version": "
|
|
57
|
+
"version": "24.0.0-pr-440.275.1.1"
|
|
60
58
|
}
|