@typescript-eslint/eslint-plugin 8.29.2-alpha.2 → 8.29.2-alpha.4

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.
Files changed (102) hide show
  1. package/dist/configs/eslint-recommended-raw.d.ts +1 -1
  2. package/dist/configs/eslint-recommended-raw.d.ts.map +1 -1
  3. package/dist/configs/eslint-recommended-raw.js +3 -5
  4. package/dist/configs/{all.d.ts.map → eslintrc/all.d.ts.map} +1 -1
  5. package/dist/configs/eslintrc/base.d.ts.map +1 -0
  6. package/dist/configs/eslintrc/disable-type-checked.d.ts.map +1 -0
  7. package/dist/configs/{eslint-recommended.d.ts → eslintrc/eslint-recommended.d.ts} +1 -1
  8. package/dist/configs/eslintrc/eslint-recommended.d.ts.map +1 -0
  9. package/dist/configs/{eslint-recommended.js → eslintrc/eslint-recommended.js} +1 -1
  10. package/dist/configs/eslintrc/recommended-type-checked-only.d.ts.map +1 -0
  11. package/dist/configs/eslintrc/recommended-type-checked.d.ts.map +1 -0
  12. package/dist/configs/eslintrc/recommended.d.ts.map +1 -0
  13. package/dist/configs/eslintrc/strict-type-checked-only.d.ts.map +1 -0
  14. package/dist/configs/eslintrc/strict-type-checked.d.ts.map +1 -0
  15. package/dist/configs/eslintrc/strict.d.ts.map +1 -0
  16. package/dist/configs/eslintrc/stylistic-type-checked-only.d.ts.map +1 -0
  17. package/dist/configs/eslintrc/stylistic-type-checked.d.ts.map +1 -0
  18. package/dist/configs/eslintrc/stylistic.d.ts.map +1 -0
  19. package/dist/configs/flat/all.d.ts +8 -0
  20. package/dist/configs/flat/all.d.ts.map +1 -0
  21. package/dist/configs/flat/all.js +175 -0
  22. package/dist/configs/flat/base.d.ts +9 -0
  23. package/dist/configs/flat/base.d.ts.map +1 -0
  24. package/dist/configs/flat/base.js +17 -0
  25. package/dist/configs/flat/disable-type-checked.d.ts +8 -0
  26. package/dist/configs/flat/disable-type-checked.d.ts.map +1 -0
  27. package/dist/configs/flat/disable-type-checked.js +78 -0
  28. package/dist/configs/flat/eslint-recommended.d.ts +10 -0
  29. package/dist/configs/flat/eslint-recommended.d.ts.map +1 -0
  30. package/dist/configs/flat/eslint-recommended.js +16 -0
  31. package/dist/configs/flat/recommended-type-checked-only.d.ts +8 -0
  32. package/dist/configs/flat/recommended-type-checked-only.d.ts.map +1 -0
  33. package/dist/configs/flat/recommended-type-checked-only.js +53 -0
  34. package/dist/configs/flat/recommended-type-checked.d.ts +8 -0
  35. package/dist/configs/flat/recommended-type-checked.d.ts.map +1 -0
  36. package/dist/configs/flat/recommended-type-checked.js +76 -0
  37. package/dist/configs/flat/recommended.d.ts +8 -0
  38. package/dist/configs/flat/recommended.d.ts.map +1 -0
  39. package/dist/configs/flat/recommended.js +49 -0
  40. package/dist/configs/flat/strict-type-checked-only.d.ts +8 -0
  41. package/dist/configs/flat/strict-type-checked-only.d.ts.map +1 -0
  42. package/dist/configs/flat/strict-type-checked-only.js +91 -0
  43. package/dist/configs/flat/strict-type-checked.d.ts +8 -0
  44. package/dist/configs/flat/strict-type-checked.d.ts.map +1 -0
  45. package/dist/configs/flat/strict-type-checked.js +126 -0
  46. package/dist/configs/flat/strict.d.ts +8 -0
  47. package/dist/configs/flat/strict.d.ts.map +1 -0
  48. package/dist/configs/flat/strict.js +61 -0
  49. package/dist/configs/flat/stylistic-type-checked-only.d.ts +8 -0
  50. package/dist/configs/flat/stylistic-type-checked-only.d.ts.map +1 -0
  51. package/dist/configs/flat/stylistic-type-checked-only.js +35 -0
  52. package/dist/configs/flat/stylistic-type-checked.d.ts +8 -0
  53. package/dist/configs/flat/stylistic-type-checked.d.ts.map +1 -0
  54. package/dist/configs/flat/stylistic-type-checked.js +49 -0
  55. package/dist/configs/flat/stylistic.d.ts +8 -0
  56. package/dist/configs/flat/stylistic.d.ts.map +1 -0
  57. package/dist/configs/flat/stylistic.js +40 -0
  58. package/dist/index.d.ts +1 -2
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +2 -42
  61. package/dist/raw-plugin.d.ts +865 -0
  62. package/dist/raw-plugin.d.ts.map +1 -0
  63. package/dist/raw-plugin.js +121 -0
  64. package/package.json +11 -11
  65. package/raw-plugin.d.ts +25 -0
  66. package/dist/configs/base.d.ts.map +0 -1
  67. package/dist/configs/disable-type-checked.d.ts.map +0 -1
  68. package/dist/configs/eslint-recommended.d.ts.map +0 -1
  69. package/dist/configs/recommended-type-checked-only.d.ts.map +0 -1
  70. package/dist/configs/recommended-type-checked.d.ts.map +0 -1
  71. package/dist/configs/recommended.d.ts.map +0 -1
  72. package/dist/configs/strict-type-checked-only.d.ts.map +0 -1
  73. package/dist/configs/strict-type-checked.d.ts.map +0 -1
  74. package/dist/configs/strict.d.ts.map +0 -1
  75. package/dist/configs/stylistic-type-checked-only.d.ts.map +0 -1
  76. package/dist/configs/stylistic-type-checked.d.ts.map +0 -1
  77. package/dist/configs/stylistic.d.ts.map +0 -1
  78. package/eslint-recommended-raw.d.ts +0 -5
  79. /package/dist/configs/{all.d.ts → eslintrc/all.d.ts} +0 -0
  80. /package/dist/configs/{all.js → eslintrc/all.js} +0 -0
  81. /package/dist/configs/{base.d.ts → eslintrc/base.d.ts} +0 -0
  82. /package/dist/configs/{base.js → eslintrc/base.js} +0 -0
  83. /package/dist/configs/{disable-type-checked.d.ts → eslintrc/disable-type-checked.d.ts} +0 -0
  84. /package/dist/configs/{disable-type-checked.js → eslintrc/disable-type-checked.js} +0 -0
  85. /package/dist/configs/{recommended-type-checked-only.d.ts → eslintrc/recommended-type-checked-only.d.ts} +0 -0
  86. /package/dist/configs/{recommended-type-checked-only.js → eslintrc/recommended-type-checked-only.js} +0 -0
  87. /package/dist/configs/{recommended-type-checked.d.ts → eslintrc/recommended-type-checked.d.ts} +0 -0
  88. /package/dist/configs/{recommended-type-checked.js → eslintrc/recommended-type-checked.js} +0 -0
  89. /package/dist/configs/{recommended.d.ts → eslintrc/recommended.d.ts} +0 -0
  90. /package/dist/configs/{recommended.js → eslintrc/recommended.js} +0 -0
  91. /package/dist/configs/{strict-type-checked-only.d.ts → eslintrc/strict-type-checked-only.d.ts} +0 -0
  92. /package/dist/configs/{strict-type-checked-only.js → eslintrc/strict-type-checked-only.js} +0 -0
  93. /package/dist/configs/{strict-type-checked.d.ts → eslintrc/strict-type-checked.d.ts} +0 -0
  94. /package/dist/configs/{strict-type-checked.js → eslintrc/strict-type-checked.js} +0 -0
  95. /package/dist/configs/{strict.d.ts → eslintrc/strict.d.ts} +0 -0
  96. /package/dist/configs/{strict.js → eslintrc/strict.js} +0 -0
  97. /package/dist/configs/{stylistic-type-checked-only.d.ts → eslintrc/stylistic-type-checked-only.d.ts} +0 -0
  98. /package/dist/configs/{stylistic-type-checked-only.js → eslintrc/stylistic-type-checked-only.js} +0 -0
  99. /package/dist/configs/{stylistic-type-checked.d.ts → eslintrc/stylistic-type-checked.d.ts} +0 -0
  100. /package/dist/configs/{stylistic-type-checked.js → eslintrc/stylistic-type-checked.js} +0 -0
  101. /package/dist/configs/{stylistic.d.ts → eslintrc/stylistic.d.ts} +0 -0
  102. /package/dist/configs/{stylistic.js → eslintrc/stylistic.js} +0 -0
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Contains all of `recommended` along with additional recommended rules that require type information.
16
+ * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/recommended-type-checked',
23
+ rules: {
24
+ '@typescript-eslint/await-thenable': 'error',
25
+ '@typescript-eslint/ban-ts-comment': 'error',
26
+ 'no-array-constructor': 'off',
27
+ '@typescript-eslint/no-array-constructor': 'error',
28
+ '@typescript-eslint/no-array-delete': 'error',
29
+ '@typescript-eslint/no-base-to-string': 'error',
30
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
31
+ '@typescript-eslint/no-duplicate-type-constituents': 'error',
32
+ '@typescript-eslint/no-empty-object-type': 'error',
33
+ '@typescript-eslint/no-explicit-any': 'error',
34
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
35
+ '@typescript-eslint/no-floating-promises': 'error',
36
+ '@typescript-eslint/no-for-in-array': 'error',
37
+ 'no-implied-eval': 'off',
38
+ '@typescript-eslint/no-implied-eval': 'error',
39
+ '@typescript-eslint/no-misused-new': 'error',
40
+ '@typescript-eslint/no-misused-promises': 'error',
41
+ '@typescript-eslint/no-namespace': 'error',
42
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
43
+ '@typescript-eslint/no-redundant-type-constituents': 'error',
44
+ '@typescript-eslint/no-require-imports': 'error',
45
+ '@typescript-eslint/no-this-alias': 'error',
46
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
47
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
48
+ '@typescript-eslint/no-unsafe-argument': 'error',
49
+ '@typescript-eslint/no-unsafe-assignment': 'error',
50
+ '@typescript-eslint/no-unsafe-call': 'error',
51
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
52
+ '@typescript-eslint/no-unsafe-enum-comparison': 'error',
53
+ '@typescript-eslint/no-unsafe-function-type': 'error',
54
+ '@typescript-eslint/no-unsafe-member-access': 'error',
55
+ '@typescript-eslint/no-unsafe-return': 'error',
56
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
57
+ 'no-unused-expressions': 'off',
58
+ '@typescript-eslint/no-unused-expressions': 'error',
59
+ 'no-unused-vars': 'off',
60
+ '@typescript-eslint/no-unused-vars': 'error',
61
+ '@typescript-eslint/no-wrapper-object-types': 'error',
62
+ 'no-throw-literal': 'off',
63
+ '@typescript-eslint/only-throw-error': 'error',
64
+ '@typescript-eslint/prefer-as-const': 'error',
65
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
66
+ 'prefer-promise-reject-errors': 'off',
67
+ '@typescript-eslint/prefer-promise-reject-errors': 'error',
68
+ 'require-await': 'off',
69
+ '@typescript-eslint/require-await': 'error',
70
+ '@typescript-eslint/restrict-plus-operands': 'error',
71
+ '@typescript-eslint/restrict-template-expressions': 'error',
72
+ '@typescript-eslint/triple-slash-reference': 'error',
73
+ '@typescript-eslint/unbound-method': 'error',
74
+ },
75
+ },
76
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * Recommended rules for code correctness that you can drop in without additional configuration.
4
+ * @see {@link https://typescript-eslint.io/users/configs#recommended}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=recommended.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/recommended.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAkCE"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Recommended rules for code correctness that you can drop in without additional configuration.
16
+ * @see {@link https://typescript-eslint.io/users/configs#recommended}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/recommended',
23
+ rules: {
24
+ '@typescript-eslint/ban-ts-comment': 'error',
25
+ 'no-array-constructor': 'off',
26
+ '@typescript-eslint/no-array-constructor': 'error',
27
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
28
+ '@typescript-eslint/no-empty-object-type': 'error',
29
+ '@typescript-eslint/no-explicit-any': 'error',
30
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
31
+ '@typescript-eslint/no-misused-new': 'error',
32
+ '@typescript-eslint/no-namespace': 'error',
33
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
34
+ '@typescript-eslint/no-require-imports': 'error',
35
+ '@typescript-eslint/no-this-alias': 'error',
36
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
37
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
38
+ '@typescript-eslint/no-unsafe-function-type': 'error',
39
+ 'no-unused-expressions': 'off',
40
+ '@typescript-eslint/no-unused-expressions': 'error',
41
+ 'no-unused-vars': 'off',
42
+ '@typescript-eslint/no-unused-vars': 'error',
43
+ '@typescript-eslint/no-wrapper-object-types': 'error',
44
+ '@typescript-eslint/prefer-as-const': 'error',
45
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
46
+ '@typescript-eslint/triple-slash-reference': 'error',
47
+ },
48
+ },
49
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
+ * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=strict-type-checked-only.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA4EE"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
16
+ * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/strict-type-checked-only',
23
+ rules: {
24
+ '@typescript-eslint/await-thenable': 'error',
25
+ '@typescript-eslint/no-array-delete': 'error',
26
+ '@typescript-eslint/no-base-to-string': 'error',
27
+ '@typescript-eslint/no-confusing-void-expression': 'error',
28
+ '@typescript-eslint/no-deprecated': 'error',
29
+ '@typescript-eslint/no-duplicate-type-constituents': 'error',
30
+ '@typescript-eslint/no-floating-promises': 'error',
31
+ '@typescript-eslint/no-for-in-array': 'error',
32
+ 'no-implied-eval': 'off',
33
+ '@typescript-eslint/no-implied-eval': 'error',
34
+ '@typescript-eslint/no-meaningless-void-operator': 'error',
35
+ '@typescript-eslint/no-misused-promises': 'error',
36
+ '@typescript-eslint/no-misused-spread': 'error',
37
+ '@typescript-eslint/no-mixed-enums': 'error',
38
+ '@typescript-eslint/no-redundant-type-constituents': 'error',
39
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
40
+ '@typescript-eslint/no-unnecessary-condition': 'error',
41
+ '@typescript-eslint/no-unnecessary-template-expression': 'error',
42
+ '@typescript-eslint/no-unnecessary-type-arguments': 'error',
43
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
44
+ '@typescript-eslint/no-unnecessary-type-parameters': 'error',
45
+ '@typescript-eslint/no-unsafe-argument': 'error',
46
+ '@typescript-eslint/no-unsafe-assignment': 'error',
47
+ '@typescript-eslint/no-unsafe-call': 'error',
48
+ '@typescript-eslint/no-unsafe-enum-comparison': 'error',
49
+ '@typescript-eslint/no-unsafe-member-access': 'error',
50
+ '@typescript-eslint/no-unsafe-return': 'error',
51
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
52
+ 'no-throw-literal': 'off',
53
+ '@typescript-eslint/only-throw-error': 'error',
54
+ 'prefer-promise-reject-errors': 'off',
55
+ '@typescript-eslint/prefer-promise-reject-errors': 'error',
56
+ '@typescript-eslint/prefer-reduce-type-parameter': 'error',
57
+ '@typescript-eslint/prefer-return-this-type': 'error',
58
+ '@typescript-eslint/related-getter-setter-pairs': 'error',
59
+ 'require-await': 'off',
60
+ '@typescript-eslint/require-await': 'error',
61
+ '@typescript-eslint/restrict-plus-operands': [
62
+ 'error',
63
+ {
64
+ allowAny: false,
65
+ allowBoolean: false,
66
+ allowNullish: false,
67
+ allowNumberAndString: false,
68
+ allowRegExp: false,
69
+ },
70
+ ],
71
+ '@typescript-eslint/restrict-template-expressions': [
72
+ 'error',
73
+ {
74
+ allowAny: false,
75
+ allowBoolean: false,
76
+ allowNever: false,
77
+ allowNullish: false,
78
+ allowNumber: false,
79
+ allowRegExp: false,
80
+ },
81
+ ],
82
+ 'no-return-await': 'off',
83
+ '@typescript-eslint/return-await': [
84
+ 'error',
85
+ 'error-handling-correctness-only',
86
+ ],
87
+ '@typescript-eslint/unbound-method': 'error',
88
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
89
+ },
90
+ },
91
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
4
+ * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=strict-type-checked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA+GE"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
16
+ * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/strict-type-checked',
23
+ rules: {
24
+ '@typescript-eslint/await-thenable': 'error',
25
+ '@typescript-eslint/ban-ts-comment': [
26
+ 'error',
27
+ { minimumDescriptionLength: 10 },
28
+ ],
29
+ 'no-array-constructor': 'off',
30
+ '@typescript-eslint/no-array-constructor': 'error',
31
+ '@typescript-eslint/no-array-delete': 'error',
32
+ '@typescript-eslint/no-base-to-string': 'error',
33
+ '@typescript-eslint/no-confusing-void-expression': 'error',
34
+ '@typescript-eslint/no-deprecated': 'error',
35
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
36
+ '@typescript-eslint/no-duplicate-type-constituents': 'error',
37
+ '@typescript-eslint/no-dynamic-delete': 'error',
38
+ '@typescript-eslint/no-empty-object-type': 'error',
39
+ '@typescript-eslint/no-explicit-any': 'error',
40
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
41
+ '@typescript-eslint/no-extraneous-class': 'error',
42
+ '@typescript-eslint/no-floating-promises': 'error',
43
+ '@typescript-eslint/no-for-in-array': 'error',
44
+ 'no-implied-eval': 'off',
45
+ '@typescript-eslint/no-implied-eval': 'error',
46
+ '@typescript-eslint/no-invalid-void-type': 'error',
47
+ '@typescript-eslint/no-meaningless-void-operator': 'error',
48
+ '@typescript-eslint/no-misused-new': 'error',
49
+ '@typescript-eslint/no-misused-promises': 'error',
50
+ '@typescript-eslint/no-misused-spread': 'error',
51
+ '@typescript-eslint/no-mixed-enums': 'error',
52
+ '@typescript-eslint/no-namespace': 'error',
53
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
54
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
55
+ '@typescript-eslint/no-non-null-assertion': 'error',
56
+ '@typescript-eslint/no-redundant-type-constituents': 'error',
57
+ '@typescript-eslint/no-require-imports': 'error',
58
+ '@typescript-eslint/no-this-alias': 'error',
59
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
60
+ '@typescript-eslint/no-unnecessary-condition': 'error',
61
+ '@typescript-eslint/no-unnecessary-template-expression': 'error',
62
+ '@typescript-eslint/no-unnecessary-type-arguments': 'error',
63
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
64
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
65
+ '@typescript-eslint/no-unnecessary-type-parameters': 'error',
66
+ '@typescript-eslint/no-unsafe-argument': 'error',
67
+ '@typescript-eslint/no-unsafe-assignment': 'error',
68
+ '@typescript-eslint/no-unsafe-call': 'error',
69
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
70
+ '@typescript-eslint/no-unsafe-enum-comparison': 'error',
71
+ '@typescript-eslint/no-unsafe-function-type': 'error',
72
+ '@typescript-eslint/no-unsafe-member-access': 'error',
73
+ '@typescript-eslint/no-unsafe-return': 'error',
74
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
75
+ 'no-unused-expressions': 'off',
76
+ '@typescript-eslint/no-unused-expressions': 'error',
77
+ 'no-unused-vars': 'off',
78
+ '@typescript-eslint/no-unused-vars': 'error',
79
+ 'no-useless-constructor': 'off',
80
+ '@typescript-eslint/no-useless-constructor': 'error',
81
+ '@typescript-eslint/no-wrapper-object-types': 'error',
82
+ 'no-throw-literal': 'off',
83
+ '@typescript-eslint/only-throw-error': 'error',
84
+ '@typescript-eslint/prefer-as-const': 'error',
85
+ '@typescript-eslint/prefer-literal-enum-member': 'error',
86
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
87
+ 'prefer-promise-reject-errors': 'off',
88
+ '@typescript-eslint/prefer-promise-reject-errors': 'error',
89
+ '@typescript-eslint/prefer-reduce-type-parameter': 'error',
90
+ '@typescript-eslint/prefer-return-this-type': 'error',
91
+ '@typescript-eslint/related-getter-setter-pairs': 'error',
92
+ 'require-await': 'off',
93
+ '@typescript-eslint/require-await': 'error',
94
+ '@typescript-eslint/restrict-plus-operands': [
95
+ 'error',
96
+ {
97
+ allowAny: false,
98
+ allowBoolean: false,
99
+ allowNullish: false,
100
+ allowNumberAndString: false,
101
+ allowRegExp: false,
102
+ },
103
+ ],
104
+ '@typescript-eslint/restrict-template-expressions': [
105
+ 'error',
106
+ {
107
+ allowAny: false,
108
+ allowBoolean: false,
109
+ allowNever: false,
110
+ allowNullish: false,
111
+ allowNumber: false,
112
+ allowRegExp: false,
113
+ },
114
+ ],
115
+ 'no-return-await': 'off',
116
+ '@typescript-eslint/return-await': [
117
+ 'error',
118
+ 'error-handling-correctness-only',
119
+ ],
120
+ '@typescript-eslint/triple-slash-reference': 'error',
121
+ '@typescript-eslint/unbound-method': 'error',
122
+ '@typescript-eslint/unified-signatures': 'error',
123
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
124
+ },
125
+ },
126
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
4
+ * @see {@link https://typescript-eslint.io/users/configs#strict}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=strict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strict.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA8CE"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
16
+ * @see {@link https://typescript-eslint.io/users/configs#strict}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/strict',
23
+ rules: {
24
+ '@typescript-eslint/ban-ts-comment': [
25
+ 'error',
26
+ { minimumDescriptionLength: 10 },
27
+ ],
28
+ 'no-array-constructor': 'off',
29
+ '@typescript-eslint/no-array-constructor': 'error',
30
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
31
+ '@typescript-eslint/no-dynamic-delete': 'error',
32
+ '@typescript-eslint/no-empty-object-type': 'error',
33
+ '@typescript-eslint/no-explicit-any': 'error',
34
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
35
+ '@typescript-eslint/no-extraneous-class': 'error',
36
+ '@typescript-eslint/no-invalid-void-type': 'error',
37
+ '@typescript-eslint/no-misused-new': 'error',
38
+ '@typescript-eslint/no-namespace': 'error',
39
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
40
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
41
+ '@typescript-eslint/no-non-null-assertion': 'error',
42
+ '@typescript-eslint/no-require-imports': 'error',
43
+ '@typescript-eslint/no-this-alias': 'error',
44
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
45
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
46
+ '@typescript-eslint/no-unsafe-function-type': 'error',
47
+ 'no-unused-expressions': 'off',
48
+ '@typescript-eslint/no-unused-expressions': 'error',
49
+ 'no-unused-vars': 'off',
50
+ '@typescript-eslint/no-unused-vars': 'error',
51
+ 'no-useless-constructor': 'off',
52
+ '@typescript-eslint/no-useless-constructor': 'error',
53
+ '@typescript-eslint/no-wrapper-object-types': 'error',
54
+ '@typescript-eslint/prefer-as-const': 'error',
55
+ '@typescript-eslint/prefer-literal-enum-member': 'error',
56
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
57
+ '@typescript-eslint/triple-slash-reference': 'error',
58
+ '@typescript-eslint/unified-signatures': 'error',
59
+ },
60
+ },
61
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=stylistic-type-checked-only.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stylistic-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/stylistic-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAoBE"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
16
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/stylistic-type-checked-only',
23
+ rules: {
24
+ 'dot-notation': 'off',
25
+ '@typescript-eslint/dot-notation': 'error',
26
+ '@typescript-eslint/non-nullable-type-assertion-style': 'error',
27
+ '@typescript-eslint/prefer-find': 'error',
28
+ '@typescript-eslint/prefer-includes': 'error',
29
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
30
+ '@typescript-eslint/prefer-optional-chain': 'error',
31
+ '@typescript-eslint/prefer-regexp-exec': 'error',
32
+ '@typescript-eslint/prefer-string-starts-ends-with': 'error',
33
+ },
34
+ },
35
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * Contains all of `stylistic`, along with additional stylistic rules that require type information.
4
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=stylistic-type-checked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stylistic-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/stylistic-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAkCE"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Contains all of `stylistic`, along with additional stylistic rules that require type information.
16
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/stylistic-type-checked',
23
+ rules: {
24
+ '@typescript-eslint/adjacent-overload-signatures': 'error',
25
+ '@typescript-eslint/array-type': 'error',
26
+ '@typescript-eslint/ban-tslint-comment': 'error',
27
+ '@typescript-eslint/class-literal-property-style': 'error',
28
+ '@typescript-eslint/consistent-generic-constructors': 'error',
29
+ '@typescript-eslint/consistent-indexed-object-style': 'error',
30
+ '@typescript-eslint/consistent-type-assertions': 'error',
31
+ '@typescript-eslint/consistent-type-definitions': 'error',
32
+ 'dot-notation': 'off',
33
+ '@typescript-eslint/dot-notation': 'error',
34
+ '@typescript-eslint/no-confusing-non-null-assertion': 'error',
35
+ 'no-empty-function': 'off',
36
+ '@typescript-eslint/no-empty-function': 'error',
37
+ '@typescript-eslint/no-inferrable-types': 'error',
38
+ '@typescript-eslint/non-nullable-type-assertion-style': 'error',
39
+ '@typescript-eslint/prefer-find': 'error',
40
+ '@typescript-eslint/prefer-for-of': 'error',
41
+ '@typescript-eslint/prefer-function-type': 'error',
42
+ '@typescript-eslint/prefer-includes': 'error',
43
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
44
+ '@typescript-eslint/prefer-optional-chain': 'error',
45
+ '@typescript-eslint/prefer-regexp-exec': 'error',
46
+ '@typescript-eslint/prefer-string-starts-ends-with': 'error',
47
+ },
48
+ },
49
+ ];
@@ -0,0 +1,8 @@
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ /**
3
+ * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
4
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic}
5
+ */
6
+ declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
+ export default _default;
8
+ //# sourceMappingURL=stylistic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/stylistic.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAyBE"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // THIS CODE WAS AUTOMATICALLY GENERATED
3
+ // DO NOT EDIT THIS CODE BY HAND
4
+ // SEE https://typescript-eslint.io/users/configs
5
+ //
6
+ // For developers working in the typescript-eslint monorepo:
7
+ // You can regenerate it using `yarn generate:configs`
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const base_1 = __importDefault(require("./base"));
13
+ const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
14
+ /**
15
+ * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
16
+ * @see {@link https://typescript-eslint.io/users/configs#stylistic}
17
+ */
18
+ exports.default = (plugin, parser) => [
19
+ (0, base_1.default)(plugin, parser),
20
+ (0, eslint_recommended_1.default)(plugin, parser),
21
+ {
22
+ name: 'typescript-eslint/stylistic',
23
+ rules: {
24
+ '@typescript-eslint/adjacent-overload-signatures': 'error',
25
+ '@typescript-eslint/array-type': 'error',
26
+ '@typescript-eslint/ban-tslint-comment': 'error',
27
+ '@typescript-eslint/class-literal-property-style': 'error',
28
+ '@typescript-eslint/consistent-generic-constructors': 'error',
29
+ '@typescript-eslint/consistent-indexed-object-style': 'error',
30
+ '@typescript-eslint/consistent-type-assertions': 'error',
31
+ '@typescript-eslint/consistent-type-definitions': 'error',
32
+ '@typescript-eslint/no-confusing-non-null-assertion': 'error',
33
+ 'no-empty-function': 'off',
34
+ '@typescript-eslint/no-empty-function': 'error',
35
+ '@typescript-eslint/no-inferrable-types': 'error',
36
+ '@typescript-eslint/prefer-for-of': 'error',
37
+ '@typescript-eslint/prefer-function-type': 'error',
38
+ },
39
+ },
40
+ ];