@darajs/eslint-config 1.0.1 → 1.2.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/index.js +4 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -55,6 +55,9 @@ module.exports = {
|
|
|
55
55
|
camelcase: 'off',
|
|
56
56
|
|
|
57
57
|
'consistent-return': 'off',
|
|
58
|
+
|
|
59
|
+
// always require curly braces
|
|
60
|
+
curly: ['error', 'all'],
|
|
58
61
|
// We often use switch with i.e. reducer so default doesn't make sense
|
|
59
62
|
'default-case': 'off',
|
|
60
63
|
|
|
@@ -93,8 +96,8 @@ module.exports = {
|
|
|
93
96
|
],
|
|
94
97
|
'import/prefer-default-export': 'off',
|
|
95
98
|
'jsx-a11y/anchor-is-valid': ['error', { components: [] }],
|
|
99
|
+
'no-continue': 'off',
|
|
96
100
|
'no-inner-declarations': 'off',
|
|
97
|
-
|
|
98
101
|
'no-param-reassign': ['error', { props: false }],
|
|
99
102
|
|
|
100
103
|
'no-plusplus': 'off',
|
|
@@ -125,8 +128,6 @@ module.exports = {
|
|
|
125
128
|
|
|
126
129
|
radix: ['error', 'as-needed'],
|
|
127
130
|
|
|
128
|
-
// causes issues when using `useDeepCompare` so we can't use it
|
|
129
|
-
'react-hooks/exhaustive-deps': 'off',
|
|
130
131
|
'react/destructuring-assignment': 'off',
|
|
131
132
|
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
|
|
132
133
|
'react/jsx-key': ['error', { checkFragmentShorthand: true }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/eslint-config",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Dara ESLint configuration",
|
|
5
5
|
"author": "Krzysztof Bielikowicz <krzysztof@causalens.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"prettier": "@darajs/prettier-config",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@darajs/prettier-config": "^1.0
|
|
13
|
+
"@darajs/prettier-config": "^1.2.0",
|
|
14
14
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
15
15
|
"@typescript-eslint/parser": "^6.0.0",
|
|
16
16
|
"eslint": "^7.5.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
23
23
|
"eslint-plugin-prettier": "^4.0.0",
|
|
24
24
|
"eslint-plugin-react": "^7.21.5",
|
|
25
|
-
"eslint-plugin-react-hooks": "^
|
|
25
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
26
26
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
27
27
|
"eslint-plugin-typescript-sort-keys": "^2.0.0",
|
|
28
28
|
"prettier": "2.4.1",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7114e4199b12f7f4c10723d34a7dffc24cb6d002"
|
|
35
35
|
}
|