@cto.af/eslint-config 0.1.7 → 0.1.8
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 +3 -0
- package/jsdoc.js +1 -0
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -55,6 +55,7 @@ module.exports = {
|
|
|
55
55
|
'no-irregular-whitespace': 'error',
|
|
56
56
|
'no-loss-of-precision': 'error',
|
|
57
57
|
'no-misleading-character-class': 'error',
|
|
58
|
+
'no-new-native-nonconstructor': 'error',
|
|
58
59
|
'no-new-symbol': 'error',
|
|
59
60
|
'no-obj-calls': 'error',
|
|
60
61
|
'no-promise-executor-return': 'error',
|
|
@@ -117,6 +118,7 @@ module.exports = {
|
|
|
117
118
|
'id-length': 'off', // Not needed
|
|
118
119
|
'id-match': 'off', // Not needed
|
|
119
120
|
'init-declarations': 'error',
|
|
121
|
+
'logical-assignment-operators': ['error', 'never'],
|
|
120
122
|
'max-classes-per-file': 'off', // No.
|
|
121
123
|
'max-depth': 'off', // No.
|
|
122
124
|
'max-lines': 'off', // No.
|
|
@@ -139,6 +141,7 @@ module.exports = {
|
|
|
139
141
|
'no-else-return': 'error',
|
|
140
142
|
'no-empty': 'error',
|
|
141
143
|
'no-empty-function': 'error',
|
|
144
|
+
'no-empty-static-block': 'error',
|
|
142
145
|
'no-eq-null': 'off', // I disagree with this one.
|
|
143
146
|
'no-eval': 'error',
|
|
144
147
|
'no-extend-native': 'error',
|
package/jsdoc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cto.af/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "hildjj's lint rules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "eslint -c index.js *.js",
|
|
8
|
-
"lint": "eslint . --ext js,cjs,mjs"
|
|
8
|
+
"lint": "eslint . --ext js,cjs,mjs",
|
|
9
|
+
"unused": "eslint-find-rules index.js -u && eslint-find-rules ava.js -u --no-core && eslint-find-rules jsdoc.js -u --no-core"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [
|
|
11
12
|
"lint"
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
"repository": "hildjj/ctoaf-eslint-config",
|
|
16
17
|
"peerDependencies": {
|
|
17
18
|
"eslint-plugin-ava": "^13.2.0",
|
|
18
|
-
"eslint-plugin-jsdoc": "^39.
|
|
19
|
+
"eslint-plugin-jsdoc": "^39.6.2",
|
|
19
20
|
"eslint-plugin-node": "^11.1.0"
|
|
20
21
|
},
|
|
21
22
|
"peerDependenciesMeta": {
|
|
@@ -27,11 +28,11 @@
|
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"eslint": "^8.
|
|
31
|
+
"eslint": "^8.28.0",
|
|
31
32
|
"eslint-find-rules": "4.1.0",
|
|
32
33
|
"eslint-plugin-ava": "^13.2.0",
|
|
33
34
|
"eslint-plugin-hildjj": "link:rules",
|
|
34
|
-
"eslint-plugin-jsdoc": "^39.
|
|
35
|
+
"eslint-plugin-jsdoc": "^39.6.2",
|
|
35
36
|
"eslint-plugin-node": "^11.1.0"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|