@pob/eslint-plugin 57.0.0 → 58.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v58.0.0...v58.0.1) (2024-08-25)
|
|
7
|
+
|
|
8
|
+
Note: no notable changes
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [58.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.1...v58.0.0) (2024-08-14)
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* update eslint v9
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* update eslint v9 ([6f8647f](https://github.com/christophehurpeau/eslint-config-pob/commit/6f8647f45589e9a9387bd38b9881fd2035ab32ad))
|
|
20
|
+
|
|
6
21
|
## [57.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v56.1.0...v57.0.0) (2024-08-11)
|
|
7
22
|
|
|
8
23
|
### ⚠ 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
|
|
4
|
+
const languageOptions = {
|
|
5
5
|
ecmaVersion: 2018,
|
|
6
6
|
sourceType: "module",
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
const ruleTester = new RuleTester({
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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": "
|
|
3
|
+
"version": "58.0.1",
|
|
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": "^
|
|
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": "
|
|
47
|
-
"eslint-plugin-react": "^7.
|
|
46
|
+
"@typescript-eslint/utils": "8.1.0",
|
|
47
|
+
"eslint-plugin-react": "^7.35.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@eslint/eslintrc": "
|
|
51
|
-
"@typescript-eslint/rule-tester": "
|
|
52
|
-
"eslint": "
|
|
53
|
-
"typescript": "5.5.4"
|
|
50
|
+
"@eslint/eslintrc": "3.1.0",
|
|
51
|
+
"@typescript-eslint/rule-tester": "8.1.0",
|
|
52
|
+
"eslint": "9.9.1",
|
|
53
|
+
"typescript": "5.5.4",
|
|
54
|
+
"typescript-eslint": "8.1.0"
|
|
54
55
|
}
|
|
55
56
|
}
|