@rushstack/eslint-config 3.7.1 → 4.0.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 +24 -0
- package/CHANGELOG.md +13 -1
- package/package.json +7 -7
- package/profile/_common.js +7 -49
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/eslint-config",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "4.0.1",
|
|
6
|
+
"tag": "@rushstack/eslint-config_v4.0.1",
|
|
7
|
+
"date": "Wed, 14 Aug 2024 22:37:32 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/eslint-plugin\" to `0.16.0`"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "4.0.0",
|
|
18
|
+
"tag": "@rushstack/eslint-config_v4.0.0",
|
|
19
|
+
"date": "Tue, 13 Aug 2024 18:17:05 GMT",
|
|
20
|
+
"comments": {
|
|
21
|
+
"major": [
|
|
22
|
+
{
|
|
23
|
+
"comment": "[BREAKING CHANGE] Bump \"@typescript-eslint/eslint-plugin\" to \"~8.1.0\" and \"@typescript-eslint/eslint-parser\" to \"~8.1.0\". Due to these changes, node@>=17.0.0 and eslint@^8.57.0 are now required due to breaking changes in the newer rules set."
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
4
28
|
{
|
|
5
29
|
"version": "3.7.1",
|
|
6
30
|
"tag": "@rushstack/eslint-config_v3.7.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @rushstack/eslint-config
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 14 Aug 2024 22:37:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.0.1
|
|
6
|
+
Wed, 14 Aug 2024 22:37:32 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.0.0
|
|
11
|
+
Tue, 13 Aug 2024 18:17:05 GMT
|
|
12
|
+
|
|
13
|
+
### Breaking changes
|
|
14
|
+
|
|
15
|
+
- [BREAKING CHANGE] Bump "@typescript-eslint/eslint-plugin" to "~8.1.0" and "@typescript-eslint/eslint-parser" to "~8.1.0". Due to these changes, node@>=17.0.0 and eslint@^8.57.0 are now required due to breaking changes in the newer rules set.
|
|
4
16
|
|
|
5
17
|
## 3.7.1
|
|
6
18
|
Sat, 27 Jul 2024 00:10:27 GMT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A TypeScript ESLint ruleset designed for large teams and projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"typescript"
|
|
20
20
|
],
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"eslint": "^
|
|
22
|
+
"eslint": "^8.57.0",
|
|
23
23
|
"typescript": ">=4.7.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@typescript-eslint/eslint-plugin": "~
|
|
27
|
-
"@typescript-eslint/utils": "~
|
|
28
|
-
"@typescript-eslint/parser": "~
|
|
29
|
-
"@typescript-eslint/typescript-estree": "~
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "~8.1.0",
|
|
27
|
+
"@typescript-eslint/utils": "~8.1.0",
|
|
28
|
+
"@typescript-eslint/parser": "~8.1.0",
|
|
29
|
+
"@typescript-eslint/typescript-estree": "~8.1.0",
|
|
30
30
|
"eslint-plugin-promise": "~6.1.1",
|
|
31
31
|
"eslint-plugin-react": "~7.33.2",
|
|
32
32
|
"eslint-plugin-tsdoc": "~0.3.0",
|
|
33
33
|
"@rushstack/eslint-patch": "1.10.4",
|
|
34
|
-
"@rushstack/eslint-plugin": "0.
|
|
34
|
+
"@rushstack/eslint-plugin": "0.16.0",
|
|
35
35
|
"@rushstack/eslint-plugin-packlets": "0.9.2",
|
|
36
36
|
"@rushstack/eslint-plugin-security": "0.8.2"
|
|
37
37
|
},
|
package/profile/_common.js
CHANGED
|
@@ -260,54 +260,10 @@ function buildRules(profile) {
|
|
|
260
260
|
'@typescript-eslint/adjacent-overload-signatures': 'warn',
|
|
261
261
|
|
|
262
262
|
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
{
|
|
268
|
-
extendDefaults: false, // (the complete list is in this file)
|
|
269
|
-
types: {
|
|
270
|
-
String: {
|
|
271
|
-
message: 'Use "string" instead',
|
|
272
|
-
fixWith: 'string'
|
|
273
|
-
},
|
|
274
|
-
Boolean: {
|
|
275
|
-
message: 'Use "boolean" instead',
|
|
276
|
-
fixWith: 'boolean'
|
|
277
|
-
},
|
|
278
|
-
Number: {
|
|
279
|
-
message: 'Use "number" instead',
|
|
280
|
-
fixWith: 'number'
|
|
281
|
-
},
|
|
282
|
-
Object: {
|
|
283
|
-
message: 'Use "object" instead, or else define a proper TypeScript type:'
|
|
284
|
-
},
|
|
285
|
-
Symbol: {
|
|
286
|
-
message: 'Use "symbol" instead',
|
|
287
|
-
fixWith: 'symbol'
|
|
288
|
-
},
|
|
289
|
-
Function: {
|
|
290
|
-
message: [
|
|
291
|
-
'The "Function" type accepts any function-like value.',
|
|
292
|
-
'It provides no type safety when calling the function, which can be a common source of bugs.',
|
|
293
|
-
'It also accepts things like class declarations, which will throw at runtime as they will not be called with "new".',
|
|
294
|
-
'If you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
|
|
295
|
-
].join('\n')
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
// This is a good idea, but before enabling it we need to put some thought into the recommended
|
|
299
|
-
// coding practices; the default suggestions are too vague.
|
|
300
|
-
//
|
|
301
|
-
// '{}': {
|
|
302
|
-
// message: [
|
|
303
|
-
// '"{}" actually means "any non-nullish value".',
|
|
304
|
-
// '- If you want a type meaning "any object", you probably want "Record<string, unknown>" instead.',
|
|
305
|
-
// '- If you want a type meaning "any value", you probably want "unknown" instead.'
|
|
306
|
-
// ].join('\n')
|
|
307
|
-
// }
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
],
|
|
263
|
+
'@typescript-eslint/no-unsafe-function-type': 'warn',
|
|
264
|
+
|
|
265
|
+
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
|
266
|
+
'@typescript-eslint/no-wrapper-object-types': 'warn',
|
|
311
267
|
|
|
312
268
|
// RATIONALE: We require "x as number" instead of "<number>x" to avoid conflicts with JSX.
|
|
313
269
|
'@typescript-eslint/consistent-type-assertions': 'warn',
|
|
@@ -433,7 +389,9 @@ function buildRules(profile) {
|
|
|
433
389
|
// Unused function arguments often indicate a mistake in JavaScript code. However in TypeScript code,
|
|
434
390
|
// the compiler catches most of those mistakes, and unused arguments are fairly common for type signatures
|
|
435
391
|
// that are overriding a base class method or implementing an interface.
|
|
436
|
-
args: 'none'
|
|
392
|
+
args: 'none',
|
|
393
|
+
// Unused error arguments are common and useful for inspection when a debugger is attached.
|
|
394
|
+
caughtErrors: 'none'
|
|
437
395
|
}
|
|
438
396
|
],
|
|
439
397
|
|