typescript-eslint 8.29.2-alpha.1 → 8.29.2-alpha.3

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 (43) hide show
  1. package/dist/index.d.ts +1 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +15 -64
  4. package/package.json +6 -6
  5. package/dist/configs/all.d.ts +0 -8
  6. package/dist/configs/all.d.ts.map +0 -1
  7. package/dist/configs/all.js +0 -175
  8. package/dist/configs/base.d.ts +0 -9
  9. package/dist/configs/base.d.ts.map +0 -1
  10. package/dist/configs/base.js +0 -17
  11. package/dist/configs/disable-type-checked.d.ts +0 -8
  12. package/dist/configs/disable-type-checked.d.ts.map +0 -1
  13. package/dist/configs/disable-type-checked.js +0 -78
  14. package/dist/configs/eslint-recommended.d.ts +0 -10
  15. package/dist/configs/eslint-recommended.d.ts.map +0 -1
  16. package/dist/configs/eslint-recommended.js +0 -16
  17. package/dist/configs/recommended-type-checked-only.d.ts +0 -8
  18. package/dist/configs/recommended-type-checked-only.d.ts.map +0 -1
  19. package/dist/configs/recommended-type-checked-only.js +0 -53
  20. package/dist/configs/recommended-type-checked.d.ts +0 -8
  21. package/dist/configs/recommended-type-checked.d.ts.map +0 -1
  22. package/dist/configs/recommended-type-checked.js +0 -76
  23. package/dist/configs/recommended.d.ts +0 -8
  24. package/dist/configs/recommended.d.ts.map +0 -1
  25. package/dist/configs/recommended.js +0 -49
  26. package/dist/configs/strict-type-checked-only.d.ts +0 -8
  27. package/dist/configs/strict-type-checked-only.d.ts.map +0 -1
  28. package/dist/configs/strict-type-checked-only.js +0 -91
  29. package/dist/configs/strict-type-checked.d.ts +0 -8
  30. package/dist/configs/strict-type-checked.d.ts.map +0 -1
  31. package/dist/configs/strict-type-checked.js +0 -126
  32. package/dist/configs/strict.d.ts +0 -8
  33. package/dist/configs/strict.d.ts.map +0 -1
  34. package/dist/configs/strict.js +0 -61
  35. package/dist/configs/stylistic-type-checked-only.d.ts +0 -8
  36. package/dist/configs/stylistic-type-checked-only.d.ts.map +0 -1
  37. package/dist/configs/stylistic-type-checked-only.js +0 -35
  38. package/dist/configs/stylistic-type-checked.d.ts +0 -8
  39. package/dist/configs/stylistic-type-checked.d.ts.map +0 -1
  40. package/dist/configs/stylistic-type-checked.js +0 -49
  41. package/dist/configs/stylistic.d.ts +0 -8
  42. package/dist/configs/stylistic.d.ts.map +0 -1
  43. package/dist/configs/stylistic.js +0 -40
package/dist/index.d.ts CHANGED
@@ -145,10 +145,7 @@ declare const _default: {
145
145
  */
146
146
  stylisticTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray;
147
147
  };
148
- parser: {
149
- meta?: { [K in keyof TSESLint.Parser.ParserMeta]?: TSESLint.Parser.ParserMeta[K] | undefined; };
150
- parseForESLint(text: string, options?: unknown): { [k in keyof TSESLint.Parser.ParseResult]: unknown; };
151
- };
148
+ parser: TSESLint.Parser.LooseParserModule;
152
149
  plugin: TSESLint.FlatConfig.Plugin;
153
150
  };
154
151
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAezC,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGxC,CAAC;AAyBF,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGxC,CAAC;AAEF,eAAO,MAAM,OAAO;IAClB;;;OAGG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;CAEJ,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;;;;QAlFlD;;;WAGG;;QAGH;;;;WAIG;;QAGH;;;WAGG;;QAGH;;;;;WAKG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;;;wDApHI,CAAC;;;;;AAmKV,wBAKE;AAEF,OAAO,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,EACnC,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAAyB,CAAC;AAyBnE,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGxC,CAAC;AAEF,eAAO,MAAM,OAAO;IAClB;;;OAGG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAIH;;;OAGG;;IAIH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;CAGJ,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;;;;QArFlD;;;WAGG;;QAGH;;;;WAIG;;QAGH;;;WAGG;;QAGH;;;;;WAKG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAIH;;;WAGG;;QAIH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;;;;;AAgDL,wBAKE;AAEF,OAAO,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,EACnC,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,62 +1,13 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
36
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
4
  };
