@viclafouch/eslint-config-viclafouch 4.4.0 → 4.6.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/README.md +9 -9
- package/package.json +18 -18
- package/rules/typescript.js +8 -0
package/README.md
CHANGED
|
@@ -199,13 +199,13 @@ Be sure to add the prettier config at the end of your `extends` array.
|
|
|
199
199
|
|
|
200
200
|
```js
|
|
201
201
|
{
|
|
202
|
-
extends: [
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
]
|
|
202
|
+
"extends": [
|
|
203
|
+
"@viclafouch/eslint-config-viclafouch",
|
|
204
|
+
"@viclafouch/eslint-config-viclafouch/imports",
|
|
205
|
+
"@viclafouch/eslint-config-viclafouch/react",
|
|
206
|
+
"@viclafouch/eslint-config-viclafouch/hooks",
|
|
207
|
+
"@viclafouch/eslint-config-viclafouch/prettier" // be sure to be the last
|
|
208
|
+
]
|
|
209
209
|
}
|
|
210
210
|
```
|
|
211
211
|
|
|
@@ -219,7 +219,7 @@ Once you have done. You probably want your editor to lint and fix for you.
|
|
|
219
219
|
```json
|
|
220
220
|
{
|
|
221
221
|
"editor.codeActionsOnSave": {
|
|
222
|
-
"source.fixAll.eslint":
|
|
222
|
+
"source.fixAll.eslint": "explicit"
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
```
|
|
225
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -24,33 +24,33 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"homepage": "https://github.com/viclafouch/eslint-config-viclafouch#readme",
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"eslint": "^8.
|
|
28
|
-
"prettier": "^
|
|
29
|
-
"typescript": "^5.
|
|
27
|
+
"eslint": "^8.56.0",
|
|
28
|
+
"prettier": "^3.1.1",
|
|
29
|
+
"typescript": "^5.3.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/core": "^7.23.
|
|
33
|
-
"@babel/eslint-parser": "^7.
|
|
34
|
-
"@next/eslint-plugin-next": "^
|
|
35
|
-
"@rushstack/eslint-patch": "^1.
|
|
32
|
+
"@babel/core": "^7.23.7",
|
|
33
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
34
|
+
"@next/eslint-plugin-next": "^14.1.0",
|
|
35
|
+
"@rushstack/eslint-patch": "^1.7.0",
|
|
36
36
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
38
|
-
"@typescript-eslint/parser": "^6.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
38
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
39
39
|
"app-root-path": "^3.1.0",
|
|
40
40
|
"babel-loader": "^9.1.3",
|
|
41
|
-
"eslint": "^8.
|
|
42
|
-
"eslint-config-prettier": "^9.
|
|
43
|
-
"eslint-plugin-import": "^2.
|
|
44
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
45
|
-
"eslint-plugin-prettier": "^5.
|
|
41
|
+
"eslint": "^8.56.0",
|
|
42
|
+
"eslint-config-prettier": "^9.1.0",
|
|
43
|
+
"eslint-plugin-import": "^2.29.1",
|
|
44
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
45
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
46
46
|
"eslint-plugin-promise": "^6.1.1",
|
|
47
47
|
"eslint-plugin-react": "^7.33.2",
|
|
48
48
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
49
49
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
50
|
-
"eslint-plugin-testing-library": "^6.0
|
|
50
|
+
"eslint-plugin-testing-library": "^6.2.0",
|
|
51
51
|
"get-tsconfig": "^4.7.2",
|
|
52
|
-
"prettier": "^3.
|
|
53
|
-
"typescript": "^5.
|
|
52
|
+
"prettier": "^3.2.4",
|
|
53
|
+
"typescript": "^5.3.3"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"lint": "eslint .",
|
package/rules/typescript.js
CHANGED
|
@@ -114,6 +114,10 @@ module.exports = {
|
|
|
114
114
|
}
|
|
115
115
|
],
|
|
116
116
|
|
|
117
|
+
// No useless template literals
|
|
118
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-template-literals.md
|
|
119
|
+
'@typescript-eslint/no-useless-template-literals': 'error',
|
|
120
|
+
|
|
117
121
|
// Require consistently using T[] instead of Array<T>
|
|
118
122
|
// https://typescript-eslint.io/rules/array-type
|
|
119
123
|
'@typescript-eslint/array-type': 'error'
|
|
@@ -134,6 +138,10 @@ module.exports = {
|
|
|
134
138
|
// ]
|
|
135
139
|
},
|
|
136
140
|
overrides: [
|
|
141
|
+
{
|
|
142
|
+
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
143
|
+
files: ['./**/*.js']
|
|
144
|
+
},
|
|
137
145
|
{
|
|
138
146
|
files: ['*.ts?(x)'],
|
|
139
147
|
rules: {
|