@bigcommerce/eslint-config 2.3.1 → 2.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/configs/prettier.js +1 -0
- package/configs/react.js +8 -0
- package/configs/typescript.js +14 -0
- package/package.json +15 -15
package/configs/prettier.js
CHANGED
package/configs/react.js
CHANGED
|
@@ -17,6 +17,14 @@ module.exports = {
|
|
|
17
17
|
'react-hooks/rules-of-hooks': 'error',
|
|
18
18
|
'react/destructuring-assignment': 'error',
|
|
19
19
|
'react/display-name': 'off',
|
|
20
|
+
'react/jsx-curly-brace-presence': [
|
|
21
|
+
'error',
|
|
22
|
+
{
|
|
23
|
+
children: 'never',
|
|
24
|
+
propElementValues: 'always',
|
|
25
|
+
props: 'never',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
20
28
|
'react/jsx-fragments': ['error', 'syntax'],
|
|
21
29
|
'react/jsx-no-bind': [
|
|
22
30
|
'error',
|
package/configs/typescript.js
CHANGED
|
@@ -85,9 +85,22 @@ module.exports = {
|
|
|
85
85
|
modifiers: ['unused'],
|
|
86
86
|
selector: 'parameter',
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
format: null,
|
|
90
|
+
modifiers: ['requiresQuotes'],
|
|
91
|
+
selector: ['objectLiteralProperty', 'typeProperty'],
|
|
92
|
+
},
|
|
88
93
|
],
|
|
89
94
|
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
90
95
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
96
|
+
'@typescript-eslint/no-misused-promises': [
|
|
97
|
+
'error',
|
|
98
|
+
{
|
|
99
|
+
checksVoidReturn: {
|
|
100
|
+
attributes: false,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
],
|
|
91
104
|
'@typescript-eslint/no-namespace': [
|
|
92
105
|
'error',
|
|
93
106
|
{
|
|
@@ -147,6 +160,7 @@ module.exports = {
|
|
|
147
160
|
// @typescript-eslint version
|
|
148
161
|
camelcase: 'off',
|
|
149
162
|
'consistent-return': 'off',
|
|
163
|
+
'default-case': 'off',
|
|
150
164
|
'default-param-last': 'off',
|
|
151
165
|
'import/named': 'off',
|
|
152
166
|
'no-duplicate-imports': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Default ESLint configuration used at BigCommerce",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"directory": "packages/eslint-config"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@bigcommerce/eslint-plugin": "^1.1.
|
|
24
|
-
"@rushstack/eslint-patch": "^1.1.
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
26
|
-
"@typescript-eslint/parser": "^5.
|
|
27
|
-
"eslint-config-prettier": "^8.
|
|
28
|
-
"eslint-import-resolver-typescript": "^2.
|
|
23
|
+
"@bigcommerce/eslint-plugin": "^1.1.1",
|
|
24
|
+
"@rushstack/eslint-patch": "^1.1.3",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
26
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
27
|
+
"eslint-config-prettier": "^8.5.0",
|
|
28
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
29
29
|
"eslint-plugin-gettext": "^1.2.0",
|
|
30
|
-
"eslint-plugin-import": "^2.
|
|
31
|
-
"eslint-plugin-jest": "^
|
|
32
|
-
"eslint-plugin-jest-formatting": "^3.
|
|
33
|
-
"eslint-plugin-jsdoc": "^
|
|
30
|
+
"eslint-plugin-import": "^2.26.0",
|
|
31
|
+
"eslint-plugin-jest": "^26.1.5",
|
|
32
|
+
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
33
|
+
"eslint-plugin-jsdoc": "^39.2.9",
|
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
35
35
|
"eslint-plugin-prettier": "^4.0.0",
|
|
36
|
-
"eslint-plugin-react": "^7.
|
|
37
|
-
"eslint-plugin-react-hooks": "^4.
|
|
36
|
+
"eslint-plugin-react": "^7.29.4",
|
|
37
|
+
"eslint-plugin-react-hooks": "^4.5.0",
|
|
38
38
|
"eslint-plugin-switch-case": "^1.1.2",
|
|
39
|
-
"prettier": "^2.
|
|
39
|
+
"prettier": "^2.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "^17.0.2"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"optional": true
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "61e711dfc6069b7a813d938ad4e92004d2bad028"
|
|
54
54
|
}
|