38
5
  Object.defineProperty(exports, "__esModule", { value: true });
39
6
  exports.config = exports.configs = exports.plugin = exports.parser = void 0;
40
7
  const eslint_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin"));
41
- const parserBase = __importStar(require("@typescript-eslint/parser"));
8
+ const raw_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/raw-plugin"));
42
9
  const config_helper_1 = require("./config-helper");
43
- const all_1 = __importDefault(require("./configs/all"));
44
- const base_1 = __importDefault(require("./configs/base"));
45
- const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked"));
46
- const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended"));
47
- const recommended_1 = __importDefault(require("./configs/recommended"));
48
- const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked"));
49
- const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only"));
50
- const strict_1 = __importDefault(require("./configs/strict"));
51
- const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked"));
52
- const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only"));
53
- const stylistic_1 = __importDefault(require("./configs/stylistic"));
54
- const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked"));
55
- const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only"));
56
- exports.parser = {
57
- meta: parserBase.meta,
58
- parseForESLint: parserBase.parseForESLint,
59
- };
10
+ exports.parser = raw_plugin_1.default.parser;
60
11
  /*
61
12
  we could build a plugin object here without the `configs` key - but if we do
62
13
  that then we create a situation in which
@@ -86,70 +37,70 @@ exports.configs = {
86
37
  * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
87
38
  * @see {@link https://typescript-eslint.io/users/configs#all}
88
39
  */
89
- all: (0, all_1.default)(exports.plugin, exports.parser),
40
+ all: raw_plugin_1.default.flatConfigs['flat/all'],
90
41
  /**
91
42
  * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
92
43
  * We don't recommend using this directly; instead, extend from an earlier recommended rule.
93
44
  * @see {@link https://typescript-eslint.io/users/configs#base}
94
45
  */
95
- base: (0, base_1.default)(exports.plugin, exports.parser),
46
+ base: raw_plugin_1.default.flatConfigs['flat/base'],
96
47
  /**
97
48
  * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
98
49
  * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
99
50
  */
100
- disableTypeChecked: (0, disable_type_checked_1.default)(exports.plugin, exports.parser),
51
+ disableTypeChecked: raw_plugin_1.default.flatConfigs['flat/disable-type-checked'],
101
52
  /**
102
53
  * This is a compatibility ruleset that:
103
54
  * - disables rules from eslint:recommended which are already handled by TypeScript.
104
55
  * - enables rules that make sense due to TS's typechecking / transpilation.
105
56
  * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
106
57
  */
107
- eslintRecommended: (0, eslint_recommended_1.default)(exports.plugin, exports.parser),
58
+ eslintRecommended: raw_plugin_1.default.flatConfigs['flat/eslint-recommended'],
108
59
  /**
109
60
  * Recommended rules for code correctness that you can drop in without additional configuration.
110
61
  * @see {@link https://typescript-eslint.io/users/configs#recommended}
111
62
  */
112
- recommended: (0, recommended_1.default)(exports.plugin, exports.parser),
63
+ recommended: raw_plugin_1.default.flatConfigs['flat/recommended'],
113
64
  /**
114
65
  * Contains all of `recommended` along with additional recommended rules that require type information.
115
66
  * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
116
67
  */
117
- recommendedTypeChecked: (0, recommended_type_checked_1.default)(exports.plugin, exports.parser),
68
+ recommendedTypeChecked: raw_plugin_1.default.flatConfigs['flat/recommended-type-checked'],
118
69
  /**
119
70
  * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
120
71
  * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
121
72
  */
122
- recommendedTypeCheckedOnly: (0, recommended_type_checked_only_1.default)(exports.plugin, exports.parser),
73
+ recommendedTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/recommended-type-checked-only'],
123
74
  /**
124
75
  * Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
125
76
  * @see {@link https://typescript-eslint.io/users/configs#strict}
126
77
  */
