@spscommerce/eslint-config-typescript 0.0.12-rc.4 → 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 CHANGED
@@ -42,5 +42,4 @@ const config = {
42
42
  ...typescript_1.typescript,
43
43
  },
44
44
  };
45
- typescript_1.typescript.rules;
46
45
  module.exports = config;
@@ -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/master/packages/eslint-plugin/docs/rules/no-throw-literal.md
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.org/docs/rules/brace-style
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.org/docs/rules/comma-dangle
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.org/docs/rules/comma-spacing
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.org/docs/rules/func-call-spacing
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/func-call-spacing": "error",
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.org/docs/rules/keyword-spacing
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.org/docs/rules/lines-between-class-members
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.org/docs/rules/object-curly-spacing
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.org/docs/rules/quotes
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.org/docs/rules/
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.org/docs/rules/space-before-function-paren
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.org/docs/rules/space-infix-ops
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
  /**
@@ -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://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/member-delimiter-style.md
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://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/type-annotation-spacing.md
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-rc.4",
3
+ "version": "0.0.12",
4
4
  "description": "SPS official linter configuration for TypeScript.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -41,9 +41,9 @@
41
41
  "devDependencies": {
42
42
  "@stylistic/eslint-plugin": "^3.1.0",
43
43
  "@types/eslint": "^8.56.10",
44
- "@typescript-eslint/eslint-plugin": "^8.24.0",
45
- "@typescript-eslint/parser": "^8.24.0",
46
- "eslint-import-resolver-typescript": "^3.7.0",
44
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
45
+ "@typescript-eslint/parser": "^8.24.1",
46
+ "eslint-import-resolver-typescript": "^3.8.2",
47
47
  "eslint-plugin-import": "^2.31.0"
48
48
  }
49
49
  }