@nihalgonsalves/esconfig 0.11.2 → 0.13.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.
@@ -1,5 +1,5 @@
1
- import type { config } from "typescript-eslint";
1
+ import type { defineConfig } from "eslint/config";
2
2
 
3
- declare const sharedConfig: ReturnType<typeof config>;
3
+ declare const sharedConfig: ReturnType<typeof defineConfig>;
4
4
 
5
5
  export default sharedConfig;
@@ -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 tseslint.config(
15
+ export default defineConfig(
16
16
  ...sharedConfig,
17
17
  {
18
18
  ignores: [
@@ -1,5 +1,5 @@
1
- import type { config } from "typescript-eslint";
1
+ import type { defineConfig } from "eslint/config";
2
2
 
3
- declare const sharedConfig: ReturnType<typeof config>;
3
+ declare const sharedConfig: ReturnType<typeof defineConfig>;
4
4
 
5
5
  export default sharedConfig;
@@ -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 tseslint.config(
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.11.2",
3
+ "version": "0.13.0",
4
4
  "description": "Shared ECMAScript Config (TS, Lint, Prettier)",
5
5
  "main": "index.js",
6
- "repository": "git@github.com:nihalgonsalves/esconfig.git",
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.7.0+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9",
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.22.0",
26
- "@vitest/eslint-plugin": "^1.1.37",
27
- "eslint-config-prettier": "^10.1.1",
28
- "eslint-plugin-import": "^2.31.0",
28
+ "@eslint/js": "^9.39.1",
29
+ "@vitest/eslint-plugin": "^1.4.3",
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.4",
32
- "eslint-plugin-react-compiler": "19.0.0-beta-3229e95-20250315",
33
- "eslint-plugin-react-hooks": "^5.2.0",
34
- "eslint-plugin-storybook": "^0.11.4",
35
- "eslint-plugin-testing-library": "^7.1.1",
36
- "typescript-eslint": "^8.26.1"
34
+ "eslint-plugin-react": "^7.37.5",
35
+ "eslint-plugin-react-compiler": "19.1.0-rc.2",
36
+ "eslint-plugin-react-hooks": "^7.0.1",
37
+ "eslint-plugin-storybook": "^10.0.7",
38
+ "eslint-plugin-testing-library": "^7.13.4",
39
+ "typescript-eslint": "^8.46.4"
37
40
  },
38
41
  "devDependencies": {
39
- "@commitlint/cli": "^19.8.0",
40
- "@commitlint/config-conventional": "^19.8.0",
41
- "@types/node": "^22.13.10",
42
- "eslint": "^9.22.0",
43
- "knip": "^5.46.0",
44
- "lefthook": "^1.11.3",
45
- "prettier": "^3.5.3",
46
- "typescript": "^5.8.2"
42
+ "@commitlint/cli": "^20.1.0",
43
+ "@commitlint/config-conventional": "^20.0.0",
44
+ "@types/node": "^22.19.1",
45
+ "eslint": "^9.39.1",
46
+ "knip": "^5.69.1",
47
+ "lefthook": "^2.0.4",
48
+ "prettier": "^3.6.2",
49
+ "typescript": "^5.9.3"
47
50
  },
48
51
  "peerDependencies": {
49
52
  "eslint": "^9.17.0",