eslint-config-jc 4.2.0 → 4.3.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/package.json +11 -7
- package/rules/base.js +1 -1
- package/rules/regex.js +3 -1
- package/rules/typescript.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-jc",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Josh-Cena's personal coding style",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -36,18 +36,19 @@
|
|
|
36
36
|
"./typescript-typecheck": "./rules/typescript-typecheck.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"eslint-config-prettier": "^9.
|
|
39
|
+
"eslint-config-prettier": "^9.1.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
43
|
-
"@typescript-eslint/parser": "^
|
|
44
|
-
"eslint": "^8.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
43
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
44
|
+
"eslint": "^8.56.0",
|
|
45
45
|
"eslint-plugin-header": "^3.1.1",
|
|
46
|
-
"eslint-plugin-import": "^2.29.
|
|
46
|
+
"eslint-plugin-import": "^2.29.1",
|
|
47
47
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
48
|
+
"eslint-plugin-n": "^16.6.2",
|
|
48
49
|
"eslint-plugin-react": "^7.33.2",
|
|
49
50
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
50
|
-
"eslint-plugin-regexp": "^2.
|
|
51
|
+
"eslint-plugin-regexp": "^2.2.0"
|
|
51
52
|
},
|
|
52
53
|
"peerDependenciesMeta": {
|
|
53
54
|
"eslint-plugin-header": {
|
|
@@ -56,6 +57,9 @@
|
|
|
56
57
|
"eslint-plugin-jsx-a11y": {
|
|
57
58
|
"optional": true
|
|
58
59
|
},
|
|
60
|
+
"eslint-plugin-n": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
59
63
|
"eslint-plugin-react": {
|
|
60
64
|
"optional": true
|
|
61
65
|
},
|
package/rules/base.js
CHANGED
package/rules/regex.js
CHANGED
|
@@ -25,6 +25,8 @@ module.exports = {
|
|
|
25
25
|
|
|
26
26
|
"regexp/no-contradiction-with-assertion": "error",
|
|
27
27
|
|
|
28
|
+
// eslint-disable-next-line sort-keys
|
|
29
|
+
"no-control-regex": "off",
|
|
28
30
|
"regexp/no-control-character": "error",
|
|
29
31
|
|
|
30
32
|
"regexp/no-dupe-characters-character-class": "error",
|
|
@@ -152,7 +154,7 @@ module.exports = {
|
|
|
152
154
|
|
|
153
155
|
// eslint-disable-next-line sort-keys
|
|
154
156
|
"prefer-named-capture-group": "off",
|
|
155
|
-
"regexp/prefer-named-capture-group": "
|
|
157
|
+
"regexp/prefer-named-capture-group": "warn",
|
|
156
158
|
|
|
157
159
|
"regexp/prefer-named-replacement": "error",
|
|
158
160
|
|