127
- strict: (0, strict_1.default)(exports.plugin, exports.parser),
78
+ strict: raw_plugin_1.default.flatConfigs['flat/strict'],
128
79
  /**
129
80
  * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
130
81
  * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
131
82
  */
132
- strictTypeChecked: (0, strict_type_checked_1.default)(exports.plugin, exports.parser),
83
+ strictTypeChecked: raw_plugin_1.default.flatConfigs['flat/strict-type-checked'],
133
84
  /**
134
85
  * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
135
86
  * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
136
87
  */
137
- strictTypeCheckedOnly: (0, strict_type_checked_only_1.default)(exports.plugin, exports.parser),
88
+ strictTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/strict-type-checked-only'],
138
89
  /**
139
90
  * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
140
91
  * @see {@link https://typescript-eslint.io/users/configs#stylistic}
141
92
  */
142
- stylistic: (0, stylistic_1.default)(exports.plugin, exports.parser),
93
+ stylistic: raw_plugin_1.default.flatConfigs['flat/stylistic'],
143
94
  /**
144
95
  * Contains all of `stylistic`, along with additional stylistic rules that require type information.
145
96
  * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
146
97
  */
147
- stylisticTypeChecked: (0, stylistic_type_checked_1.default)(exports.plugin, exports.parser),
98
+ stylisticTypeChecked: raw_plugin_1.default.flatConfigs['flat/stylistic-type-checked'],
148
99
  /**
149
100
  * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
150
101
  * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
151
102
  */
152
- stylisticTypeCheckedOnly: (0, stylistic_type_checked_only_1.default)(exports.plugin, exports.parser),
103
+ stylisticTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/stylistic-type-checked-only'],
153
104
  };
