@viclafouch/eslint-config-viclafouch 2.3.4 → 3.1.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.js +19 -12
- package/package.json +27 -18
package/.eslintrc.js
CHANGED
|
@@ -5,17 +5,22 @@ module.exports = {
|
|
|
5
5
|
'plugin:react/recommended',
|
|
6
6
|
'plugin:react-hooks/recommended',
|
|
7
7
|
'plugin:jsx-a11y/recommended',
|
|
8
|
-
'plugin:prettier/recommended'
|
|
9
|
-
'prettier/react'
|
|
8
|
+
'plugin:prettier/recommended'
|
|
10
9
|
],
|
|
11
|
-
|
|
10
|
+
env: {
|
|
11
|
+
browser: true,
|
|
12
|
+
es6: true,
|
|
13
|
+
node: true
|
|
14
|
+
},
|
|
15
|
+
parser: '@babel/eslint-parser',
|
|
12
16
|
settings: {
|
|
13
17
|
react: {
|
|
14
18
|
version: 'detect'
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
parserOptions: {
|
|
18
|
-
|
|
22
|
+
requireConfigFile: false,
|
|
23
|
+
ecmaVersion: 'latest',
|
|
19
24
|
sourceType: 'module',
|
|
20
25
|
ecmaFeatures: {
|
|
21
26
|
jsx: true
|
|
@@ -24,6 +29,11 @@ module.exports = {
|
|
|
24
29
|
rules: {
|
|
25
30
|
'react/prop-types': 'off',
|
|
26
31
|
'simple-import-sort/imports': 'error',
|
|
32
|
+
'react/jsx-props-no-spreading': 0,
|
|
33
|
+
'react/function-component-definition': [
|
|
34
|
+
2,
|
|
35
|
+
{ namedComponents: 'arrow-function' }
|
|
36
|
+
],
|
|
27
37
|
'prettier/prettier': [
|
|
28
38
|
'error',
|
|
29
39
|
{
|
|
@@ -33,7 +43,9 @@ module.exports = {
|
|
|
33
43
|
tabWidth: 2,
|
|
34
44
|
jsxSingleQuote: false,
|
|
35
45
|
trailingComma: 'none',
|
|
36
|
-
|
|
46
|
+
endOfLine: 'auto',
|
|
47
|
+
bracketSameLine: false,
|
|
48
|
+
arrowParens: 'always'
|
|
37
49
|
}
|
|
38
50
|
]
|
|
39
51
|
},
|
|
@@ -47,7 +59,7 @@ module.exports = {
|
|
|
47
59
|
groups: [
|
|
48
60
|
// Packages. `react` related packages come first.
|
|
49
61
|
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
|
|
50
|
-
['^react', '^@?\\w'],
|
|
62
|
+
['^react', '^next', '^@?\\w'],
|
|
51
63
|
// Absolute imports and Relative imports.
|
|
52
64
|
[
|
|
53
65
|
'^(utils|services|hooks|hoc|types|contexts|dictionary|components)(/.*|$)',
|
|
@@ -60,10 +72,5 @@ module.exports = {
|
|
|
60
72
|
]
|
|
61
73
|
}
|
|
62
74
|
}
|
|
63
|
-
]
|
|
64
|
-
env: {
|
|
65
|
-
browser: true,
|
|
66
|
-
es6: true,
|
|
67
|
-
node: true
|
|
68
|
-
}
|
|
75
|
+
]
|
|
69
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -15,33 +15,42 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git+https://github.com/viclafouch/eslint-config-viclafouch.git"
|
|
17
17
|
},
|
|
18
|
+
"standard-version": {
|
|
19
|
+
"skip": {
|
|
20
|
+
"changelog": true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
18
23
|
"author": "Victor de la Fouchardiere <victor.delafouchardiere@gmail.com>",
|
|
19
24
|
"license": "MIT",
|
|
20
25
|
"homepage": "https://github.com/viclafouch/eslint-config-viclafouch#readme",
|
|
21
26
|
"peerDependencies": {
|
|
22
|
-
"babel
|
|
23
|
-
"eslint": "
|
|
24
|
-
"eslint
|
|
25
|
-
"eslint-
|
|
26
|
-
"eslint-plugin-
|
|
27
|
-
"eslint-plugin-
|
|
28
|
-
"eslint-plugin-react
|
|
27
|
+
"@babel/core": "7.16.0",
|
|
28
|
+
"@babel/eslint-parser": "7.16.3",
|
|
29
|
+
"eslint": "8.3.0",
|
|
30
|
+
"eslint-config-prettier": "^8.3.0",
|
|
31
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
32
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
33
|
+
"eslint-plugin-react": "^7.27.1",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
29
35
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
30
|
-
"prettier": "^2.
|
|
36
|
+
"prettier": "^2.5.0"
|
|
31
37
|
},
|
|
32
38
|
"devDependencies": {
|
|
33
|
-
"babel
|
|
34
|
-
"eslint": "
|
|
35
|
-
"eslint
|
|
36
|
-
"eslint-
|
|
37
|
-
"eslint-plugin-
|
|
38
|
-
"eslint-plugin-
|
|
39
|
-
"eslint-plugin-react
|
|
39
|
+
"@babel/core": "7.16.0",
|
|
40
|
+
"@babel/eslint-parser": "7.16.3",
|
|
41
|
+
"eslint": "8.3.0",
|
|
42
|
+
"eslint-config-prettier": "^8.3.0",
|
|
43
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
44
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
45
|
+
"eslint-plugin-react": "^7.27.1",
|
|
46
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
40
47
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
41
|
-
"prettier": "^2.
|
|
48
|
+
"prettier": "^2.5.0",
|
|
49
|
+
"standard-version": "9.3.2"
|
|
42
50
|
},
|
|
43
51
|
"scripts": {
|
|
44
52
|
"lint": "eslint .",
|
|
45
|
-
"lint:fix": "eslint --fix"
|
|
53
|
+
"lint:fix": "eslint --fix",
|
|
54
|
+
"release": "standard-version"
|
|
46
55
|
}
|
|
47
56
|
}
|