@viclafouch/eslint-config-viclafouch 4.17.1-beta.4 → 4.17.1-beta.6
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 +7 -9
- package/rules/best-practices.mjs +1 -1
- package/rules/errors.mjs +1 -1
- package/rules/es6.mjs +1 -1
- package/rules/imports.mjs +1 -1
- package/rules/node.mjs +1 -1
- package/rules/react.mjs +2 -1
- package/rules/style.mjs +1 -5
- package/rules/typescript.mjs +3 -2
- package/rules/variables.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "4.17.1-beta.
|
|
3
|
+
"version": "4.17.1-beta.6",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -34,8 +34,6 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.25.9",
|
|
35
35
|
"@next/eslint-plugin-next": "^15.1.0",
|
|
36
36
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
38
|
-
"@typescript-eslint/parser": "^8.18.0",
|
|
39
37
|
"app-root-path": "^3.1.0",
|
|
40
38
|
"babel-loader": "^9.2.1",
|
|
41
39
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -49,10 +47,12 @@
|
|
|
49
47
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
50
48
|
"get-tsconfig": "^4.8.1",
|
|
51
49
|
"globals": "^15.13.0",
|
|
52
|
-
"prettier": "
|
|
50
|
+
"prettier": ">= 3",
|
|
51
|
+
"typescript-eslint": "^8.18.0",
|
|
52
|
+
"@eslint/js": "^9.17.0",
|
|
53
53
|
"prettier-plugin-curly": "^0.3.1",
|
|
54
|
-
"eslint": "
|
|
55
|
-
"typescript": "
|
|
54
|
+
"eslint": ">= 9",
|
|
55
|
+
"typescript": ">= 5"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"lint": "eslint .",
|
|
@@ -63,9 +63,7 @@
|
|
|
63
63
|
"publish:beta": "npm publish --tag beta"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@eslint/js": "^9.17.0",
|
|
67
66
|
"eslint": "^9.17.0",
|
|
68
|
-
"typescript": "^5.7.2"
|
|
69
|
-
"typescript-eslint": "^8.18.0"
|
|
67
|
+
"typescript": "^5.7.2"
|
|
70
68
|
}
|
|
71
69
|
}
|
package/rules/best-practices.mjs
CHANGED
package/rules/errors.mjs
CHANGED
package/rules/es6.mjs
CHANGED
package/rules/imports.mjs
CHANGED
package/rules/node.mjs
CHANGED
package/rules/react.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import globals from 'globals'
|
|
|
9
9
|
export default [
|
|
10
10
|
jsxA11y.flatConfigs.recommended,
|
|
11
11
|
{
|
|
12
|
+
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
|
|
12
13
|
name: 'react',
|
|
13
14
|
plugins: {
|
|
14
15
|
react: pluginReact
|
|
@@ -399,7 +400,7 @@ export default [
|
|
|
399
400
|
},
|
|
400
401
|
{
|
|
401
402
|
// JSX in .tsx files instead of .jsx
|
|
402
|
-
files: ['
|
|
403
|
+
files: ['**/*.{ts,tsx}'],
|
|
403
404
|
rules: {
|
|
404
405
|
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }]
|
|
405
406
|
}
|
package/rules/style.mjs
CHANGED
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export default {
|
|
5
5
|
name: 'style',
|
|
6
|
-
files: ['**/*.{js,mjs,cjs,
|
|
6
|
+
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
|
|
7
7
|
rules: {
|
|
8
8
|
// Enforce camelcase naming convention
|
|
9
9
|
// https://eslint.org/docs/latest/rules/camelcase
|
|
10
10
|
camelcase: 'error',
|
|
11
11
|
|
|
12
|
-
// Enforce a maximum number of lines per file
|
|
13
|
-
// https://eslint.org/docs/rules/max-lines
|
|
14
|
-
'max-lines': ['error', 350],
|
|
15
|
-
|
|
16
12
|
// Enforce or disallow capitalization of the first letter of a comment
|
|
17
13
|
// https://eslint.org/docs/rules/capitalized-comments
|
|
18
14
|
'capitalized-comments': ['error', 'always'],
|
package/rules/typescript.mjs
CHANGED
|
@@ -16,8 +16,9 @@ export default tseslint.config(
|
|
|
16
16
|
name: 'typescript',
|
|
17
17
|
languageOptions: {
|
|
18
18
|
parserOptions: {
|
|
19
|
-
projectService:
|
|
20
|
-
|
|
19
|
+
projectService: {
|
|
20
|
+
allowDefaultProject: ['*.js', '*.mjs']
|
|
21
|
+
}
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
settings: {
|