154
105
  /*
155
106
  we do both a default and named exports to allow people to use this package from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-eslint",
3
- "version": "8.29.2-alpha.1",
3
+ "version": "8.29.2-alpha.3",
4
4
  "description": "Tooling which enables you to use TypeScript with ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -53,21 +53,21 @@
53
53
  "check-types": "npx nx typecheck"
54
54
  },
55
55
  "dependencies": {
56
- "@typescript-eslint/eslint-plugin": "8.29.2-alpha.1",
57
- "@typescript-eslint/parser": "8.29.2-alpha.1",
58
- "@typescript-eslint/utils": "8.29.2-alpha.1"
56
+ "@typescript-eslint/eslint-plugin": "8.29.2-alpha.3",
57
+ "@typescript-eslint/parser": "8.29.2-alpha.3",
58
+ "@typescript-eslint/utils": "8.29.2-alpha.3"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "eslint": "^8.57.0 || ^9.0.0",
62
62
  "typescript": ">=4.8.4 <5.9.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@vitest/coverage-v8": "^3.0.8",
65
+ "@vitest/coverage-v8": "^3.1.1",
66
66
  "downlevel-dts": "*",
67
67
  "prettier": "^3.2.5",
68
68
  "rimraf": "*",
69
69
  "typescript": "*",
70
- "vitest": "^3.0.8"
70
+ "vitest": "^3.1.1"
71
71
  },
72
72
  "funding": {
73
73
  "type": "opencollective",
@@ -1,8 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- /**
3
- * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
4
- * @see {@link https://typescript-eslint.io/users/configs#all}
5
- */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
8
- //# sourceMappingURL=all.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/configs/all.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,wBAiKE"}
@@ -1,175 +0,0 @@
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
- * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
16
- * @see {@link https://typescript-eslint.io/users/configs#all}
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/all',
23
- rules: {
24
- '@typescript-eslint/adjacent-overload-signatures': 'error',
25
- '@typescript-eslint/array-type': 'error',
26
- '@typescript-eslint/await-thenable': 'error',
27
- '@typescript-eslint/ban-ts-comment': 'error',
28
- '@typescript-eslint/ban-tslint-comment': 'error',
29
- '@typescript-eslint/class-literal-property-style': 'error',
30
- 'class-methods-use-this': 'off',
31
- '@typescript-eslint/class-methods-use-this': 'error',
32
- '@typescript-eslint/consistent-generic-constructors': 'error',
33
- '@typescript-eslint/consistent-indexed-object-style': 'error',
34
- 'consistent-return': 'off',
35
- '@typescript-eslint/consistent-return': 'error',
36
- '@typescript-eslint/consistent-type-assertions': 'error',
37
- '@typescript-eslint/consistent-type-definitions': 'error',
38
- '@typescript-eslint/consistent-type-exports': 'error',
39
- '@typescript-eslint/consistent-type-imports': 'error',
40
- 'default-param-last': 'off',
41
- '@typescript-eslint/default-param-last': 'error',
42
- 'dot-notation': 'off',
43
- '@typescript-eslint/dot-notation': 'error',
44
- '@typescript-eslint/explicit-function-return-type': 'error',
45
- '@typescript-eslint/explicit-member-accessibility': 'error',
46
- '@typescript-eslint/explicit-module-boundary-types': 'error',
47
- 'init-declarations': 'off',
48
- '@typescript-eslint/init-declarations': 'error',
49
- 'max-params': 'off',
50
- '@typescript-eslint/max-params': 'error',
51
- '@typescript-eslint/member-ordering': 'error',
52
- '@typescript-eslint/method-signature-style': 'error',
53
- '@typescript-eslint/naming-convention': 'error',
54
- 'no-array-constructor': 'off',
55
- '@typescript-eslint/no-array-constructor': 'error',
56
- '@typescript-eslint/no-array-delete': 'error',
57
- '@typescript-eslint/no-base-to-string': 'error',
58
- '@typescript-eslint/no-confusing-non-null-assertion': 'error',
59
- '@typescript-eslint/no-confusing-void-expression': 'error',
60
- '@typescript-eslint/no-deprecated': 'error',
61
- 'no-dupe-class-members': 'off',
62
- '@typescript-eslint/no-dupe-class-members': 'error',
63
- '@typescript-eslint/no-duplicate-enum-values': 'error',
64
- '@typescript-eslint/no-duplicate-type-constituents': 'error',
65
- '@typescript-eslint/no-dynamic-delete': 'error',
66
- 'no-empty-function': 'off',
67
- '@typescript-eslint/no-empty-function': 'error',
68
- '@typescript-eslint/no-empty-object-type': 'error',
69
- '@typescript-eslint/no-explicit-any': 'error',
70
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
71
- '@typescript-eslint/no-extraneous-class': 'error',
72
- '@typescript-eslint/no-floating-promises': 'error',
73
- '@typescript-eslint/no-for-in-array': 'error',
74
- 'no-implied-eval': 'off',
75
- '@typescript-eslint/no-implied-eval': 'error',
76
- '@typescript-eslint/no-import-type-side-effects': 'error',
77
- '@typescript-eslint/no-inferrable-types': 'error',
78
- 'no-invalid-this': 'off',
79
- '@typescript-eslint/no-invalid-this': 'error',
80
- '@typescript-eslint/no-invalid-void-type': 'error',
81
- 'no-loop-func': 'off',
82
- '@typescript-eslint/no-loop-func': 'error',
83
- 'no-magic-numbers': 'off',
84
- '@typescript-eslint/no-magic-numbers': 'error',
85
- '@typescript-eslint/no-meaningless-void-operator': 'error',
86
- '@typescript-eslint/no-misused-new': 'error',
87
- '@typescript-eslint/no-misused-promises': 'error',
88
- '@typescript-eslint/no-misused-spread': 'error',
89
- '@typescript-eslint/no-mixed-enums': 'error',
90
- '@typescript-eslint/no-namespace': 'error',
91
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
92
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
93
- '@typescript-eslint/no-non-null-assertion': 'error',
94
- 'no-redeclare': 'off',
95
- '@typescript-eslint/no-redeclare': 'error',
96
- '@typescript-eslint/no-redundant-type-constituents': 'error',
97
- '@typescript-eslint/no-require-imports': 'error',
98
- 'no-restricted-imports': 'off',
99
- '@typescript-eslint/no-restricted-imports': 'error',
100
- '@typescript-eslint/no-restricted-types': 'error',
101
- 'no-shadow': 'off',
102
- '@typescript-eslint/no-shadow': 'error',
103
- '@typescript-eslint/no-this-alias': 'error',
104
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
105
- '@typescript-eslint/no-unnecessary-condition': 'error',
106
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
107
- '@typescript-eslint/no-unnecessary-qualifier': 'error',
108
- '@typescript-eslint/no-unnecessary-template-expression': 'error',
109
- '@typescript-eslint/no-unnecessary-type-arguments': 'error',
110
- '@typescript-eslint/no-unnecessary-type-assertion': 'error',
111
- '@typescript-eslint/no-unnecessary-type-constraint': 'error',
112
- '@typescript-eslint/no-unnecessary-type-parameters': 'error',
113
- '@typescript-eslint/no-unsafe-argument': 'error',
114
- '@typescript-eslint/no-unsafe-assignment': 'error',
115
- '@typescript-eslint/no-unsafe-call': 'error',
116
- '@typescript-eslint/no-unsafe-declaration-merging': 'error',
117
- '@typescript-eslint/no-unsafe-enum-comparison': 'error',
118
- '@typescript-eslint/no-unsafe-function-type': 'error',
119
- '@typescript-eslint/no-unsafe-member-access': 'error',
120
- '@typescript-eslint/no-unsafe-return': 'error',
121
- '@typescript-eslint/no-unsafe-type-assertion': 'error',
122
- '@typescript-eslint/no-unsafe-unary-minus': 'error',
123
- 'no-unused-expressions': 'off',
124
- '@typescript-eslint/no-unused-expressions': 'error',
125
- 'no-unused-vars': 'off',
126
- '@typescript-eslint/no-unused-vars': 'error',
127
- 'no-use-before-define': 'off',
128
- '@typescript-eslint/no-use-before-define': 'error',
129
- 'no-useless-constructor': 'off',
130
- '@typescript-eslint/no-useless-constructor': 'error',
131
- '@typescript-eslint/no-useless-empty-export': 'error',
132
- '@typescript-eslint/no-wrapper-object-types': 'error',
133
- '@typescript-eslint/non-nullable-type-assertion-style': 'error',
134
- 'no-throw-literal': 'off',
135
- '@typescript-eslint/only-throw-error': 'error',
136
- '@typescript-eslint/parameter-properties': 'error',
137
- '@typescript-eslint/prefer-as-const': 'error',
138
- 'prefer-destructuring': 'off',
139
- '@typescript-eslint/prefer-destructuring': 'error',
140
- '@typescript-eslint/prefer-enum-initializers': 'error',
141
- '@typescript-eslint/prefer-find': 'error',
142
- '@typescript-eslint/prefer-for-of': 'error',
143
- '@typescript-eslint/prefer-function-type': 'error',
144
- '@typescript-eslint/prefer-includes': 'error',
145
- '@typescript-eslint/prefer-literal-enum-member': 'error',
146
- '@typescript-eslint/prefer-namespace-keyword': 'error',
147
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
148
- '@typescript-eslint/prefer-optional-chain': 'error',
149
- 'prefer-promise-reject-errors': 'off',
150
- '@typescript-eslint/prefer-promise-reject-errors': 'error',
151
- '@typescript-eslint/prefer-readonly': 'error',
152
- '@typescript-eslint/prefer-readonly-parameter-types': 'error',
153
- '@typescript-eslint/prefer-reduce-type-parameter': 'error',
154
- '@typescript-eslint/prefer-regexp-exec': 'error',
155
- '@typescript-eslint/prefer-return-this-type': 'error',
156
- '@typescript-eslint/prefer-string-starts-ends-with': 'error',
157
- '@typescript-eslint/promise-function-async': 'error',
158
- '@typescript-eslint/related-getter-setter-pairs': 'error',
159
- '@typescript-eslint/require-array-sort-compare': 'error',
160
- 'require-await': 'off',
161
- '@typescript-eslint/require-await': 'error',
162
- '@typescript-eslint/restrict-plus-operands': 'error',
163
- '@typescript-eslint/restrict-template-expressions': 'error',
164
- 'no-return-await': 'off',
165
- '@typescript-eslint/return-await': 'error',
166
- '@typescript-eslint/strict-boolean-expressions': 'error',
167
- '@typescript-eslint/switch-exhaustiveness-check': 'error',
168
- '@typescript-eslint/triple-slash-reference': 'error',
169
- '@typescript-eslint/typedef': 'error',
170
- '@typescript-eslint/unbound-method': 'error',
171
- '@typescript-eslint/unified-signatures': 'error',
172
- '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
173
- },
174
- },
175
- ];
@@ -1,9 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- /**
3
- * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
4
- * We don't recommend using this directly; instead, extend from an earlier recommended rule.
5
- * @see {@link https://typescript-eslint.io/users/configs#base}
6
- */
7
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.Config;
8
- export default _default;
9
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;GAIG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,MAAM;AAHpB,wBAYG"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
5
- * We don't recommend using this directly; instead, extend from an earlier recommended rule.
6
- * @see {@link https://typescript-eslint.io/users/configs#base}
7
- */
8
- exports.default = (plugin, parser) => ({
9
- name: 'typescript-eslint/base',
10
- languageOptions: {
11
- parser,
12
- sourceType: 'module',
13
- },
14
- plugins: {
15
- '@typescript-eslint': plugin,
16
- },
17
- });
@@ -1,8 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- /**
3
- * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
4
- * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
5
- */
6
- declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config;
7
- export default _default;
8
- //# sourceMappingURL=disable-type-checked.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disable-type-checked.d.ts","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;GAGG;yBAED,SAAS,UAAU,CAAC,MAAM,EAC1B,SAAS,UAAU,CAAC,MAAM,KACzB,UAAU,CAAC,MAAM;AAHpB,wBAoEG"}
@@ -1,78 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- /**
10
- * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
11
- * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
12
- */
13
- exports.default = (_plugin, _parser) => ({
14
- name: 'typescript-eslint/disable-type-checked',
15
- rules: {
16
- '@typescript-eslint/await-thenable': 'off',
17
- '@typescript-eslint/consistent-return': 'off',
18
- '@typescript-eslint/consistent-type-exports': 'off',
19
- '@typescript-eslint/dot-notation': 'off',
20
- '@typescript-eslint/naming-convention': 'off',
21
- '@typescript-eslint/no-array-delete': 'off',
22
- '@typescript-eslint/no-base-to-string': 'off',
23
- '@typescript-eslint/no-confusing-void-expression': 'off',
24
- '@typescript-eslint/no-deprecated': 'off',
25
- '@typescript-eslint/no-duplicate-type-constituents': 'off',
26
- '@typescript-eslint/no-floating-promises': 'off',
27
- '@typescript-eslint/no-for-in-array': 'off',
28
- '@typescript-eslint/no-implied-eval': 'off',
29
- '@typescript-eslint/no-meaningless-void-operator': 'off',
30
- '@typescript-eslint/no-misused-promises': 'off',
31
- '@typescript-eslint/no-misused-spread': 'off',
32
- '@typescript-eslint/no-mixed-enums': 'off',
33
- '@typescript-eslint/no-redundant-type-constituents': 'off',
34
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
35
- '@typescript-eslint/no-unnecessary-condition': 'off',
36
- '@typescript-eslint/no-unnecessary-qualifier': 'off',
37
- '@typescript-eslint/no-unnecessary-template-expression': 'off',
38
- '@typescript-eslint/no-unnecessary-type-arguments': 'off',
39
- '@typescript-eslint/no-unnecessary-type-assertion': 'off',
40
- '@typescript-eslint/no-unnecessary-type-parameters': 'off',
41
- '@typescript-eslint/no-unsafe-argument': 'off',
42
- '@typescript-eslint/no-unsafe-assignment': 'off',
43
- '@typescript-eslint/no-unsafe-call': 'off',
44
- '@typescript-eslint/no-unsafe-enum-comparison': 'off',
45
- '@typescript-eslint/no-unsafe-member-access': 'off',
46
- '@typescript-eslint/no-unsafe-return': 'off',
47
- '@typescript-eslint/no-unsafe-type-assertion': 'off',
48
- '@typescript-eslint/no-unsafe-unary-minus': 'off',
49
- '@typescript-eslint/non-nullable-type-assertion-style': 'off',
50
- '@typescript-eslint/only-throw-error': 'off',
51
- '@typescript-eslint/prefer-destructuring': 'off',
52
- '@typescript-eslint/prefer-find': 'off',
53
- '@typescript-eslint/prefer-includes': 'off',
54
- '@typescript-eslint/prefer-nullish-coalescing': 'off',
55
- '@typescript-eslint/prefer-optional-chain': 'off',
56
- '@typescript-eslint/prefer-promise-reject-errors': 'off',
57
- '@typescript-eslint/prefer-readonly': 'off',
58
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
59
- '@typescript-eslint/prefer-reduce-type-parameter': 'off',
60
- '@typescript-eslint/prefer-regexp-exec': 'off',
61
- '@typescript-eslint/prefer-return-this-type': 'off',
62
- '@typescript-eslint/prefer-string-starts-ends-with': 'off',
63
- '@typescript-eslint/promise-function-async': 'off',
64
- '@typescript-eslint/related-getter-setter-pairs': 'off',
65
- '@typescript-eslint/require-array-sort-compare': 'off',
66
- '@typescript-eslint/require-await': 'off',
67
- '@typescript-eslint/restrict-plus-operands': 'off',
68
- '@typescript-eslint/restrict-template-expressions': 'off',
69
- '@typescript-eslint/return-await': 'off',
70
- '@typescript-eslint/strict-boolean-expressions': 'off',
71
- '@typescript-eslint/switch-exhaustiveness-check': 'off',
72
- '@typescript-eslint/unbound-method': 'off',
73
- '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
74
- },
75
- languageOptions: {
76
- parserOptions: { program: null, project: false, projectService: false },
77
- },
78
- });
@@ -1,10 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- /**
3
- * This is a compatibility ruleset that:
4
- * - disables rules from eslint:recommended which are already handled by TypeScript.
5
- * - enables rules that make sense due to TS's typechecking / transpilation.
6
- * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
7
- */
8
- declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config;
9
- export default _default;
10
- //# sourceMappingURL=eslint-recommended.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint-recommended.d.ts","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIrE;;;;;GAKG;yBAED,SAAS,UAAU,CAAC,MAAM,EAC1B,SAAS,UAAU,CAAC,MAAM,KACzB,UAAU,CAAC,MAAM;AAHpB,wBAMG"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const eslint_recommended_raw_1 = __importDefault(require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/eslint-recommended-raw"));
7
- /**
8
- * This is a compatibility ruleset that:
9
- * - disables rules from eslint:recommended which are already handled by TypeScript.
10
- * - enables rules that make sense due to TS's typechecking / transpilation.
11
- * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
12
- */
13
- exports.default = (_plugin, _parser) => ({
14
- ...(0, eslint_recommended_raw_1.default)('minimatch'),
15
- name: 'typescript-eslint/eslint-recommended',
16
- });
@@ -1,8 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- /**
3
- * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
- * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
5
- */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
8
- //# sourceMappingURL=recommended-type-checked-only.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommended-type-checked-only.d.ts","sourceRoot":"","sources":["../../src/configs/recommended-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,wBAsCE"}
@@ -1,53 +0,0 @@
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 `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
16
- * @see {@link https://typescript-eslint.io/users/configs#recommended-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/recommended-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-duplicate-type-constituents': 'error',
28
- '@typescript-eslint/no-floating-promises': 'error',
29
- '@typescript-eslint/no-for-in-array': 'error',
30
- 'no-implied-eval': 'off',
31
- '@typescript-eslint/no-implied-eval': 'error',
32
- '@typescript-eslint/no-misused-promises': 'error',
33
- '@typescript-eslint/no-redundant-type-constituents': 'error',
34
- '@typescript-eslint/no-unnecessary-type-assertion': 'error',
35
- '@typescript-eslint/no-unsafe-argument': 'error',
36
- '@typescript-eslint/no-unsafe-assignment': 'error',
37
- '@typescript-eslint/no-unsafe-call': 'error',
38
- '@typescript-eslint/no-unsafe-enum-comparison': 'error',
39
- '@typescript-eslint/no-unsafe-member-access': 'error',
40
- '@typescript-eslint/no-unsafe-return': 'error',
41
- '@typescript-eslint/no-unsafe-unary-minus': 'error',
42
- 'no-throw-literal': 'off',
43
- '@typescript-eslint/only-throw-error': 'error',
44
- 'prefer-promise-reject-errors': 'off',
45
- '@typescript-eslint/prefer-promise-reject-errors': 'error',
46
- 'require-await': 'off',
47
- '@typescript-eslint/require-await': 'error',
48
- '@typescript-eslint/restrict-plus-operands': 'error',
49
- '@typescript-eslint/restrict-template-expressions': 'error',
50
- '@typescript-eslint/unbound-method': 'error',
51
- },
52
- },
53
- ];