eslint-config-jc 2.1.1 → 2.1.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/package.json +20 -9
- package/rules/base.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-jc",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Josh-Cena's personal coding style",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -26,17 +26,28 @@
|
|
|
26
26
|
"./typescript": "./rules/typescript.js",
|
|
27
27
|
"./typescript-typecheck": "./rules/typescript-typecheck.js"
|
|
28
28
|
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"eslint-config-prettier": "^8.5.0"
|
|
31
|
+
},
|
|
29
32
|
"peerDependencies": {
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
31
|
-
"@typescript-eslint/parser": "^5.
|
|
32
|
-
"eslint": "^8.
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
34
|
+
"@typescript-eslint/parser": "^5.18.0",
|
|
35
|
+
"eslint": "^8.13.0",
|
|
33
36
|
"eslint-plugin-header": "^3.1.1",
|
|
34
|
-
"eslint-plugin-import": "^2.
|
|
37
|
+
"eslint-plugin-import": "^2.26.0",
|
|
35
38
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
36
|
-
"eslint-plugin-react": "^7.
|
|
37
|
-
"eslint-plugin-react-hooks": "^4.
|
|
39
|
+
"eslint-plugin-react": "^7.29.4",
|
|
40
|
+
"eslint-plugin-react-hooks": "^4.4.0"
|
|
38
41
|
},
|
|
39
|
-
"
|
|
40
|
-
"eslint-
|
|
42
|
+
"peerDependenciesMeta": {
|
|
43
|
+
"eslint-plugin-jsx-a11y": {
|
|
44
|
+
"optional": true
|
|
45
|
+
},
|
|
46
|
+
"eslint-plugin-react": {
|
|
47
|
+
"optional": true
|
|
48
|
+
},
|
|
49
|
+
"eslint-plugin-react-hooks": {
|
|
50
|
+
"optional": true
|
|
51
|
+
}
|
|
41
52
|
}
|
|
42
53
|
}
|
package/rules/base.js
CHANGED
|
@@ -159,7 +159,7 @@ module.exports = {
|
|
|
159
159
|
|
|
160
160
|
"no-compare-neg-zero": "error",
|
|
161
161
|
|
|
162
|
-
"no-cond-assign": "error",
|
|
162
|
+
"no-cond-assign": ["error", "always"],
|
|
163
163
|
|
|
164
164
|
// Fixable, so better report this. Prettier doesn't fix it all the time
|
|
165
165
|
"no-confusing-arrow": "error",
|
|
@@ -170,7 +170,7 @@ module.exports = {
|
|
|
170
170
|
// Also checked by TypeScript
|
|
171
171
|
"no-const-assign": "error",
|
|
172
172
|
|
|
173
|
-
"no-constant-condition": "error",
|
|
173
|
+
"no-constant-condition": ["error", { checkLoops: true }],
|
|
174
174
|
|
|
175
175
|
"no-constructor-return": "error",
|
|
176
176
|
|