@typescript-eslint/eslint-plugin 8.29.2-alpha.2 → 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.
- package/dist/configs/eslint-recommended-raw.d.ts +1 -1
- package/dist/configs/eslint-recommended-raw.d.ts.map +1 -1
- package/dist/configs/eslint-recommended-raw.js +3 -5
- package/dist/configs/{all.d.ts.map → eslintrc/all.d.ts.map} +1 -1
- package/dist/configs/eslintrc/base.d.ts.map +1 -0
- package/dist/configs/eslintrc/disable-type-checked.d.ts.map +1 -0
- package/dist/configs/{eslint-recommended.d.ts → eslintrc/eslint-recommended.d.ts} +1 -1
- package/dist/configs/eslintrc/eslint-recommended.d.ts.map +1 -0
- package/dist/configs/{eslint-recommended.js → eslintrc/eslint-recommended.js} +1 -1
- package/dist/configs/eslintrc/recommended-type-checked-only.d.ts.map +1 -0
- package/dist/configs/eslintrc/recommended-type-checked.d.ts.map +1 -0
- package/dist/configs/eslintrc/recommended.d.ts.map +1 -0
- package/dist/configs/eslintrc/strict-type-checked-only.d.ts.map +1 -0
- package/dist/configs/eslintrc/strict-type-checked.d.ts.map +1 -0
- package/dist/configs/eslintrc/strict.d.ts.map +1 -0
- package/dist/configs/eslintrc/stylistic-type-checked-only.d.ts.map +1 -0
- package/dist/configs/eslintrc/stylistic-type-checked.d.ts.map +1 -0
- package/dist/configs/eslintrc/stylistic.d.ts.map +1 -0
- package/dist/configs/flat/all.d.ts +8 -0
- package/dist/configs/flat/all.d.ts.map +1 -0
- package/dist/configs/flat/all.js +175 -0
- package/dist/configs/flat/base.d.ts +9 -0
- package/dist/configs/flat/base.d.ts.map +1 -0
- package/dist/configs/flat/base.js +17 -0
- package/dist/configs/flat/disable-type-checked.d.ts +8 -0
- package/dist/configs/flat/disable-type-checked.d.ts.map +1 -0
- package/dist/configs/flat/disable-type-checked.js +78 -0
- package/dist/configs/flat/eslint-recommended.d.ts +10 -0
- package/dist/configs/flat/eslint-recommended.d.ts.map +1 -0
- package/dist/configs/flat/eslint-recommended.js +16 -0
- package/dist/configs/flat/recommended-type-checked-only.d.ts +8 -0
- package/dist/configs/flat/recommended-type-checked-only.d.ts.map +1 -0
- package/dist/configs/flat/recommended-type-checked-only.js +53 -0
- package/dist/configs/flat/recommended-type-checked.d.ts +8 -0
- package/dist/configs/flat/recommended-type-checked.d.ts.map +1 -0
- package/dist/configs/flat/recommended-type-checked.js +76 -0
- package/dist/configs/flat/recommended.d.ts +8 -0
- package/dist/configs/flat/recommended.d.ts.map +1 -0
- package/dist/configs/flat/recommended.js +49 -0
- package/dist/configs/flat/strict-type-checked-only.d.ts +8 -0
- package/dist/configs/flat/strict-type-checked-only.d.ts.map +1 -0
- package/dist/configs/flat/strict-type-checked-only.js +91 -0
- package/dist/configs/flat/strict-type-checked.d.ts +8 -0
- package/dist/configs/flat/strict-type-checked.d.ts.map +1 -0
- package/dist/configs/flat/strict-type-checked.js +126 -0
- package/dist/configs/flat/strict.d.ts +8 -0
- package/dist/configs/flat/strict.d.ts.map +1 -0
- package/dist/configs/flat/strict.js +61 -0
- package/dist/configs/flat/stylistic-type-checked-only.d.ts +8 -0
- package/dist/configs/flat/stylistic-type-checked-only.d.ts.map +1 -0
- package/dist/configs/flat/stylistic-type-checked-only.js +35 -0
- package/dist/configs/flat/stylistic-type-checked.d.ts +8 -0
- package/dist/configs/flat/stylistic-type-checked.d.ts.map +1 -0
- package/dist/configs/flat/stylistic-type-checked.js +49 -0
- package/dist/configs/flat/stylistic.d.ts +8 -0
- package/dist/configs/flat/stylistic.d.ts.map +1 -0
- package/dist/configs/flat/stylistic.js +40 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -42
- package/dist/raw-plugin.d.ts +865 -0
- package/dist/raw-plugin.d.ts.map +1 -0
- package/dist/raw-plugin.js +121 -0
- package/package.json +11 -11
- package/raw-plugin.d.ts +25 -0
- package/dist/configs/base.d.ts.map +0 -1
- package/dist/configs/disable-type-checked.d.ts.map +0 -1
- package/dist/configs/eslint-recommended.d.ts.map +0 -1
- package/dist/configs/recommended-type-checked-only.d.ts.map +0 -1
- package/dist/configs/recommended-type-checked.d.ts.map +0 -1
- package/dist/configs/recommended.d.ts.map +0 -1
- package/dist/configs/strict-type-checked-only.d.ts.map +0 -1
- package/dist/configs/strict-type-checked.d.ts.map +0 -1
- package/dist/configs/strict.d.ts.map +0 -1
- package/dist/configs/stylistic-type-checked-only.d.ts.map +0 -1
- package/dist/configs/stylistic-type-checked.d.ts.map +0 -1
- package/dist/configs/stylistic.d.ts.map +0 -1
- package/eslint-recommended-raw.d.ts +0 -5
- /package/dist/configs/{all.d.ts → eslintrc/all.d.ts} +0 -0
- /package/dist/configs/{all.js → eslintrc/all.js} +0 -0
- /package/dist/configs/{base.d.ts → eslintrc/base.d.ts} +0 -0
- /package/dist/configs/{base.js → eslintrc/base.js} +0 -0
- /package/dist/configs/{disable-type-checked.d.ts → eslintrc/disable-type-checked.d.ts} +0 -0
- /package/dist/configs/{disable-type-checked.js → eslintrc/disable-type-checked.js} +0 -0
- /package/dist/configs/{recommended-type-checked-only.d.ts → eslintrc/recommended-type-checked-only.d.ts} +0 -0
- /package/dist/configs/{recommended-type-checked-only.js → eslintrc/recommended-type-checked-only.js} +0 -0
- /package/dist/configs/{recommended-type-checked.d.ts → eslintrc/recommended-type-checked.d.ts} +0 -0
- /package/dist/configs/{recommended-type-checked.js → eslintrc/recommended-type-checked.js} +0 -0
- /package/dist/configs/{recommended.d.ts → eslintrc/recommended.d.ts} +0 -0
- /package/dist/configs/{recommended.js → eslintrc/recommended.js} +0 -0
- /package/dist/configs/{strict-type-checked-only.d.ts → eslintrc/strict-type-checked-only.d.ts} +0 -0
- /package/dist/configs/{strict-type-checked-only.js → eslintrc/strict-type-checked-only.js} +0 -0
- /package/dist/configs/{strict-type-checked.d.ts → eslintrc/strict-type-checked.d.ts} +0 -0
- /package/dist/configs/{strict-type-checked.js → eslintrc/strict-type-checked.js} +0 -0
- /package/dist/configs/{strict.d.ts → eslintrc/strict.d.ts} +0 -0
- /package/dist/configs/{strict.js → eslintrc/strict.js} +0 -0
- /package/dist/configs/{stylistic-type-checked-only.d.ts → eslintrc/stylistic-type-checked-only.d.ts} +0 -0
- /package/dist/configs/{stylistic-type-checked-only.js → eslintrc/stylistic-type-checked-only.js} +0 -0
- /package/dist/configs/{stylistic-type-checked.d.ts → eslintrc/stylistic-type-checked.d.ts} +0 -0
- /package/dist/configs/{stylistic-type-checked.js → eslintrc/stylistic-type-checked.js} +0 -0
- /package/dist/configs/{stylistic.d.ts → eslintrc/stylistic.d.ts} +0 -0
- /package/dist/configs/{stylistic.js → eslintrc/stylistic.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eslint-recommended-raw.d.ts","sourceRoot":"","sources":["../../src/configs/eslint-recommended-raw.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"eslint-recommended-raw.d.ts","sourceRoot":"","sources":["../../src/configs/eslint-recommended-raw.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,MAAM,GACV,OAAO,MAAM,GAAG,WAAW,KAC1B;IACD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC;CAkChD,CAAC;AAEH,SAAS,MAAM,CAAC"}
|
@@ -1,7 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
// NOTE: this file is isolated to be shared across legacy and flat configs
|
3
|
-
// it is exported via `./use-at-your-own-risk/eslint-recommended-raw`
|
4
|
-
// and it has types manually defined in `./eslint-recommended-raw.d.ts`
|
2
|
+
// NOTE: this file is isolated to be shared across legacy and flat configs.
|
5
3
|
/**
|
6
4
|
* This is a compatibility ruleset that:
|
7
5
|
* - disables rules from eslint:recommended which are already handled by TypeScript.
|
@@ -24,8 +22,8 @@ const config = (style) => ({
|
|
24
22
|
'no-func-assign': 'off', // ts(2630)
|
25
23
|
'no-import-assign': 'off', // ts(2632) & ts(2540)
|
26
24
|
// TODO - remove this once we no longer support ESLint v8
|
27
|
-
'no-new-symbol': 'off', // ts(7009)
|
28
25
|
'no-new-native-nonconstructor': 'off', // ts(7009)
|
26
|
+
'no-new-symbol': 'off', // ts(7009)
|
29
27
|
'no-obj-calls': 'off', // ts(2349)
|
30
28
|
'no-redeclare': 'off', // ts(2451)
|
31
29
|
'no-setter-return': 'off', // ts(2408)
|
@@ -34,10 +32,10 @@ const config = (style) => ({
|
|
34
32
|
'no-unreachable': 'off', // ts(7027)
|
35
33
|
'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358)
|
36
34
|
'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more
|
35
|
+
'no-with': 'off', // ts(1101) & ts(2410)
|
37
36
|
'prefer-const': 'error', // ts provides better types with const
|
38
37
|
'prefer-rest-params': 'error', // ts provides better types with rest args over arguments
|
39
38
|
'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply
|
40
|
-
'no-with': 'off', // ts(1101) & ts(2410)
|
41
39
|
},
|
42
40
|
});
|
43
41
|
module.exports = config;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/all.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAyJiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/base.ts"],"names":[],"mappings":";;;;;;;AAEA,kBAIiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"disable-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/disable-type-checked.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBA8DiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"eslint-recommended.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/eslint-recommended.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;AAMH,kBAEiC"}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
9
9
|
};
|
10
|
-
const eslint_recommended_raw_1 = __importDefault(require("
|
10
|
+
const eslint_recommended_raw_1 = __importDefault(require("../eslint-recommended-raw"));
|
11
11
|
module.exports = {
|
12
12
|
overrides: [(0, eslint_recommended_raw_1.default)('glob')],
|
13
13
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recommended-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/recommended-type-checked-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBA+BiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recommended-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/recommended-type-checked.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAsDiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/recommended.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBA2BiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAqEiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAwGiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strict.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAuCiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stylistic-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/stylistic-type-checked-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,kBAaiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stylistic-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/stylistic-type-checked.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBA2BiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AASA,kBAkBiC"}
|
@@ -0,0 +1,8 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/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"}
|
@@ -0,0 +1,175 @@
|
|
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
|
+
];
|
@@ -0,0 +1,9 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/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"}
|
@@ -0,0 +1,17 @@
|
|
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
|
+
});
|
@@ -0,0 +1,8 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"disable-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/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"}
|
@@ -0,0 +1,78 @@
|
|
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
|
+
});
|
@@ -0,0 +1,10 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"eslint-recommended.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/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"}
|
@@ -0,0 +1,16 @@
|
|
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("../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
|
+
});
|
@@ -0,0 +1,8 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recommended-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/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"}
|
@@ -0,0 +1,53 @@
|
|
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
|
+
];
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
2
|
+
/**
|
3
|
+
* Contains all of `recommended` along with additional recommended rules that require type information.
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
|
5
|
+
*/
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
7
|
+
export default _default;
|
8
|
+
//# sourceMappingURL=recommended-type-checked.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recommended-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/recommended-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,wBA6DE"}
|