@spscommerce/eslint-config-typescript 0.0.12-rc.3 → 0.0.12
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/lib/index.js +0 -1
- package/lib/rules/bestPractices.js +1 -1
- package/lib/rules/stylisticIssues.js +12 -23
- package/lib/rules/typescript.js +2 -2
- package/package.json +7 -6
package/lib/index.js
CHANGED
|
@@ -402,7 +402,7 @@ exports.bestPractices = {
|
|
|
402
402
|
/**
|
|
403
403
|
* restrict what can be thrown as an exception
|
|
404
404
|
* https://eslint.org/docs/rules/no-throw-literal
|
|
405
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
405
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/only-throw-error.mdx
|
|
406
406
|
*/
|
|
407
407
|
"no-throw-literal": "off",
|
|
408
408
|
"@typescript-eslint/only-throw-error": "error",
|
|
@@ -25,8 +25,7 @@ exports.stylisticIssues = {
|
|
|
25
25
|
"block-spacing": ["error", "always"],
|
|
26
26
|
/**
|
|
27
27
|
* enforce one true brace style 🔧
|
|
28
|
-
* https://eslint.
|
|
29
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md
|
|
28
|
+
* https://eslint.style/rules/ts/brace-style#ts-brace-style
|
|
30
29
|
*/
|
|
31
30
|
"@stylistic/brace-style": "error",
|
|
32
31
|
/**
|
|
@@ -41,14 +40,12 @@ exports.stylisticIssues = {
|
|
|
41
40
|
"capitalized-comments": "off",
|
|
42
41
|
/**
|
|
43
42
|
* require trailing commas in multiline object literals 🔧
|
|
44
|
-
* https://eslint.
|
|
45
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-dangle.md
|
|
43
|
+
* https://eslint.style/rules/ts/comma-dangle#ts-comma-dangle
|
|
46
44
|
*/
|
|
47
45
|
"@stylistic/comma-dangle": ["error", "always-multiline"],
|
|
48
46
|
/**
|
|
49
47
|
* enforce spacing before/after comma 🔧
|
|
50
|
-
* https://eslint.
|
|
51
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md
|
|
48
|
+
* https://eslint.style/rules/ts/comma-spacing#ts-comma-spacing
|
|
52
49
|
*/
|
|
53
50
|
"@stylistic/comma-spacing": "error",
|
|
54
51
|
/**
|
|
@@ -74,10 +71,9 @@ exports.stylisticIssues = {
|
|
|
74
71
|
"eol-last": "error",
|
|
75
72
|
/**
|
|
76
73
|
* enforce spacing between functions and their invocations 🔧
|
|
77
|
-
* https://eslint.
|
|
78
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
|
|
74
|
+
* https://eslint.style/packages/eslint-plugin-ts/rules/func-call-spacing/README#ts-func-call-spacing
|
|
79
75
|
*/
|
|
80
|
-
"@stylistic/
|
|
76
|
+
"@stylistic/function-call-spacing": "error",
|
|
81
77
|
/**
|
|
82
78
|
* requires function names to match the name of the
|
|
83
79
|
* variable or property to which they are assigned
|
|
@@ -144,8 +140,7 @@ exports.stylisticIssues = {
|
|
|
144
140
|
"key-spacing": "error",
|
|
145
141
|
/**
|
|
146
142
|
* require a space before & after certain keywords 🔧
|
|
147
|
-
* https://eslint.
|
|
148
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md
|
|
143
|
+
* https://eslint.style/rules/ts/keyword-spacing#ts-keyword-spacing
|
|
149
144
|
*/
|
|
150
145
|
"@stylistic/keyword-spacing": "error",
|
|
151
146
|
/**
|
|
@@ -165,8 +160,7 @@ exports.stylisticIssues = {
|
|
|
165
160
|
"lines-around-comment": "off",
|
|
166
161
|
/**
|
|
167
162
|
* require or disallow an empty line between class members 🔧
|
|
168
|
-
* https://eslint.
|
|
169
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md
|
|
163
|
+
* https://eslint.style/rules/ts/lines-between-class-members#ts-lines-between-class-members
|
|
170
164
|
*/
|
|
171
165
|
"@stylistic/lines-between-class-members": "error",
|
|
172
166
|
/**
|
|
@@ -377,8 +371,7 @@ exports.stylisticIssues = {
|
|
|
377
371
|
],
|
|
378
372
|
/**
|
|
379
373
|
* require padding inside curly braces 🔧
|
|
380
|
-
* https://eslint.
|
|
381
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/object-curly-spacing.md
|
|
374
|
+
* https://eslint.style/rules/ts/object-curly-spacing#ts-object-curly-spacing
|
|
382
375
|
*/
|
|
383
376
|
"@stylistic/object-curly-spacing": ["error", "always"],
|
|
384
377
|
/**
|
|
@@ -449,16 +442,14 @@ exports.stylisticIssues = {
|
|
|
449
442
|
{ keywords: false, numbers: false }],
|
|
450
443
|
/**
|
|
451
444
|
* specify whether double or single quotes should be used 🔧
|
|
452
|
-
* https://eslint.
|
|
453
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
|
|
445
|
+
* https://eslint.style/rules/ts/quotes#ts-quotes
|
|
454
446
|
*/
|
|
455
447
|
"@stylistic/quotes": ["error",
|
|
456
448
|
"double",
|
|
457
449
|
{ avoidEscape: true }],
|
|
458
450
|
/**
|
|
459
451
|
* require or disallow use of semicolons instead of ASI 🔧
|
|
460
|
-
* https://eslint.
|
|
461
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
|
|
452
|
+
* https://eslint.style/rules/ts/semi#ts-semi
|
|
462
453
|
*/
|
|
463
454
|
"@stylistic/semi": "error",
|
|
464
455
|
/**
|
|
@@ -488,8 +479,7 @@ exports.stylisticIssues = {
|
|
|
488
479
|
"space-before-blocks": "error",
|
|
489
480
|
/**
|
|
490
481
|
* require or disallow space before function opening parenthesis 🔧
|
|
491
|
-
* https://eslint.
|
|
492
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md
|
|
482
|
+
* https://eslint.style/rules/ts/space-before-function-paren#ts-space-before-function-paren
|
|
493
483
|
*/
|
|
494
484
|
"@stylistic/space-before-function-paren": [
|
|
495
485
|
"error",
|
|
@@ -506,8 +496,7 @@ exports.stylisticIssues = {
|
|
|
506
496
|
"space-in-parens": "error",
|
|
507
497
|
/**
|
|
508
498
|
* require spaces around operators 🔧
|
|
509
|
-
* https://eslint.
|
|
510
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md
|
|
499
|
+
* https://eslint.style/rules/ts/space-infix-ops#ts-space-infix-ops
|
|
511
500
|
*/
|
|
512
501
|
"@stylistic/space-infix-ops": "error",
|
|
513
502
|
/**
|
package/lib/rules/typescript.js
CHANGED
|
@@ -71,7 +71,7 @@ exports.typescript = {
|
|
|
71
71
|
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
72
72
|
/**
|
|
73
73
|
* Require a specific member delimiter style for interfaces and type literals 🔧
|
|
74
|
-
* https://
|
|
74
|
+
* https://eslint.style/rules/default/member-delimiter-style#ts-member-delimiter-style
|
|
75
75
|
*/
|
|
76
76
|
"@stylistic/member-delimiter-style": "error",
|
|
77
77
|
/**
|
|
@@ -405,7 +405,7 @@ exports.typescript = {
|
|
|
405
405
|
"@typescript-eslint/triple-slash-reference": "error",
|
|
406
406
|
/**
|
|
407
407
|
* Require consistent spacing around type annotations 🔧
|
|
408
|
-
* https://
|
|
408
|
+
* https://eslint.style/rules/default/type-annotation-spacing#ts-type-annotation-spacing
|
|
409
409
|
*/
|
|
410
410
|
"@stylistic/type-annotation-spacing": "error",
|
|
411
411
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/eslint-config-typescript",
|
|
3
|
-
"version": "0.0.12
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "SPS official linter configuration for TypeScript.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/SPSCommerce/typescript/tree/main/typescript#readme",
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@typescript-eslint/
|
|
34
|
+
"@stylistic/eslint-plugin": "^3.1.0",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
36
|
+
"@typescript-eslint/parser": "^8.24.0",
|
|
36
37
|
"eslint": "^8.56.0",
|
|
37
38
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
38
39
|
"eslint-plugin-import": "^2.31.0"
|
|
@@ -40,9 +41,9 @@
|
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
42
43
|
"@types/eslint": "^8.56.10",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.24.
|
|
44
|
-
"@typescript-eslint/parser": "^8.24.
|
|
45
|
-
"eslint-import-resolver-typescript": "^3.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
45
|
+
"@typescript-eslint/parser": "^8.24.1",
|
|
46
|
+
"eslint-import-resolver-typescript": "^3.8.2",
|
|
46
47
|
"eslint-plugin-import": "^2.31.0"
|
|
47
48
|
}
|
|
48
49
|
}
|