@viclafouch/eslint-config-viclafouch 4.16.0 → 4.17.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 +18 -18
- package/rules/typescript.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"typescript": "^5.5.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/core": "^7.
|
|
33
|
-
"@babel/eslint-parser": "^7.25.
|
|
34
|
-
"@next/eslint-plugin-next": "^
|
|
32
|
+
"@babel/core": "^7.26.0",
|
|
33
|
+
"@babel/eslint-parser": "^7.25.9",
|
|
34
|
+
"@next/eslint-plugin-next": "^15.0.4",
|
|
35
35
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
36
|
-
"@total-typescript/ts-reset": "^0.
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
38
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
+
"@total-typescript/ts-reset": "^0.6.1",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
38
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
39
39
|
"app-root-path": "^3.1.0",
|
|
40
|
-
"babel-loader": "^9.1
|
|
40
|
+
"babel-loader": "^9.2.1",
|
|
41
41
|
"eslint": "^8.57.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
|
-
"eslint-plugin-import": "^2.
|
|
44
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
43
|
+
"eslint-plugin-import": "^2.31.0",
|
|
44
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
45
45
|
"eslint-plugin-prettier": "^5.2.1",
|
|
46
|
-
"eslint-plugin-promise": "^7.
|
|
47
|
-
"eslint-plugin-react": "^7.
|
|
48
|
-
"eslint-plugin-react-hooks": "^
|
|
46
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
47
|
+
"eslint-plugin-react": "^7.37.2",
|
|
48
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
49
49
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
50
|
-
"eslint-plugin-testing-library": "^
|
|
51
|
-
"get-tsconfig": "^4.
|
|
52
|
-
"prettier": "^3.
|
|
53
|
-
"typescript": "^5.
|
|
54
|
-
"prettier-plugin-curly": "^0.
|
|
50
|
+
"eslint-plugin-testing-library": "^7.1.1",
|
|
51
|
+
"get-tsconfig": "^4.8.1",
|
|
52
|
+
"prettier": "^3.4.2",
|
|
53
|
+
"typescript": "^5.7.2",
|
|
54
|
+
"prettier-plugin-curly": "^0.3.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"lint": "eslint .",
|
package/rules/typescript.js
CHANGED
|
@@ -130,7 +130,15 @@ module.exports = {
|
|
|
130
130
|
|
|
131
131
|
// No more "as Record<any, any>" in Array.reduce initial value, use generics
|
|
132
132
|
// https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
133
|
-
'@typescript-eslint/prefer-reduce-type-parameter': 'error'
|
|
133
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
134
|
+
|
|
135
|
+
// Disallow duplicate constituents of union or intersection types.
|
|
136
|
+
// https://typescript-eslint.io/rules/no-duplicate-type-constituents
|
|
137
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
138
|
+
|
|
139
|
+
// Disallow using code marked as @deprecated.
|
|
140
|
+
// https://typescript-eslint.io/rules/no-deprecated
|
|
141
|
+
'@typescript-eslint/no-deprecated': 'error'
|
|
134
142
|
|
|
135
143
|
// Prefer using nullish coalescing (??) over logical (||) when possible.
|
|
136
144
|
// '@typescript-eslint/prefer-nullish-coalescing': 'error'
|