@pob/eslint-plugin 58.0.2 → 59.2.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,26 @@
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
+ ## [59.2.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.1.2...v59.2.0) (2024-12-17)
7
+
8
+ ### Features
9
+
10
+ * **deps:** update typescript-eslint monorepo ([#706](https://github.com/christophehurpeau/eslint-config-pob/issues/706)) ([5c50d85](https://github.com/christophehurpeau/eslint-config-pob/commit/5c50d857bd2d4f93160cb70e594445a57f4d7fe9))
11
+
12
+ ### Bug Fixes
13
+
14
+ * **deps:** update typescript-eslint monorepo to v8.18.1 ([#714](https://github.com/christophehurpeau/eslint-config-pob/issues/714)) ([c78c411](https://github.com/christophehurpeau/eslint-config-pob/commit/c78c4114186e79e049d54a10e629ffa796dfa64a))
15
+
16
+ ## [59.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v58.1.0...v59.0.0) (2024-11-26)
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ * drop node 18
21
+
22
+ ### Miscellaneous Chores
23
+
24
+ * update dev deps and require node 20 ([cbe9fb1](https://github.com/christophehurpeau/eslint-config-pob/commit/cbe9fb15f719edb50251f925ff19b987a159b530))
25
+
6
26
  ## [58.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v58.0.1...v58.0.2) (2024-09-07)
7
27
 
8
28
  Note: no notable changes
package/lib/index.js CHANGED
@@ -4,7 +4,7 @@ import { loadRules } from "./loadRules.js";
4
4
 
5
5
  export default {
6
6
  rules: {
7
- ...(await loadRules()),
7
+ ...loadRules(),
8
8
  },
9
9
  configs: {
10
10
  base: baseConfig,
@@ -1,13 +1,14 @@
1
1
  import { RuleTester } from "eslint";
2
2
  import rule from "./forbid-non-native-fetch-import.js";
3
3
 
4
- const languageOptions = {
5
- ecmaVersion: 2018,
6
- sourceType: "module",
7
- };
8
-
9
- const ruleTester = new RuleTester({ languageOptions });
4
+ const ruleTester = new RuleTester({
5
+ languageOptions: {
6
+ ecmaVersion: 2018,
7
+ sourceType: "module",
8
+ },
9
+ });
10
10
 
11
+ // @ts-ignore
11
12
  ruleTester.run("forbid-non-native-fetch-import", rule, {
12
13
  valid: [
13
14
  {
@@ -17,6 +17,7 @@ const ruleTester = new RuleTester({
17
17
  },
18
18
  });
19
19
 
20
+ // @ts-ignore
20
21
  ruleTester.run("react-function-component-return-react-node", rule, {
21
22
  valid: [
22
23
  {
@@ -16,6 +16,8 @@ const ruleTester = new RuleTester({
16
16
  },
17
17
  },
18
18
  });
19
+
20
+ // @ts-ignore
19
21
  ruleTester.run("react-named-import", rule, {
20
22
  valid: [
21
23
  {
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line n/no-unsupported-features/node-builtins
1
2
  import { after, describe, it } from "node:test";
2
3
  // eslint-disable-next-line import/no-unresolved -- missing main field
3
4
  import { RuleTester } from "@typescript-eslint/rule-tester";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-plugin",
3
- "version": "58.0.2",
3
+ "version": "59.2.0",
4
4
  "description": "eslint plugin for react",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -13,7 +13,7 @@
13
13
  "homepage": "https://github.com/christophehurpeau/eslint-config-pob",
14
14
  "type": "module",
15
15
  "engines": {
16
- "node": ">=20.10.0"
16
+ "node": ">=20.9.0"
17
17
  },
18
18
  "sideEffects": false,
19
19
  "main": "./lib/index.js",
@@ -35,7 +35,7 @@
35
35
  "prettier": "@pob/root/prettier-config",
36
36
  "peerDependencies": {
37
37
  "eslint": "^9.9.0",
38
- "typescript": ">=5.2.2"
38
+ "typescript": ">=5.0.0 <5.8.0"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "typescript": {
@@ -43,14 +43,14 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@typescript-eslint/utils": "8.1.0",
46
+ "@typescript-eslint/utils": "8.18.1",
47
47
  "eslint-plugin-react": "^7.35.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@eslint/eslintrc": "3.1.0",
51
- "@typescript-eslint/rule-tester": "8.1.0",
52
- "eslint": "9.10.0",
53
- "typescript": "5.5.4",
54
- "typescript-eslint": "8.1.0"
50
+ "@eslint/eslintrc": "3.2.0",
51
+ "@typescript-eslint/rule-tester": "8.18.1",
52
+ "eslint": "9.17.0",
53
+ "typescript": "5.7.2",
54
+ "typescript-eslint": "8.18.1"
55
55
  }
56
56
  }