@mscharley/eslint-config 1.6.1 → 1.7.1
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/CHANGELOG.json +64 -0
- package/CHANGELOG.md +31 -1
- package/README.md +1 -1
- package/eslint.json +17 -8
- package/package.json +14 -14
- package/typescript.json +27 -17
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mscharley/eslint-config",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.7.1",
|
|
6
|
+
"tag": "@mscharley/eslint-config_v1.7.1",
|
|
7
|
+
"date": "Tue, 25 Jan 2022 14:41:46 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.1`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.1`"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"version": "1.7.0",
|
|
21
|
+
"tag": "@mscharley/eslint-config_v1.7.0",
|
|
22
|
+
"date": "Fri, 10 Dec 2021 13:24:54 GMT",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"comment": "fix: add tests for styling and reasonings why"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"minor": [
|
|
30
|
+
{
|
|
31
|
+
"comment": "feat: bump to typescript-eslint 5.x"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"dependency": [
|
|
35
|
+
{
|
|
36
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.0`"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.0`"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"version": "1.6.3",
|
|
46
|
+
"tag": "@mscharley/eslint-config_v1.6.3",
|
|
47
|
+
"date": "Thu, 16 Sep 2021 18:50:52 GMT",
|
|
48
|
+
"comments": {
|
|
49
|
+
"patch": [
|
|
50
|
+
{
|
|
51
|
+
"comment": "fix: also ignore unused args"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"version": "1.6.2",
|
|
58
|
+
"tag": "@mscharley/eslint-config_v1.6.2",
|
|
59
|
+
"date": "Wed, 15 Sep 2021 12:36:38 GMT",
|
|
60
|
+
"comments": {
|
|
61
|
+
"patch": [
|
|
62
|
+
{
|
|
63
|
+
"comment": "fix(eslint): configure no-unused-vars"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
4
68
|
{
|
|
5
69
|
"version": "1.6.1",
|
|
6
70
|
"tag": "@mscharley/eslint-config_v1.6.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
# Change Log - @mscharley/eslint-config
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 25 Jan 2022 14:41:46 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.7.1
|
|
6
|
+
Tue, 25 Jan 2022 14:41:46 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 1.7.0
|
|
11
|
+
Fri, 10 Dec 2021 13:24:54 GMT
|
|
12
|
+
|
|
13
|
+
### Minor changes
|
|
14
|
+
|
|
15
|
+
- feat: bump to typescript-eslint 5.x
|
|
16
|
+
|
|
17
|
+
### Patches
|
|
18
|
+
|
|
19
|
+
- fix: add tests for styling and reasonings why
|
|
20
|
+
|
|
21
|
+
## 1.6.3
|
|
22
|
+
Thu, 16 Sep 2021 18:50:52 GMT
|
|
23
|
+
|
|
24
|
+
### Patches
|
|
25
|
+
|
|
26
|
+
- fix: also ignore unused args
|
|
27
|
+
|
|
28
|
+
## 1.6.2
|
|
29
|
+
Wed, 15 Sep 2021 12:36:38 GMT
|
|
30
|
+
|
|
31
|
+
### Patches
|
|
32
|
+
|
|
33
|
+
- fix(eslint): configure no-unused-vars
|
|
4
34
|
|
|
5
35
|
## 1.6.1
|
|
6
36
|
Wed, 15 Sep 2021 11:43:56 GMT
|
package/README.md
CHANGED
|
@@ -58,4 +58,4 @@ module.exports = {
|
|
|
58
58
|
|
|
59
59
|
[gh-contrib]: https://github.com/mscharley/node-presets/graphs/contributors
|
|
60
60
|
[gh-issues]: https://github.com/mscharley/node-presets/issues
|
|
61
|
-
[license]: https://github.com/mscharley/node-presets/blob/
|
|
61
|
+
[license]: https://github.com/mscharley/node-presets/blob/main/LICENSE
|
package/eslint.json
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"eslint:recommended",
|
|
4
|
-
"./prettier"
|
|
5
|
-
],
|
|
2
|
+
"extends": ["eslint:recommended", "./prettier"],
|
|
6
3
|
"parser": "espree",
|
|
7
4
|
"env": {
|
|
8
5
|
"commonjs": true,
|
|
@@ -53,7 +50,10 @@
|
|
|
53
50
|
"ignoreArrayIndexes": true
|
|
54
51
|
}
|
|
55
52
|
],
|
|
56
|
-
"no-multi-spaces": [
|
|
53
|
+
"no-multi-spaces": [
|
|
54
|
+
"error",
|
|
55
|
+
{ "exceptions": { "VariableDeclarator": true } }
|
|
56
|
+
],
|
|
57
57
|
"no-multi-str": "error",
|
|
58
58
|
"no-new": "error",
|
|
59
59
|
"no-new-func": "error",
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
"error",
|
|
68
68
|
{
|
|
69
69
|
"selector": "SequenceExpression",
|
|
70
|
-
"message":
|
|
71
|
-
"The comma operator is confusing and a common mistake. Don’t use it!"
|
|
70
|
+
"message": "The comma operator is confusing and a common mistake. Don’t use it!"
|
|
72
71
|
}
|
|
73
72
|
],
|
|
74
73
|
"no-return-assign": ["error", "always"],
|
|
@@ -79,6 +78,13 @@
|
|
|
79
78
|
"no-template-curly-in-string": "warn",
|
|
80
79
|
"no-throw-literal": "error",
|
|
81
80
|
"no-unexpected-multiline": "error",
|
|
81
|
+
"no-unused-vars": [
|
|
82
|
+
"warn",
|
|
83
|
+
{
|
|
84
|
+
"argsIgnorePattern": "^_",
|
|
85
|
+
"varsIgnorePattern": "^_"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
82
88
|
"no-use-before-define": "error",
|
|
83
89
|
"no-useless-call": "error",
|
|
84
90
|
"no-useless-computed-key": "error",
|
|
@@ -106,7 +112,10 @@
|
|
|
106
112
|
"require-await": "error",
|
|
107
113
|
"require-unicode-regexp": "warn",
|
|
108
114
|
"rest-spread-spacing": ["error", "never"],
|
|
109
|
-
"sort-imports": [
|
|
115
|
+
"sort-imports": [
|
|
116
|
+
"warn",
|
|
117
|
+
{ "allowSeparatedGroups": true, "ignoreCase": true }
|
|
118
|
+
],
|
|
110
119
|
"symbol-description": "error"
|
|
111
120
|
}
|
|
112
121
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mscharley/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "ESLint presets that I use a lot",
|
|
5
5
|
"main": "index.json",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "",
|
|
8
8
|
"precommit": "lint-staged",
|
|
9
9
|
"check-updates": "npm-check-updates 2>&1",
|
|
10
|
-
"test": "eslint -c index.js *.js"
|
|
10
|
+
"test": "eslint -c index.js --max-warnings 0 *.js examples"
|
|
11
11
|
},
|
|
12
12
|
"lint-staged": {
|
|
13
13
|
"*.{js,jsx,ts,tsx}": "eslint -c index.js --fix",
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/mscharley/node-presets#readme",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@mscharley/prettier-config": "1.1
|
|
36
|
-
"@typescript-eslint/parser": "^
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
35
|
+
"@mscharley/prettier-config": "1.2.1",
|
|
36
|
+
"@typescript-eslint/parser": "^5.6.0",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.6.0",
|
|
38
38
|
"eslint": "^7.32.0",
|
|
39
39
|
"eslint-config-prettier": "^8.3.0",
|
|
40
40
|
"eslint-plugin-deprecation": "^1.2.1",
|
|
41
41
|
"eslint-plugin-node": "^11.1.0",
|
|
42
42
|
"eslint-plugin-prettier": "^4.0.0",
|
|
43
|
-
"prettier": "^2.
|
|
44
|
-
"typescript": "^4.
|
|
43
|
+
"prettier": "^2.5.1",
|
|
44
|
+
"typescript": "^4.5.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@mscharley/prettier-config": "1.1
|
|
48
|
-
"@typescript-eslint/parser": "^
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
47
|
+
"@mscharley/prettier-config": "1.2.1",
|
|
48
|
+
"@typescript-eslint/parser": "^5.6.0",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.6.0",
|
|
50
50
|
"eslint": "^7.32.0",
|
|
51
51
|
"eslint-config-prettier": "^8.3.0",
|
|
52
52
|
"eslint-plugin-deprecation": "^1.2.1",
|
|
53
53
|
"eslint-plugin-node": "^11.1.0",
|
|
54
54
|
"eslint-plugin-prettier": "^4.0.0",
|
|
55
|
-
"prettier": "^2.
|
|
56
|
-
"lint-staged": "~
|
|
57
|
-
"typescript": "~4.
|
|
58
|
-
"npm-check-updates": "~
|
|
55
|
+
"prettier": "^2.5.1",
|
|
56
|
+
"lint-staged": "~12.1.2",
|
|
57
|
+
"typescript": "~4.5.3",
|
|
58
|
+
"npm-check-updates": "~12.0.3"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/typescript.json
CHANGED
|
@@ -5,16 +5,12 @@
|
|
|
5
5
|
},
|
|
6
6
|
"overrides": [
|
|
7
7
|
{
|
|
8
|
-
"extends": [
|
|
9
|
-
"plugin:@typescript-eslint/recommended"
|
|
10
|
-
],
|
|
8
|
+
"extends": ["plugin:@typescript-eslint/recommended"],
|
|
11
9
|
"parser": "@typescript-eslint/parser",
|
|
12
10
|
"parserOptions": {
|
|
13
11
|
"project": "./tsconfig.json"
|
|
14
12
|
},
|
|
15
|
-
"plugins": [
|
|
16
|
-
"@typescript-eslint"
|
|
17
|
-
],
|
|
13
|
+
"plugins": ["@typescript-eslint"],
|
|
18
14
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
19
15
|
"rules": {
|
|
20
16
|
"deprecation/deprecation": "warn",
|
|
@@ -26,7 +22,10 @@
|
|
|
26
22
|
}
|
|
27
23
|
],
|
|
28
24
|
"@typescript-eslint/class-literal-property-style": ["error", "fields"],
|
|
29
|
-
"@typescript-eslint/consistent-indexed-object-style": [
|
|
25
|
+
"@typescript-eslint/consistent-indexed-object-style": [
|
|
26
|
+
"error",
|
|
27
|
+
"record"
|
|
28
|
+
],
|
|
30
29
|
"@typescript-eslint/consistent-type-assertions": [
|
|
31
30
|
"warn",
|
|
32
31
|
{
|
|
@@ -137,6 +136,14 @@
|
|
|
137
136
|
"@typescript-eslint/no-require-imports": "error",
|
|
138
137
|
"no-throw-literal": "off",
|
|
139
138
|
"@typescript-eslint/no-throw-literal": "error",
|
|
139
|
+
"no-unused-vars": "off",
|
|
140
|
+
"@typescript-eslint/no-unused-vars": [
|
|
141
|
+
"warn",
|
|
142
|
+
{
|
|
143
|
+
"argsIgnorePattern": "^_",
|
|
144
|
+
"varsIgnorePattern": "^_"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
140
147
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
|
141
148
|
"error",
|
|
142
149
|
{
|
|
@@ -162,16 +169,19 @@
|
|
|
162
169
|
"@typescript-eslint/restrict-plus-operands": "warn",
|
|
163
170
|
"no-return-await": "off",
|
|
164
171
|
"@typescript-eslint/return-await": ["error", "in-try-catch"],
|
|
165
|
-
"@typescript-eslint/strict-boolean-expressions": [
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
|
173
|
+
"error",
|
|
174
|
+
{
|
|
175
|
+
"allowString": false,
|
|
176
|
+
"allowNumber": false,
|
|
177
|
+
"allowNullableObject": false,
|
|
178
|
+
"allowNullableBoolean": false,
|
|
179
|
+
"allowNullableString": false,
|
|
180
|
+
"allowNullableNumber": false,
|
|
181
|
+
"allowAny": false,
|
|
182
|
+
"allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing": false
|
|
183
|
+
}
|
|
184
|
+
],
|
|
175
185
|
"@typescript-eslint/unbound-method": "error",
|
|
176
186
|
"@typescript-eslint/switch-exhaustiveness-check": "error"
|
|
177
187
|
}
|