@nihalgonsalves/esconfig 0.10.9 → 0.10.11
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/eslint.config.react-shared.js +3 -8
- package/package.json +11 -11
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import prettierConfig from "eslint-config-prettier";
|
|
3
3
|
// @ts-expect-error no types
|
|
4
4
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
5
|
-
// @ts-expect-error no types
|
|
6
5
|
import react from "eslint-plugin-react";
|
|
7
6
|
// @ts-expect-error no types
|
|
8
7
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
@@ -10,16 +9,13 @@ import tseslint from "typescript-eslint";
|
|
|
10
9
|
|
|
11
10
|
import sharedConfig from "./eslint.config.shared.js";
|
|
12
11
|
|
|
13
|
-
/** @type {Record<string, any>} */
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
15
|
-
const reactRules = react.configs.recommended.rules;
|
|
16
|
-
|
|
17
12
|
export default tseslint.config(
|
|
18
13
|
...sharedConfig,
|
|
14
|
+
// @ts-expect-error wrong types
|
|
15
|
+
react.configs.flat.recommended,
|
|
16
|
+
react.configs.flat["jsx-runtime"],
|
|
19
17
|
{
|
|
20
18
|
plugins: {
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
22
|
-
react,
|
|
23
19
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
24
20
|
"react-hooks": reactHooks,
|
|
25
21
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -29,7 +25,6 @@ export default tseslint.config(
|
|
|
29
25
|
react: { version: "detect" },
|
|
30
26
|
},
|
|
31
27
|
rules: {
|
|
32
|
-
...reactRules,
|
|
33
28
|
"react/react-in-jsx-scope": "off",
|
|
34
29
|
"react/checked-requires-onchange-or-readonly": [
|
|
35
30
|
"off",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nihalgonsalves/esconfig",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
4
4
|
"description": "Shared ECMAScript Config (TS, Lint, Prettier)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "git@github.com:nihalgonsalves/esconfig.git",
|
|
7
7
|
"author": "Nihal Gonsalves <nihal@nihalgonsalves.com>",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"packageManager": "yarn@4.
|
|
10
|
+
"packageManager": "yarn@4.5.0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39",
|
|
11
11
|
"files": [
|
|
12
12
|
"eslint.config.shared.js",
|
|
13
13
|
"eslint.config.shared.d.ts",
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
"format:check": "prettier . --check"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@eslint/js": "^9.
|
|
25
|
+
"@eslint/js": "^9.12.0",
|
|
26
26
|
"eslint-config-prettier": "^9.1.0",
|
|
27
|
-
"eslint-plugin-import": "^2.
|
|
27
|
+
"eslint-plugin-import": "^2.31.0",
|
|
28
28
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
29
|
-
"eslint-plugin-react": "^7.
|
|
29
|
+
"eslint-plugin-react": "^7.37.1",
|
|
30
30
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
31
|
-
"typescript-eslint": "^8.
|
|
31
|
+
"typescript-eslint": "^8.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@commitlint/cli": "^19.5.0",
|
|
35
35
|
"@commitlint/config-conventional": "^19.5.0",
|
|
36
36
|
"@types/eslint__js": "^8.42.3",
|
|
37
|
-
"@types/node": "^22.
|
|
38
|
-
"eslint": "^9.
|
|
39
|
-
"knip": "^5.
|
|
40
|
-
"lefthook": "^1.7.
|
|
37
|
+
"@types/node": "^22.7.4",
|
|
38
|
+
"eslint": "^9.12.0",
|
|
39
|
+
"knip": "^5.32.0",
|
|
40
|
+
"lefthook": "^1.7.18",
|
|
41
41
|
"prettier": "^3.3.3",
|
|
42
42
|
"typescript": "^5.6.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"eslint": "^9.
|
|
45
|
+
"eslint": "^9.12.0",
|
|
46
46
|
"typescript": "^5.5.4",
|
|
47
47
|
"typescript-eslint": "^8.4.0"
|
|
48
48
|
}
|