@pplancq/eslint-config 5.0.9 → 5.0.11
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 +15 -0
- package/README.md +4 -1
- package/package.json +8 -7
- package/rules/base.js +104 -104
- package/rules/prettier.js +2 -1
- package/rules/react-jsx-a11y.js +25 -25
- package/rules/react.js +59 -60
- package/rules/typescript.js +35 -35
- package/rules/vitest.js +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## @pplancq/eslint-config [5.0.11](https://github.com/pplancq/dev-tools/compare/@pplancq/eslint-config@5.0.10...@pplancq/eslint-config@5.0.11) (2025-10-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **deps:** update dependency @vitest/eslint-plugin to ^1.3.24 ([6754a44](https://github.com/pplancq/dev-tools/commit/6754a44c99ceaee884d5d3ce2a3f0d412fcb7e44))
|
|
6
|
+
* **deps:** update typescript-eslint mono repo to ^8.46.2 ([99ccc89](https://github.com/pplancq/dev-tools/commit/99ccc89a702aac78af77ea23f136ef34d49e6f9f))
|
|
7
|
+
|
|
8
|
+
## @pplancq/eslint-config [5.0.10](https://github.com/pplancq/dev-tools/compare/@pplancq/eslint-config@5.0.9...@pplancq/eslint-config@5.0.10) (2025-10-20)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **deps:** update dependency @vitest/eslint-plugin to ^1.3.20 ([edd4518](https://github.com/pplancq/dev-tools/commit/edd45182558fd77d51383464938fa232114c7b62))
|
|
13
|
+
* **deps:** update dependency eslint-plugin-testing-library to ^7.13.3 ([4277808](https://github.com/pplancq/dev-tools/commit/42778087d7f72061338af80c6e9a785abffd251c))
|
|
14
|
+
* **deps:** update typescript-eslint mono repo to ^8.46.1 ([c32542d](https://github.com/pplancq/dev-tools/commit/c32542d2beae2008c47cf461a5200ff76dd35753))
|
|
15
|
+
|
|
1
16
|
## @pplancq/eslint-config [5.0.9](https://github.com/pplancq/dev-tools/compare/@pplancq/eslint-config@5.0.8...@pplancq/eslint-config@5.0.9) (2025-10-13)
|
|
2
17
|
|
|
3
18
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ The following options can be passed to the `defineConfig` function. All options
|
|
|
49
49
|
| unitE2eFiles | ['tests/**/*.{test,spec}.{js,jsx,ts,tsx}'] | Patterns for end-to-end (E2E) test files (ex: Playwright) |
|
|
50
50
|
| enableReact | false | Enables rules for React and Testing Library files |
|
|
51
51
|
| enableVitest | false | Enables rules for Vitest files |
|
|
52
|
-
| enableJest | false | Enables rules for Jest files |
|
|
53
52
|
| enablePlaywright | false | Enables rules for Playwright E2E test files |
|
|
54
53
|
| enablePrettier | 'off' | 'off' disables Prettier rules<br/>'on' enables Prettier rules<br/>'disableStyleOnly' enables Prettier rules but disables the 'prettier/prettier' rule, not using Prettier CLI for formatting your code |
|
|
55
54
|
| extendConfig | [] | Extends the ESLint configuration |
|
|
@@ -62,6 +61,10 @@ If you set `enablePrettier: 'on'`, you will need to install the following packag
|
|
|
62
61
|
npm install --save-dev prettier eslint-plugin-prettier
|
|
63
62
|
```
|
|
64
63
|
|
|
64
|
+
## Rules Documentation
|
|
65
|
+
|
|
66
|
+
For a complete list of all active ESLint rules in each configuration, please refer to the [Rules Documentation](./docs/rules.md).
|
|
67
|
+
|
|
65
68
|
## Migration
|
|
66
69
|
|
|
67
70
|
If you are upgrading from version 3 to version 4 of `@pplancq/eslint-config`, please refer to the [Migration Guide](./MIGRATION.md#migration-guide-pplancqeslint-config-v3-to-v4) for detailed instructions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/eslint-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "pplancq eslint config",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"directory": "packages/eslint-config"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
+
"docs:generate": "node scripts/generate-docs.mjs",
|
|
13
14
|
"lint:eslint": "eslint \"**/*.{js,mjs}\"",
|
|
14
15
|
"lint:eslint:fix": "eslint \"**/*.{js,mjs}\" --fix",
|
|
15
16
|
"lint:prettier": "prettier \"**/*.!(js|mjs)\" --check --ignore-unknown",
|
|
@@ -35,9 +36,9 @@
|
|
|
35
36
|
"config"
|
|
36
37
|
],
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
39
|
-
"@typescript-eslint/parser": "^8.46.
|
|
40
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
40
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
41
|
+
"@vitest/eslint-plugin": "^1.3.24",
|
|
41
42
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
42
43
|
"eslint-plugin-import": "^2.32.0",
|
|
43
44
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"eslint-plugin-playwright": "^2.2.2",
|
|
46
47
|
"eslint-plugin-react": "^7.37.5",
|
|
47
48
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
48
|
-
"eslint-plugin-testing-library": "^7.13.
|
|
49
|
+
"eslint-plugin-testing-library": "^7.13.3",
|
|
49
50
|
"globals": "^16.4.0"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
@@ -62,9 +63,9 @@
|
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
|
-
"eslint": "^9.
|
|
66
|
+
"eslint": "^9.38.0",
|
|
66
67
|
"eslint-plugin-prettier": "^5.5.4",
|
|
67
|
-
"lint-staged": "^16.2.
|
|
68
|
+
"lint-staged": "^16.2.6",
|
|
68
69
|
"prettier": "^3.6.2"
|
|
69
70
|
},
|
|
70
71
|
"engines": {
|