@vidispine/eslint-config-react 21.4.0-pre.1 → 22.1.0-pre.2
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/index.js +52 -8
- package/package.json +13 -10
package/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
|
-
'@vidispine/eslint-config-base',
|
|
4
3
|
'airbnb',
|
|
5
4
|
'airbnb/hooks',
|
|
6
5
|
'plugin:jsx-a11y/recommended',
|
|
7
|
-
'
|
|
8
|
-
'
|
|
6
|
+
'@vidispine/eslint-config-base',
|
|
7
|
+
'plugin:mdx/recommended',
|
|
9
8
|
],
|
|
9
|
+
settings: {
|
|
10
|
+
'mdx/code-blocks': true,
|
|
11
|
+
},
|
|
10
12
|
rules: {
|
|
11
13
|
'react-hooks/rules-of-hooks': 'error',
|
|
12
14
|
'react/jsx-filename-extension': [
|
|
@@ -15,18 +17,60 @@ module.exports = {
|
|
|
15
17
|
extensions: ['.js', '.jsx'],
|
|
16
18
|
},
|
|
17
19
|
],
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
+
'react/prop-types': [
|
|
21
|
+
2,
|
|
20
22
|
{
|
|
21
|
-
|
|
23
|
+
skipUndeclared: true,
|
|
22
24
|
},
|
|
23
25
|
],
|
|
24
|
-
'react/
|
|
26
|
+
'react/jsx-props-no-spreading': 'off',
|
|
27
|
+
'react/function-component-definition': [
|
|
25
28
|
2,
|
|
26
29
|
{
|
|
27
|
-
|
|
30
|
+
namedComponents: 'function-declaration',
|
|
31
|
+
unnamedComponents: 'arrow-function',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
// overrides (doesn't extend) base config
|
|
35
|
+
'import/order': [
|
|
36
|
+
'error',
|
|
37
|
+
{
|
|
38
|
+
groups: [
|
|
39
|
+
'builtin',
|
|
40
|
+
'external',
|
|
41
|
+
'parent',
|
|
42
|
+
'sibling',
|
|
43
|
+
'internal',
|
|
44
|
+
'index',
|
|
45
|
+
'object',
|
|
46
|
+
'type',
|
|
47
|
+
'unknown',
|
|
48
|
+
],
|
|
49
|
+
pathGroups: [
|
|
50
|
+
{
|
|
51
|
+
pattern: 'react',
|
|
52
|
+
group: 'builtin',
|
|
53
|
+
position: 'before',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
pattern: '@{material-ui,mui}/**',
|
|
57
|
+
group: 'external',
|
|
58
|
+
position: 'after',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
pattern: '@vidispine/**',
|
|
62
|
+
group: 'parent',
|
|
63
|
+
position: 'before',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
pathGroupsExcludedImportTypes: ['react'],
|
|
67
|
+
alphabetize: { order: 'asc', caseInsensitive: true },
|
|
68
|
+
'newlines-between': 'always',
|
|
28
69
|
},
|
|
29
70
|
],
|
|
30
71
|
},
|
|
31
72
|
plugins: ['react', 'react-hooks'],
|
|
73
|
+
parserOptions: {
|
|
74
|
+
ecmaVersion: 2020,
|
|
75
|
+
},
|
|
32
76
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.1.0-pre.2",
|
|
4
4
|
"homepage": "https://github.com/vidispine/vdt#readme",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "index.js",
|
|
@@ -18,22 +18,25 @@
|
|
|
18
18
|
"build": "echo 'No build script'"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@vidispine/eslint-config-base": "^
|
|
22
|
-
"eslint-config-airbnb": "^
|
|
23
|
-
"eslint-plugin-
|
|
24
|
-
"eslint-plugin-
|
|
25
|
-
"eslint-plugin-
|
|
21
|
+
"@vidispine/eslint-config-base": "^22.1.0-pre.2",
|
|
22
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
23
|
+
"eslint-plugin-import": "^2.25.4",
|
|
24
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
25
|
+
"eslint-plugin-mdx": "^1.16.0",
|
|
26
|
+
"eslint-plugin-react": "^7.28.0",
|
|
27
|
+
"eslint-plugin-react-hooks": "^4.3.0"
|
|
26
28
|
},
|
|
27
29
|
"peerDependencies": {
|
|
28
|
-
"eslint": "7.
|
|
30
|
+
"eslint": "^7.0.0 || ^8.0.0"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"prettier": "2.
|
|
33
|
+
"prettier": "^2.5.1"
|
|
32
34
|
},
|
|
33
35
|
"eslintConfig": {
|
|
34
36
|
"extends": [
|
|
35
37
|
"@vidispine/eslint-config-base"
|
|
36
38
|
]
|
|
37
39
|
},
|
|
38
|
-
"prettier": "@vidispine/prettier-config"
|
|
39
|
-
|
|
40
|
+
"prettier": "@vidispine/prettier-config",
|
|
41
|
+
"gitHead": "a7c62afaa356fc6d62c6a700297e74a07ce0d623"
|
|
42
|
+
}
|