eslint-config-jc 2.3.2 → 2.3.3
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/package.json +6 -6
- package/rules/base.js +4 -3
- package/rules/jsx.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-jc",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Josh-Cena's personal coding style",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"eslint-config-prettier": "^8.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
39
|
-
"@typescript-eslint/parser": "^5.
|
|
40
|
-
"eslint": "^8.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.32.0",
|
|
40
|
+
"eslint": "^8.21.0",
|
|
41
41
|
"eslint-plugin-header": "^3.1.1",
|
|
42
42
|
"eslint-plugin-import": "^2.26.0",
|
|
43
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
44
|
-
"eslint-plugin-react": "^7.30.
|
|
43
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
44
|
+
"eslint-plugin-react": "^7.30.1",
|
|
45
45
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
package/rules/base.js
CHANGED
|
@@ -168,8 +168,9 @@ module.exports = {
|
|
|
168
168
|
|
|
169
169
|
"no-cond-assign": ["error", "always"],
|
|
170
170
|
|
|
171
|
-
//
|
|
172
|
-
|
|
171
|
+
// This conflicts with Prettier, and syntax highlighting should be
|
|
172
|
+
// sufficient to catch this
|
|
173
|
+
"no-confusing-arrow": "off",
|
|
173
174
|
|
|
174
175
|
// In projects with a wrapped logger, this can be enabled
|
|
175
176
|
"no-console": 0,
|
|
@@ -529,7 +530,7 @@ module.exports = {
|
|
|
529
530
|
|
|
530
531
|
"no-var": "error",
|
|
531
532
|
|
|
532
|
-
"no-void": "error",
|
|
533
|
+
"no-void": ["error", { allowAsStatement: true }],
|
|
533
534
|
|
|
534
535
|
"no-warning-comments": "off",
|
|
535
536
|
|
package/rules/jsx.js
CHANGED