@pplancq/eslint-config 1.0.0 → 2.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
@@ -1,3 +1,19 @@
1
+ ## @pplancq/eslint-config [2.0.0](https://github.com/pplancq/dev-tools/compare/@pplancq/eslint-config@1.0.0...@pplancq/eslint-config@2.0.0) (2024-03-12)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * **eslint-config:** The default configuration no longer supports the eslint-plugin-prettier plugin.\
7
+ You must now install prettier and eslint-plugin-prettier separately and use the alternative configuration.\
8
+ Use prettier configuration, add `"eslintConfig": { "extends": ["@pplancq/eslint-config/prettier"] }` to your `package.json`.
9
+ * **eslint-config:** Bumps ESLint ^8.55.0 to ^8.57.0 the minimum requirements
10
+ * **eslint-config:** Bumps Prettier ^3.1.1 to ^3.2.5 the minimum requirements
11
+
12
+ ### Features
13
+
14
+ * **eslint-config:** bump ESLint and Prettier minimum version requirements ([24f920f](https://github.com/pplancq/dev-tools/commit/24f920ff481b05b2c64541e54242adb5f598beb2))
15
+ * **eslint-config:** prettier made fully optional ([dff82e3](https://github.com/pplancq/dev-tools/commit/dff82e30a738a65c762e77cc49de8bca15981d08))
16
+
1
17
  ## @pplancq/eslint-config 1.0.0 (2024-02-05)
2
18
 
3
19
 
package/README.md CHANGED
@@ -23,12 +23,12 @@ npx init-eslint-config
23
23
  ### @pplancq/eslint-config/react
24
24
 
25
25
  To use, add `"eslintConfig": { "extends": ["@pplancq/eslint-config/react"] }` to your `package.json`.\
26
- This configuration enables the rules of base, typescript, prettier, react and testing-library files.
26
+ This configuration enables the rules of base, typescript, react and testing-library files.
27
27
 
28
28
  ### @pplancq/eslint-config/node
29
29
 
30
30
  To use, add `"eslintConfig": { "extends": ["@pplancq/eslint-config/node"] }` to your `package.json`.\
31
- This configuration enables the rules of base, typescript and prettier files.
31
+ This configuration enables the rules of base and typescript files.
32
32
 
33
33
  ### @pplancq/eslint-config/vitest
34
34
 
@@ -39,3 +39,14 @@ This configuration enables the rules of vitest file.
39
39
 
40
40
  To use, add `"eslintConfig": { "extends": ["@pplancq/eslint-config/jest"] }` to your `package.json`.\
41
41
  This configuration enables the rules of jest file.
42
+
43
+ ### @pplancq/eslint-config/prettier
44
+
45
+ To use, add `"eslintConfig": { "extends": ["@pplancq/eslint-config/prettier"] }` to your `package.json`.\
46
+ This configuration enables the rules of prettier file.
47
+
48
+ need add package
49
+
50
+ ```shell
51
+ npm install --save-dev prettier eslint-plugin-prettier
52
+ ```
package/node.js CHANGED
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- extends: ['./rules/base.js', './rules/typescript.js', './rules/prettier.js'].map(require.resolve),
2
+ extends: ['./rules/base.js', './rules/typescript.js'].map(require.resolve),
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "description": "pplancq eslint config",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -16,7 +16,8 @@
16
16
  "./node": "./node.js",
17
17
  "./react": "./react.js",
18
18
  "./jest": "./jest.js",
19
- "./vitest": "./vitest.js"
19
+ "./vitest": "./vitest.js",
20
+ "./prettier": "./prettier.js"
20
21
  },
21
22
  "bin": {
22
23
  "init-eslint-config": "./bin/init.js"
@@ -26,8 +27,8 @@
26
27
  "config"
27
28
  ],
28
29
  "dependencies": {
29
- "@typescript-eslint/eslint-plugin": "^6.14.0",
30
- "@typescript-eslint/parser": "^6.14.0",
30
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
31
+ "@typescript-eslint/parser": "^7.1.1",
31
32
  "eslint-config-airbnb": "^19.0.4",
32
33
  "eslint-config-prettier": "^9.1.0",
33
34
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -36,20 +37,23 @@
36
37
  "eslint-plugin-jest-dom": "^5.1.0",
37
38
  "eslint-plugin-jest-extended": "^2.0.0",
38
39
  "eslint-plugin-jsx-a11y": "^6.8.0",
39
- "eslint-plugin-prettier": "^5.0.1",
40
- "eslint-plugin-react": "^7.33.2",
40
+ "eslint-plugin-react": "^7.34.0",
41
41
  "eslint-plugin-react-hooks": "^4.6.0",
42
42
  "eslint-plugin-testing-library": "^6.2.0",
43
- "eslint-plugin-vitest": "^0.3.17",
43
+ "eslint-plugin-vitest": "^0.3.25",
44
44
  "eslint-plugin-vitest-globals": "^1.4.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "prettier": "^3.1.1",
48
- "eslint": "^8.55.0"
47
+ "eslint": "^8.57.0",
48
+ "eslint-plugin-prettier": "^5.0.1",
49
+ "prettier": "^3.2.5"
49
50
  },
50
51
  "peerDependenciesMeta": {
51
52
  "prettier": {
52
53
  "optional": true
54
+ },
55
+ "eslint-plugin-prettier": {
56
+ "optional": true
53
57
  }
54
58
  },
55
59
  "volta": {
package/prettier.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ extends: ['./rules/prettier.js'].map(require.resolve),
3
+ };
package/react.js CHANGED
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- extends: ['./rules/react.js', './rules/prettier.js'].map(require.resolve),
2
+ extends: ['./rules/react.js'].map(require.resolve),
3
3
  };