@viclafouch/eslint-config-viclafouch 4.17.1-beta.8 → 4.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.17.1-beta.8",
3
+ "version": "4.18.0",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -31,25 +31,25 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.26.0",
34
- "@babel/eslint-parser": "^7.25.9",
35
- "@next/eslint-plugin-next": "^15.1.0",
34
+ "@babel/eslint-parser": "^7.26.5",
35
+ "@next/eslint-plugin-next": "^15.1.5",
36
36
  "@total-typescript/ts-reset": "^0.6.1",
37
37
  "app-root-path": "^3.1.0",
38
38
  "babel-loader": "^9.2.1",
39
- "eslint-config-prettier": "^9.1.0",
39
+ "eslint-config-prettier": "^10.0.1",
40
40
  "eslint-plugin-import": "^2.31.0",
41
41
  "eslint-plugin-jsx-a11y": "^6.10.2",
42
- "eslint-plugin-prettier": "^5.2.1",
42
+ "eslint-plugin-prettier": "^5.2.3",
43
43
  "eslint-plugin-promise": "^7.2.1",
44
- "eslint-plugin-react": "^7.37.2",
44
+ "eslint-plugin-react": "^7.37.4",
45
45
  "eslint-plugin-react-hooks": "^5.1.0",
46
46
  "eslint-plugin-simple-import-sort": "^12.1.1",
47
47
  "eslint-plugin-testing-library": "^7.1.1",
48
48
  "get-tsconfig": "^4.8.1",
49
- "globals": "^15.13.0",
49
+ "globals": "^15.14.0",
50
50
  "prettier": ">= 3",
51
- "typescript-eslint": "^8.18.0",
52
- "@eslint/js": "^9.17.0",
51
+ "typescript-eslint": "^8.20.0",
52
+ "@eslint/js": "^9.18.0",
53
53
  "prettier-plugin-curly": "^0.3.1",
54
54
  "eslint": ">= 9",
55
55
  "typescript": ">= 5"
package/prettier.mjs CHANGED
@@ -1,12 +1,17 @@
1
- import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
1
+ import eslintConfigPrettier from 'eslint-config-prettier'
2
+ import eslintPluginPrettier from 'eslint-plugin-prettier'
2
3
 
3
4
  /**
4
5
  * @type {import("eslint").Linter.Config}
5
6
  */
6
7
  export default [
7
- eslintPluginPrettierRecommended,
8
8
  {
9
+ plugins: {
10
+ ...eslintConfigPrettier.plugins,
11
+ prettier: eslintPluginPrettier
12
+ },
9
13
  rules: {
14
+ ...eslintConfigPrettier.rules,
10
15
  'prettier/prettier': [
11
16
  'error',
12
17
  {
@@ -18,6 +23,7 @@ export default [
18
23
  jsxSingleQuote: false,
19
24
  trailingComma: 'none',
20
25
  endOfLine: 'auto',
26
+ usePrettierrc: false,
21
27
  bracketSameLine: false,
22
28
  arrowParens: 'always'
23
29
  }
package/rules/es6.mjs CHANGED
@@ -78,8 +78,10 @@ export default {
78
78
  'error',
79
79
  {
80
80
  restrictedNamedExports: [
81
- 'default', // Use `export default` to provide a default export
82
- 'then' // This will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
81
+ // Use `export default` to provide a default export
82
+ 'default',
83
+ // This will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
84
+ 'then'
83
85
  ]
84
86
  }
85
87
  ],
@@ -142,7 +142,11 @@ export default tseslint.config(
142
142
 
143
143
  // Disallow using code marked as @deprecated.
144
144
  // https://typescript-eslint.io/rules/no-deprecated
145
- '@typescript-eslint/no-deprecated': 'error'
145
+ '@typescript-eslint/no-deprecated': 'error',
146
+
147
+ // Disallow using the spread operator when it might cause unexpected behavior.
148
+ // https://typescript-eslint.io/rules/no-misused-spread/
149
+ '@typescript-eslint/no-misused-spread': 'error'
146
150
 
147
151
  // Prefer using nullish coalescing (??) over logical (||) when possible.
148
152
  // '@typescript-eslint/prefer-nullish-coalescing': 'error'