eslint-config-nodejs-pmb 0.3.5 → 0.3.6
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/depsHelper.js +1 -0
- package/package.json +8 -6
- package/rules.js +2 -0
package/depsHelper.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{ "name": "eslint-config-nodejs-pmb",
|
|
2
|
-
"version": "0.3.
|
|
2
|
+
"version": "0.3.6",
|
|
3
3
|
"description": "My favorite eslint rules",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
|
|
@@ -20,22 +20,24 @@
|
|
|
20
20
|
"directories": { "test": "test" },
|
|
21
21
|
"eslintConfig": { "extends": "." },
|
|
22
22
|
|
|
23
|
-
"engines": { "npm": ">=7.0.0", "node": ">=16.0.0" },
|
|
24
23
|
"dependencies": {
|
|
25
24
|
"@babel/eslint-parser": "^7.17.0",
|
|
26
|
-
"eslint-config-airbnb-base": "^15.0.0"
|
|
25
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
26
|
+
"eslint-plugin-regexp": "^1.15.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"absdir": "^1.0.6",
|
|
30
30
|
"eslint-plugin-json-light-pmb": "^1.0.7",
|
|
31
31
|
"eslint-plugin-n": "^15.2.4",
|
|
32
|
-
"p-fatal": "^0.1.
|
|
33
|
-
"safe-sortedjson": "^1.0.
|
|
32
|
+
"p-fatal": "^0.1.5",
|
|
33
|
+
"safe-sortedjson": "^1.0.8",
|
|
34
34
|
"usnam-pmb": "^0.2.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"eslint": "^8.13.0"
|
|
38
38
|
},
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
"engines": { "npm": ">=7.0.0", "node": ">=16.0.0" }
|
|
41
43
|
}
|
package/rules.js
CHANGED
|
@@ -65,6 +65,7 @@ const rules = {
|
|
|
65
65
|
'semi': ['error', 'always'],
|
|
66
66
|
'strict': ['error', 'safe'],
|
|
67
67
|
'unicode-bom': 'off',
|
|
68
|
+
'regexp/no-invalid-regexp': 'error',
|
|
68
69
|
|
|
69
70
|
// Ugly but unfortunately node v12+ native ESM forces us to:
|
|
70
71
|
'import/extensions': ['error', 'ignorePackages'],
|
|
@@ -112,6 +113,7 @@ const config = {
|
|
|
112
113
|
},
|
|
113
114
|
|
|
114
115
|
plugins: [
|
|
116
|
+
'regexp',
|
|
115
117
|
...configDeps.filter(mustStartWith('eslint-plugin-')),
|
|
116
118
|
],
|
|
117
119
|
|