@nihalgonsalves/esconfig 0.11.2 → 0.12.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import vitest from "@vitest/eslint-plugin";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
2
3
|
import prettierConfig from "eslint-config-prettier";
|
|
3
4
|
import jestDom from "eslint-plugin-jest-dom";
|
|
4
5
|
// @ts-expect-error no types
|
|
@@ -8,11 +9,10 @@ import reactCompiler from "eslint-plugin-react-compiler";
|
|
|
8
9
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
9
10
|
import storybook from "eslint-plugin-storybook";
|
|
10
11
|
import testingLibrary from "eslint-plugin-testing-library";
|
|
11
|
-
import tseslint from "typescript-eslint";
|
|
12
12
|
|
|
13
13
|
import sharedConfig from "./eslint.config.shared.js";
|
|
14
14
|
|
|
15
|
-
export default
|
|
15
|
+
export default defineConfig(
|
|
16
16
|
...sharedConfig,
|
|
17
17
|
{
|
|
18
18
|
ignores: [
|
package/eslint.config.shared.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
2
3
|
import prettierConfig from "eslint-config-prettier";
|
|
3
|
-
// @ts-expect-error no types
|
|
4
4
|
import importPlugin from "eslint-plugin-import";
|
|
5
5
|
import tseslint from "typescript-eslint";
|
|
6
6
|
|
|
7
|
-
export default
|
|
7
|
+
export default defineConfig(
|
|
8
8
|
js.configs.recommended,
|
|
9
9
|
// @ts-expect-error nullability
|
|
10
10
|
{
|
|
@@ -22,7 +22,6 @@ export default tseslint.config(
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
plugins: {
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
26
25
|
import: importPlugin,
|
|
27
26
|
},
|
|
28
27
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nihalgonsalves/esconfig",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Shared ECMAScript Config (TS, Lint, Prettier)",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+ssh://git@github.com/nihalgonsalves/esconfig.git"
|
|
9
|
+
},
|
|
7
10
|
"author": "Nihal Gonsalves <nihal@nihalgonsalves.com>",
|
|
8
11
|
"license": "MIT",
|
|
9
12
|
"type": "module",
|
|
10
|
-
"packageManager": "yarn@4.
|
|
13
|
+
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f",
|
|
11
14
|
"files": [
|
|
12
15
|
"eslint.config.shared.js",
|
|
13
16
|
"eslint.config.shared.d.ts",
|
|
@@ -22,28 +25,28 @@
|
|
|
22
25
|
"format:check": "prettier . --check"
|
|
23
26
|
},
|
|
24
27
|
"dependencies": {
|
|
25
|
-
"@eslint/js": "^9.
|
|
26
|
-
"@vitest/eslint-plugin": "^1.
|
|
27
|
-
"eslint-config-prettier": "^10.1.
|
|
28
|
-
"eslint-plugin-import": "^2.
|
|
28
|
+
"@eslint/js": "^9.37.0",
|
|
29
|
+
"@vitest/eslint-plugin": "^1.3.20",
|
|
30
|
+
"eslint-config-prettier": "^10.1.8",
|
|
31
|
+
"eslint-plugin-import": "^2.32.0",
|
|
29
32
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
30
33
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
31
|
-
"eslint-plugin-react": "^7.37.
|
|
32
|
-
"eslint-plugin-react-compiler": "19.
|
|
33
|
-
"eslint-plugin-react-hooks": "^
|
|
34
|
+
"eslint-plugin-react": "^7.37.5",
|
|
35
|
+
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
36
|
+
"eslint-plugin-react-hooks": "^6.1.1",
|
|
34
37
|
"eslint-plugin-storybook": "^0.11.4",
|
|
35
|
-
"eslint-plugin-testing-library": "^7.
|
|
36
|
-
"typescript-eslint": "^8.
|
|
38
|
+
"eslint-plugin-testing-library": "^7.13.3",
|
|
39
|
+
"typescript-eslint": "^8.46.1"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"@commitlint/cli": "^
|
|
40
|
-
"@commitlint/config-conventional": "^
|
|
41
|
-
"@types/node": "^22.
|
|
42
|
-
"eslint": "^9.
|
|
43
|
-
"knip": "^5.
|
|
44
|
-
"lefthook": "^1.
|
|
45
|
-
"prettier": "^3.
|
|
46
|
-
"typescript": "^5.
|
|
42
|
+
"@commitlint/cli": "^20.1.0",
|
|
43
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
44
|
+
"@types/node": "^22.18.10",
|
|
45
|
+
"eslint": "^9.37.0",
|
|
46
|
+
"knip": "^5.65.0",
|
|
47
|
+
"lefthook": "^1.13.6",
|
|
48
|
+
"prettier": "^3.6.2",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|
|
49
52
|
"eslint": "^9.17.0",
|