@pplancq/eslint-config 6.0.17 → 6.0.19
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 +28 -0
- package/README.md +1 -1
- package/bin/init.mjs +4 -4
- package/main.js +18 -18
- package/package.json +10 -10
- package/rules/base.js +509 -509
- package/rules/import.js +87 -87
- package/rules/playwright.js +55 -55
- package/rules/prettier.js +107 -107
- package/rules/react-jsx-a11y.js +70 -70
- package/rules/react.js +256 -256
- package/rules/typescript.js +157 -157
- package/rules/vitest.js +56 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 6.0.19 (2026-08-03)
|
|
2
|
+
|
|
3
|
+
### ♻️ Code Refactoring
|
|
4
|
+
|
|
5
|
+
- **dev-tools:** update arrow function parentheses for consistency ([0104ebf](https://github.com/pplancq/dev-tools/commit/0104ebf))
|
|
6
|
+
- **dev-tools:** update quotes to double quotes for consistency ([6b2d557](https://github.com/pplancq/dev-tools/commit/6b2d557))
|
|
7
|
+
|
|
8
|
+
### 📦 Dependencies
|
|
9
|
+
|
|
10
|
+
- **deps:** update dependency eslint-plugin-jest-dom to ^5.7.0 ([#1843](https://github.com/pplancq/dev-tools/pull/1843))
|
|
11
|
+
- **deps:** update dependency globals to ^17.8.0 ([#1845](https://github.com/pplancq/dev-tools/pull/1845))
|
|
12
|
+
- **deps:** update dependency eslint-plugin-playwright to ^2.11.0 ([#1844](https://github.com/pplancq/dev-tools/pull/1844))
|
|
13
|
+
|
|
14
|
+
### ❤️ Thank You
|
|
15
|
+
|
|
16
|
+
- Paul PLANCQ
|
|
17
|
+
|
|
18
|
+
## 6.0.18 (2026-07-28)
|
|
19
|
+
|
|
20
|
+
### 📦 Dependencies
|
|
21
|
+
|
|
22
|
+
- **deps:** update dependency @vitest/eslint-plugin to ^1.6.24 ([#1832](https://github.com/pplancq/dev-tools/pull/1832))
|
|
23
|
+
- **deps:** update typescript-eslint mono repo to ^8.65.0 ([#1830](https://github.com/pplancq/dev-tools/pull/1830))
|
|
24
|
+
- **deps:** update dependency @vitest/eslint-plugin to ^1.6.23 ([#1807](https://github.com/pplancq/dev-tools/pull/1807))
|
|
25
|
+
- **deps:** update dependency eslint-plugin-playwright to ^2.10.5 ([#1808](https://github.com/pplancq/dev-tools/pull/1808))
|
|
26
|
+
- **deps:** update dependency globals to ^17.7.0 ([#1800](https://github.com/pplancq/dev-tools/pull/1800))
|
|
27
|
+
- **deps:** update typescript-eslint mono repo to ^8.64.0 ([#1784](https://github.com/pplancq/dev-tools/pull/1784))
|
|
28
|
+
|
|
1
29
|
## @pplancq/eslint-config [6.0.17](https://github.com/pplancq/dev-tools/compare/@pplancq/eslint-config@6.0.16...@pplancq/eslint-config@6.0.17) (2026-06-15)
|
|
2
30
|
|
|
3
31
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Alternatively, you can create an `eslint.config.mjs` file in the root of your pr
|
|
|
30
30
|
|
|
31
31
|
```javascript
|
|
32
32
|
// eslint.config.mjs
|
|
33
|
-
import { defineConfig } from
|
|
33
|
+
import { defineConfig } from "@pplancq/eslint-config";
|
|
34
34
|
|
|
35
35
|
export default defineConfig({
|
|
36
36
|
enableReact: true,
|
package/bin/init.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { writeFileSync } from
|
|
2
|
+
import { writeFileSync } from "node:fs";
|
|
3
3
|
|
|
4
|
-
console.info(
|
|
4
|
+
console.info("Add eslint config in eslint.config.mjs");
|
|
5
5
|
|
|
6
6
|
writeFileSync(
|
|
7
|
-
|
|
7
|
+
"eslint.config.mjs",
|
|
8
8
|
`import { defineConfig } from '@pplancq/eslint-config';
|
|
9
9
|
|
|
10
10
|
export default defineConfig({
|
|
@@ -13,6 +13,6 @@ export default defineConfig({
|
|
|
13
13
|
});
|
|
14
14
|
`,
|
|
15
15
|
{
|
|
16
|
-
encoding:
|
|
16
|
+
encoding: "utf-8",
|
|
17
17
|
},
|
|
18
18
|
);
|
package/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable import/extensions */
|
|
2
|
-
import { baseRules } from
|
|
3
|
-
import { importRules } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { baseRules } from "./rules/base.js";
|
|
3
|
+
import { importRules } from "./rules/import.js";
|
|
4
|
+
import { playwrightRules } from "./rules/playwright.js";
|
|
5
|
+
import { prettierRules } from "./rules/prettier.js";
|
|
6
|
+
import { reactJsxA11yRules } from "./rules/react-jsx-a11y.js";
|
|
7
|
+
import { reactRules, reactTestRules, reactTypescriptRules } from "./rules/react.js";
|
|
8
|
+
import { typescriptRules } from "./rules/typescript.js";
|
|
9
|
+
import { vitestRules } from "./rules/vitest.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* define eslint flat config.
|
|
@@ -24,13 +24,13 @@ import { playwrightRules } from './rules/playwright.js';
|
|
|
24
24
|
* @returns {import('eslint').Linter.Config}
|
|
25
25
|
*/
|
|
26
26
|
export const defineConfig = ({
|
|
27
|
-
tsFiles = [
|
|
28
|
-
unitTestFiles = [
|
|
29
|
-
unitE2eFiles = [
|
|
27
|
+
tsFiles = ["**/*.ts?(x)"],
|
|
28
|
+
unitTestFiles = ["**/*.{test,spec,steps}.{js,jsx,ts,tsx}"],
|
|
29
|
+
unitE2eFiles = ["tests/**/*.{test,spec}.{js,jsx,ts,tsx}"],
|
|
30
30
|
enableReact = false,
|
|
31
31
|
enableVitest = false,
|
|
32
32
|
enablePlaywright = false,
|
|
33
|
-
enablePrettier =
|
|
33
|
+
enablePrettier = "off",
|
|
34
34
|
extendConfig = [],
|
|
35
35
|
} = {}) => {
|
|
36
36
|
typescriptRules.files = tsFiles;
|
|
@@ -39,8 +39,8 @@ export const defineConfig = ({
|
|
|
39
39
|
vitestRules.files = unitTestFiles;
|
|
40
40
|
playwrightRules.files = unitE2eFiles;
|
|
41
41
|
|
|
42
|
-
if (enablePrettier ===
|
|
43
|
-
prettierRules.rules[
|
|
42
|
+
if (enablePrettier === "disableStyleOnly") {
|
|
43
|
+
prettierRules.rules["prettier/prettier"] = "off";
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return [
|
|
@@ -51,14 +51,14 @@ export const defineConfig = ({
|
|
|
51
51
|
enableReact && reactRules,
|
|
52
52
|
enableReact && reactTypescriptRules,
|
|
53
53
|
enableReact && reactTestRules,
|
|
54
|
-
enablePrettier !==
|
|
54
|
+
enablePrettier !== "off" && prettierRules,
|
|
55
55
|
enableVitest && vitestRules,
|
|
56
56
|
enablePlaywright && playwrightRules,
|
|
57
57
|
{
|
|
58
|
-
files: [
|
|
58
|
+
files: ["eslint.config.*"],
|
|
59
59
|
rules: {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
"import/no-extraneous-dependencies": "off",
|
|
61
|
+
"import/no-default-export": "off",
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
...extendConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/eslint-config",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "pplancq eslint config",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"config"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
41
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
41
|
+
"@typescript-eslint/parser": "^8.65.0",
|
|
42
|
+
"@vitest/eslint-plugin": "^1.6.24",
|
|
43
43
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
44
44
|
"eslint-plugin-import": "^2.32.0",
|
|
45
|
-
"eslint-plugin-jest-dom": "^5.
|
|
45
|
+
"eslint-plugin-jest-dom": "^5.7.0",
|
|
46
46
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
47
|
-
"eslint-plugin-playwright": "^2.
|
|
47
|
+
"eslint-plugin-playwright": "^2.11.0",
|
|
48
48
|
"eslint-plugin-react": "^7.37.5",
|
|
49
49
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
50
50
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
51
|
-
"globals": "^17.
|
|
51
|
+
"globals": "^17.8.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"eslint": "^9.14.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"eslint": "^9.39.
|
|
67
|
+
"eslint": "^9.39.5",
|
|
68
68
|
"eslint-plugin-prettier": "^5.5.6",
|
|
69
|
-
"lint-staged": "^17.0
|
|
70
|
-
"prettier": "^3.
|
|
69
|
+
"lint-staged": "^17.2.0",
|
|
70
|
+
"prettier": "^3.9.6"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|