@viclafouch/eslint-config-viclafouch 3.9.0 → 3.9.1
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/.eslintrc-base.js +18 -3
- package/package.json +8 -8
package/.eslintrc-base.js
CHANGED
|
@@ -53,20 +53,35 @@ module.exports = {
|
|
|
53
53
|
sortShapeProp: true
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
|
-
|
|
56
|
+
curly: 2,
|
|
57
57
|
'arrow-body-style': ['error', 'always'],
|
|
58
58
|
'no-restricted-syntax': [
|
|
59
59
|
'error',
|
|
60
60
|
{
|
|
61
61
|
selector:
|
|
62
62
|
"JSXElement > JSXExpressionContainer > LogicalExpression[operator!='??']",
|
|
63
|
-
message: 'Please use ternary operator instead'
|
|
64
|
-
}
|
|
63
|
+
message: 'Please use ternary operator instead'
|
|
64
|
+
}
|
|
65
65
|
],
|
|
66
66
|
'react/function-component-definition': [
|
|
67
67
|
2,
|
|
68
68
|
{ namedComponents: 'arrow-function' }
|
|
69
69
|
],
|
|
70
|
+
// Prefer to have a convention for naming states
|
|
71
|
+
// e.g: [thing, setThing]
|
|
72
|
+
'react/hook-use-state': 2,
|
|
73
|
+
|
|
74
|
+
// Prevent the boolean true as prop value
|
|
75
|
+
// e.g: <MyComponent isValid /> instead of <MyComponent isValid={true} />
|
|
76
|
+
'react/jsx-boolean-value': 2,
|
|
77
|
+
|
|
78
|
+
// defaultProps is deprecated
|
|
79
|
+
'react/require-default-props': [
|
|
80
|
+
'error',
|
|
81
|
+
{
|
|
82
|
+
functions: 'defaultArguments'
|
|
83
|
+
}
|
|
84
|
+
],
|
|
70
85
|
'prettier/prettier': [
|
|
71
86
|
'error',
|
|
72
87
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"typescript": "^4.9.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "^7.21.
|
|
47
|
+
"@babel/core": "^7.21.5",
|
|
48
48
|
"@babel/eslint-parser": "^7.21.3",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
51
|
-
"eslint": "^8.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
50
|
+
"@typescript-eslint/parser": "^5.59.1",
|
|
51
|
+
"eslint": "^8.39.0",
|
|
52
52
|
"eslint-config-airbnb": "^19.0.4",
|
|
53
53
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
54
|
-
"eslint-config-prettier": "^8.
|
|
54
|
+
"eslint-config-prettier": "^8.8.0",
|
|
55
55
|
"eslint-plugin-import": "^2.27.5",
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
57
57
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"eslint-plugin-react": "^7.32.2",
|
|
60
60
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
61
61
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
62
|
-
"prettier": "^2.8.
|
|
62
|
+
"prettier": "^2.8.8",
|
|
63
63
|
"standard-version": "9.5.0",
|
|
64
|
-
"typescript": "^
|
|
64
|
+
"typescript": "^5.0.4"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"lint": "eslint .",
|