@pob/eslint-plugin 57.0.0 → 58.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [58.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.1...v58.0.0) (2024-08-14)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * update eslint v9
11
+
12
+ ### Features
13
+
14
+ * update eslint v9 ([6f8647f](https://github.com/christophehurpeau/eslint-config-pob/commit/6f8647f45589e9a9387bd38b9881fd2035ab32ad))
15
+
6
16
  ## [57.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v56.1.0...v57.0.0) (2024-08-11)
7
17
 
8
18
  ### ⚠ BREAKING CHANGES
@@ -1,12 +1,12 @@
1
1
  import { RuleTester } from "eslint";
2
2
  import rule from "./forbid-non-native-fetch-import.js";
3
3
 
4
- const parserOptions = {
4
+ const languageOptions = {
5
5
  ecmaVersion: 2018,
6
6
  sourceType: "module",
7
7
  };
8
8
 
9
- const ruleTester = new RuleTester({ parserOptions });
9
+ const ruleTester = new RuleTester({ languageOptions });
10
10
 
11
11
  ruleTester.run("forbid-non-native-fetch-import", rule, {
12
12
  valid: [
@@ -1,14 +1,18 @@
1
1
  import { join } from "node:path";
2
+ // eslint-disable-next-line import/no-unresolved
3
+ import { parser } from "typescript-eslint";
2
4
  import rule from "./react-function-component-return-react-node.js";
3
5
  import { RuleTester } from "./test-utils/RuleTester.js";
4
6
 
5
7
  const ruleTester = new RuleTester({
6
- parser: "@typescript-eslint/parser",
7
- parserOptions: {
8
- tsconfigRootDir: join(import.meta.dirname, "../fixtures"),
9
- project: "./tsconfig.json",
10
- ecmaFeatures: {
11
- jsx: true,
8
+ languageOptions: {
9
+ parser,
10
+ parserOptions: {
11
+ tsconfigRootDir: join(import.meta.dirname, "../fixtures"),
12
+ project: "./tsconfig.json",
13
+ ecmaFeatures: {
14
+ jsx: true,
15
+ },
12
16
  },
13
17
  },
14
18
  });
@@ -1,14 +1,18 @@
1
1
  import { join } from "node:path";
2
+ // eslint-disable-next-line import/no-unresolved
3
+ import { parser } from "typescript-eslint";
2
4
  import rule from "./react-named-import.js";
3
5
  import { RuleTester } from "./test-utils/RuleTester.js";
4
6
 
5
7
  const ruleTester = new RuleTester({
6
- parser: "@typescript-eslint/parser",
7
- parserOptions: {
8
- tsconfigRootDir: join(import.meta.dirname, "../fixtures"),
9
- project: "./tsconfig.json",
10
- ecmaFeatures: {
11
- jsx: true,
8
+ languageOptions: {
9
+ parser,
10
+ parserOptions: {
11
+ tsconfigRootDir: join(import.meta.dirname, "../fixtures"),
12
+ project: "./tsconfig.json",
13
+ ecmaFeatures: {
14
+ jsx: true,
15
+ },
12
16
  },
13
17
  },
14
18
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-plugin",
3
- "version": "57.0.0",
3
+ "version": "58.0.0",
4
4
  "description": "eslint plugin for react",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -34,7 +34,7 @@
34
34
  "pob": {},
35
35
  "prettier": "@pob/root/prettier-config",
36
36
  "peerDependencies": {
37
- "eslint": "^8.39.0",
37
+ "eslint": "^9.9.0",
38
38
  "typescript": ">=5.2.2"
39
39
  },
40
40
  "peerDependenciesMeta": {
@@ -43,13 +43,14 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@typescript-eslint/utils": "6.21.0",
47
- "eslint-plugin-react": "^7.33.2"
46
+ "@typescript-eslint/utils": "8.1.0",
47
+ "eslint-plugin-react": "^7.35.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@eslint/eslintrc": "2.1.4",
51
- "@typescript-eslint/rule-tester": "6.21.0",
52
- "eslint": "8.57.0",
53
- "typescript": "5.5.4"
50
+ "@eslint/eslintrc": "3.1.0",
51
+ "@typescript-eslint/rule-tester": "8.1.0",
52
+ "eslint": "9.9.0",
53
+ "typescript": "5.5.4",
54
+ "typescript-eslint": "8.1.0"
54
55
  }
55
56
  }