@aryaemami59/eslint-config 0.0.7 → 0.0.8
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/index.cjs +99 -195
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +98 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +98 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +94 -167
- package/dist/index.js.map +1 -1
- package/package.json +13 -16
- package/src/disabledRules.ts +1 -1
- package/src/external.ts +23 -9
- package/src/globalIgnores.ts +1 -1
- package/src/globals.ts +15 -8
- package/src/index.ts +11 -10
- package/src/packageJsonName.ts +1 -1
- package/src/shareableConfigs.ts +147 -135
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
2
|
import prettierConfig from "eslint-config-prettier/flat";
|
|
3
|
-
import { Linter } from "eslint";
|
|
3
|
+
import { ESLint, Linter } from "eslint";
|
|
4
4
|
import { Config, defineConfig } from "eslint/config";
|
|
5
|
-
import { Config as
|
|
5
|
+
import { Config as TSESLintConfig, ConfigArray as TSESLintConfigArray, ConfigWithExtends as TSESLintConfigWithExtends, FlatConfig as TSESLintFlatConfig, InfiniteDepthConfigWithExtends as TSESLintInfiniteDepthConfigWithExtends, config as tseslintConfig, configs as tseslintConfigs, parser as tseslintParser, plugin as tseslintPlugin } from "typescript-eslint";
|
|
6
6
|
|
|
7
7
|
//#region src/disabledRules.d.ts
|
|
8
8
|
/**
|
|
@@ -20,7 +20,6 @@ declare const disabledRules: {
|
|
|
20
20
|
readonly 'ts-ignore': true;
|
|
21
21
|
readonly 'ts-nocheck': true;
|
|
22
22
|
}];
|
|
23
|
-
readonly '@typescript-eslint/consistent-generic-constructors': [0];
|
|
24
23
|
readonly '@typescript-eslint/no-unused-vars': [0, {
|
|
25
24
|
readonly args: "after-used";
|
|
26
25
|
readonly argsIgnorePattern: "^_";
|
|
@@ -64,6 +63,8 @@ declare const globalIgnores: {
|
|
|
64
63
|
declare const vitestGlobals: {
|
|
65
64
|
readonly afterAll: "writable";
|
|
66
65
|
readonly afterEach: "writable";
|
|
66
|
+
readonly aroundAll: "writable";
|
|
67
|
+
readonly aroundEach: "writable";
|
|
67
68
|
readonly assert: "writable";
|
|
68
69
|
readonly assertType: "writable";
|
|
69
70
|
readonly beforeAll: "writable";
|
|
@@ -87,7 +88,7 @@ declare const vitestGlobals: {
|
|
|
87
88
|
* @since 0.0.3
|
|
88
89
|
* @public
|
|
89
90
|
*/
|
|
90
|
-
declare const
|
|
91
|
+
declare const sharedEnvironmentGlobals: {
|
|
91
92
|
readonly AbortController: false;
|
|
92
93
|
readonly AbortSignal: false;
|
|
93
94
|
readonly AsyncDisposableStack: false;
|
|
@@ -264,6 +265,8 @@ declare const globals: {
|
|
|
264
265
|
readonly cookieStore: false;
|
|
265
266
|
readonly CookieStore: false;
|
|
266
267
|
readonly CookieStoreManager: false;
|
|
268
|
+
readonly crashReport: false;
|
|
269
|
+
readonly CrashReportContext: false;
|
|
267
270
|
readonly createImageBitmap: false;
|
|
268
271
|
readonly CreateMonitor: false;
|
|
269
272
|
readonly Credential: false;
|
|
@@ -832,6 +835,7 @@ declare const globals: {
|
|
|
832
835
|
readonly Option: false;
|
|
833
836
|
readonly OrientationSensor: false;
|
|
834
837
|
readonly origin: false;
|
|
838
|
+
readonly Origin: false;
|
|
835
839
|
readonly originAgentCluster: false;
|
|
836
840
|
readonly OscillatorNode: false;
|
|
837
841
|
readonly OTPCredential: false;
|
|
@@ -863,6 +867,7 @@ declare const globals: {
|
|
|
863
867
|
readonly PerformanceScriptTiming: false;
|
|
864
868
|
readonly PerformanceServerTiming: false;
|
|
865
869
|
readonly PerformanceTiming: false;
|
|
870
|
+
readonly PerformanceTimingConfidence: false;
|
|
866
871
|
readonly PeriodicSyncManager: false;
|
|
867
872
|
readonly PeriodicWave: false;
|
|
868
873
|
readonly Permissions: false;
|
|
@@ -1267,6 +1272,8 @@ declare const globals: {
|
|
|
1267
1272
|
} & {
|
|
1268
1273
|
readonly afterAll: "writable";
|
|
1269
1274
|
readonly afterEach: "writable";
|
|
1275
|
+
readonly aroundAll: "writable";
|
|
1276
|
+
readonly aroundEach: "writable";
|
|
1270
1277
|
readonly assert: "writable";
|
|
1271
1278
|
readonly assertType: "writable";
|
|
1272
1279
|
readonly beforeAll: "writable";
|
|
@@ -1333,7 +1340,7 @@ declare const flatESLintConfig: [{
|
|
|
1333
1340
|
}, {
|
|
1334
1341
|
readonly rules: Readonly<Linter.RulesRecord>;
|
|
1335
1342
|
readonly name: `${string}/recommended`;
|
|
1336
|
-
}, {
|
|
1343
|
+
}, ...Config[], {
|
|
1337
1344
|
readonly languageOptions: {
|
|
1338
1345
|
readonly globals: {
|
|
1339
1346
|
readonly AbortController: false;
|
|
@@ -1512,6 +1519,8 @@ declare const flatESLintConfig: [{
|
|
|
1512
1519
|
readonly cookieStore: false;
|
|
1513
1520
|
readonly CookieStore: false;
|
|
1514
1521
|
readonly CookieStoreManager: false;
|
|
1522
|
+
readonly crashReport: false;
|
|
1523
|
+
readonly CrashReportContext: false;
|
|
1515
1524
|
readonly createImageBitmap: false;
|
|
1516
1525
|
readonly CreateMonitor: false;
|
|
1517
1526
|
readonly Credential: false;
|
|
@@ -2080,6 +2089,7 @@ declare const flatESLintConfig: [{
|
|
|
2080
2089
|
readonly Option: false;
|
|
2081
2090
|
readonly OrientationSensor: false;
|
|
2082
2091
|
readonly origin: false;
|
|
2092
|
+
readonly Origin: false;
|
|
2083
2093
|
readonly originAgentCluster: false;
|
|
2084
2094
|
readonly OscillatorNode: false;
|
|
2085
2095
|
readonly OTPCredential: false;
|
|
@@ -2111,6 +2121,7 @@ declare const flatESLintConfig: [{
|
|
|
2111
2121
|
readonly PerformanceScriptTiming: false;
|
|
2112
2122
|
readonly PerformanceServerTiming: false;
|
|
2113
2123
|
readonly PerformanceTiming: false;
|
|
2124
|
+
readonly PerformanceTimingConfidence: false;
|
|
2114
2125
|
readonly PeriodicSyncManager: false;
|
|
2115
2126
|
readonly PeriodicWave: false;
|
|
2116
2127
|
readonly Permissions: false;
|
|
@@ -2515,6 +2526,8 @@ declare const flatESLintConfig: [{
|
|
|
2515
2526
|
} & {
|
|
2516
2527
|
readonly afterAll: "writable";
|
|
2517
2528
|
readonly afterEach: "writable";
|
|
2529
|
+
readonly aroundAll: "writable";
|
|
2530
|
+
readonly aroundEach: "writable";
|
|
2518
2531
|
readonly assert: "writable";
|
|
2519
2532
|
readonly assertType: "writable";
|
|
2520
2533
|
readonly beforeAll: "writable";
|
|
@@ -2531,6 +2544,7 @@ declare const flatESLintConfig: [{
|
|
|
2531
2544
|
readonly vi: "writable";
|
|
2532
2545
|
readonly vitest: "writable";
|
|
2533
2546
|
};
|
|
2547
|
+
readonly parser: Linter.Parser;
|
|
2534
2548
|
readonly parserOptions: {
|
|
2535
2549
|
readonly ecmaVersion: "latest";
|
|
2536
2550
|
readonly projectService: true;
|
|
@@ -2541,6 +2555,9 @@ declare const flatESLintConfig: [{
|
|
|
2541
2555
|
readonly reportUnusedInlineConfigs: 2;
|
|
2542
2556
|
};
|
|
2543
2557
|
readonly name: `${string}/defaults/overrides`;
|
|
2558
|
+
readonly plugins: {
|
|
2559
|
+
readonly '@typescript-eslint': ESLint.Plugin;
|
|
2560
|
+
};
|
|
2544
2561
|
readonly rules: {
|
|
2545
2562
|
readonly '@typescript-eslint/ban-ts-comment': [0, {
|
|
2546
2563
|
readonly minimumDescriptionLength: 3;
|
|
@@ -2549,7 +2566,6 @@ declare const flatESLintConfig: [{
|
|
|
2549
2566
|
readonly 'ts-ignore': true;
|
|
2550
2567
|
readonly 'ts-nocheck': true;
|
|
2551
2568
|
}];
|
|
2552
|
-
readonly '@typescript-eslint/consistent-generic-constructors': [0];
|
|
2553
2569
|
readonly '@typescript-eslint/no-unused-vars': [0, {
|
|
2554
2570
|
readonly args: "after-used";
|
|
2555
2571
|
readonly argsIgnorePattern: "^_";
|
|
@@ -2565,6 +2581,81 @@ declare const flatESLintConfig: [{
|
|
|
2565
2581
|
readonly 'no-undef': [0, {
|
|
2566
2582
|
readonly typeof: false;
|
|
2567
2583
|
}];
|
|
2584
|
+
readonly '@typescript-eslint/consistent-type-definitions': [2, "type"];
|
|
2585
|
+
readonly '@typescript-eslint/consistent-type-exports': [2, {
|
|
2586
|
+
readonly fixMixedExportsWithInlineTypeSpecifier: false;
|
|
2587
|
+
}];
|
|
2588
|
+
readonly '@typescript-eslint/consistent-type-imports': [2, {
|
|
2589
|
+
readonly disallowTypeAnnotations: true;
|
|
2590
|
+
readonly fixStyle: "separate-type-imports";
|
|
2591
|
+
readonly prefer: "type-imports";
|
|
2592
|
+
}];
|
|
2593
|
+
readonly '@typescript-eslint/no-confusing-void-expression': [2, {
|
|
2594
|
+
readonly ignoreArrowShorthand: false;
|
|
2595
|
+
readonly ignoreVoidOperator: false;
|
|
2596
|
+
readonly ignoreVoidReturningFunctions: false;
|
|
2597
|
+
}];
|
|
2598
|
+
readonly '@typescript-eslint/no-duplicate-type-constituents': [2, {
|
|
2599
|
+
readonly ignoreIntersections: false;
|
|
2600
|
+
readonly ignoreUnions: false;
|
|
2601
|
+
}];
|
|
2602
|
+
readonly '@typescript-eslint/no-empty-object-type': [2, {
|
|
2603
|
+
readonly allowInterfaces: "never";
|
|
2604
|
+
readonly allowObjectTypes: "never";
|
|
2605
|
+
}];
|
|
2606
|
+
readonly '@typescript-eslint/no-explicit-any': [2, {
|
|
2607
|
+
readonly fixToUnknown: false;
|
|
2608
|
+
readonly ignoreRestArgs: false;
|
|
2609
|
+
}];
|
|
2610
|
+
readonly '@typescript-eslint/no-inferrable-types': [2, {
|
|
2611
|
+
readonly ignoreParameters: false;
|
|
2612
|
+
readonly ignoreProperties: false;
|
|
2613
|
+
}];
|
|
2614
|
+
readonly '@typescript-eslint/no-invalid-void-type': [2, {
|
|
2615
|
+
readonly allowAsThisParameter: false;
|
|
2616
|
+
readonly allowInGenericTypeArguments: true;
|
|
2617
|
+
}];
|
|
2618
|
+
readonly '@typescript-eslint/no-namespace': [2, {
|
|
2619
|
+
readonly allowDeclarations: false;
|
|
2620
|
+
readonly allowDefinitionFiles: true;
|
|
2621
|
+
}];
|
|
2622
|
+
readonly '@typescript-eslint/no-redundant-type-constituents': [2];
|
|
2623
|
+
readonly '@typescript-eslint/no-require-imports': [2, {
|
|
2624
|
+
readonly allow: readonly [];
|
|
2625
|
+
readonly allowAsImport: true;
|
|
2626
|
+
}];
|
|
2627
|
+
readonly '@typescript-eslint/no-restricted-types': [2, {
|
|
2628
|
+
readonly types: {
|
|
2629
|
+
readonly '{}': {
|
|
2630
|
+
readonly message: "\n - If you want to represent an empty object, use `type EmptyObject = Record<string, never>`.\n - If you want to represent an object literal, use either `type AnyObject = Record<string, any>` or `object`.\n - If you want to represent any non-nullish value, use `type AnyNonNullishValue = NonNullable<unknown>`.";
|
|
2631
|
+
readonly suggest: readonly ["AnyNonNullishValue", "EmptyObject", "AnyObject", "object", "Record<string, never>", "Record<string, any>", "NonNullable<unknown>"];
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2634
|
+
}];
|
|
2635
|
+
readonly '@typescript-eslint/no-unnecessary-type-arguments': [2];
|
|
2636
|
+
readonly '@typescript-eslint/no-unnecessary-type-assertion': [2, {
|
|
2637
|
+
readonly typesToIgnore: readonly [];
|
|
2638
|
+
}];
|
|
2639
|
+
readonly '@typescript-eslint/no-unnecessary-type-parameters': [2];
|
|
2640
|
+
readonly '@typescript-eslint/prefer-nullish-coalescing': [2, {
|
|
2641
|
+
readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false;
|
|
2642
|
+
readonly ignoreBooleanCoercion: false;
|
|
2643
|
+
readonly ignoreConditionalTests: true;
|
|
2644
|
+
readonly ignoreIfStatements: false;
|
|
2645
|
+
readonly ignoreMixedLogicalExpressions: false;
|
|
2646
|
+
readonly ignorePrimitives: {
|
|
2647
|
+
readonly bigint: false;
|
|
2648
|
+
readonly boolean: false;
|
|
2649
|
+
readonly number: false;
|
|
2650
|
+
readonly string: false;
|
|
2651
|
+
};
|
|
2652
|
+
readonly ignoreTernaryTests: false;
|
|
2653
|
+
}];
|
|
2654
|
+
readonly '@typescript-eslint/require-await': [2];
|
|
2655
|
+
readonly '@typescript-eslint/unified-signatures': [2, {
|
|
2656
|
+
readonly ignoreDifferentlyNamedParameters: false;
|
|
2657
|
+
readonly ignoreOverloadsWithDifferentJSDoc: false;
|
|
2658
|
+
}];
|
|
2568
2659
|
readonly 'object-shorthand': [2, "always", {
|
|
2569
2660
|
readonly avoidExplicitReturnArrows: true;
|
|
2570
2661
|
readonly avoidQuotes: true;
|
|
@@ -2684,5 +2775,5 @@ declare const flatESLintConfig: [{
|
|
|
2684
2775
|
*/
|
|
2685
2776
|
declare const createESLintConfig: (additionalOverrides?: Parameters<typeof defineConfig>) => Config[];
|
|
2686
2777
|
//#endregion
|
|
2687
|
-
export { type Config, type
|
|
2778
|
+
export { type Config, type ESLint, type Linter, type TSESLintConfig, type TSESLintConfigArray, type TSESLintConfigWithExtends, type TSESLintFlatConfig, type TSESLintInfiniteDepthConfigWithExtends, createESLintConfig, defineConfig, disabledRules, flatESLintConfig, globalIgnores, js, prettierConfig, sharedEnvironmentGlobals, tseslintConfig, tseslintConfigs, tseslintParser, tseslintPlugin, vitestGlobals };
|
|
2688
2779
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/disabledRules.ts","../src/globalIgnores.ts","../src/globals.ts","../src/shareableConfigs.ts","../src/utils.ts"],"mappings":";;;;;;;;;;;;;;cASa,aAAA;EAAA
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/disabledRules.ts","../src/globalIgnores.ts","../src/globals.ts","../src/shareableConfigs.ts","../src/utils.ts"],"mappings":";;;;;;;;;;;;;;cASa,aAAA;EAAA;;;;;;;;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int-config-prettier/flat";
|
|
3
3
|
import { Config, defineConfig } from "eslint/config";
|
|
4
|
-
import { Config as
|
|
5
|
-
import { Linter } from "eslint";
|
|
4
|
+
import { Config as TSESLintConfig, ConfigArray as TSESLintConfigArray, ConfigWithExtends as TSESLintConfigWithExtends, FlatConfig as TSESLintFlatConfig, InfiniteDepthConfigWithExtends as TSESLintInfiniteDepthConfigWithExtends, config as tseslintConfig, configs as tseslintConfigs, parser as tseslintParser, plugin as tseslintPlugin } from "typescript-eslint";
|
|
5
|
+
import { ESLint, Linter } from "eslint";
|
|
6
6
|
|
|
7
7
|
//#region src/disabledRules.d.ts
|
|
8
8
|
/**
|
|
@@ -20,7 +20,6 @@ declare const disabledRules: {
|
|
|
20
20
|
readonly 'ts-ignore': true;
|
|
21
21
|
readonly 'ts-nocheck': true;
|
|
22
22
|
}];
|
|
23
|
-
readonly '@typescript-eslint/consistent-generic-constructors': [0];
|
|
24
23
|
readonly '@typescript-eslint/no-unused-vars': [0, {
|
|
25
24
|
readonly args: "after-used";
|
|
26
25
|
readonly argsIgnorePattern: "^_";
|
|
@@ -64,6 +63,8 @@ declare const globalIgnores: {
|
|
|
64
63
|
declare const vitestGlobals: {
|
|
65
64
|
readonly afterAll: "writable";
|
|
66
65
|
readonly afterEach: "writable";
|
|
66
|
+
readonly aroundAll: "writable";
|
|
67
|
+
readonly aroundEach: "writable";
|
|
67
68
|
readonly assert: "writable";
|
|
68
69
|
readonly assertType: "writable";
|
|
69
70
|
readonly beforeAll: "writable";
|
|
@@ -87,7 +88,7 @@ declare const vitestGlobals: {
|
|
|
87
88
|
* @since 0.0.3
|
|
88
89
|
* @public
|
|
89
90
|
*/
|
|
90
|
-
declare const
|
|
91
|
+
declare const sharedEnvironmentGlobals: {
|
|
91
92
|
readonly AbortController: false;
|
|
92
93
|
readonly AbortSignal: false;
|
|
93
94
|
readonly AsyncDisposableStack: false;
|
|
@@ -264,6 +265,8 @@ declare const globals: {
|
|
|
264
265
|
readonly cookieStore: false;
|
|
265
266
|
readonly CookieStore: false;
|
|
266
267
|
readonly CookieStoreManager: false;
|
|
268
|
+
readonly crashReport: false;
|
|
269
|
+
readonly CrashReportContext: false;
|
|
267
270
|
readonly createImageBitmap: false;
|
|
268
271
|
readonly CreateMonitor: false;
|
|
269
272
|
readonly Credential: false;
|
|
@@ -832,6 +835,7 @@ declare const globals: {
|
|
|
832
835
|
readonly Option: false;
|
|
833
836
|
readonly OrientationSensor: false;
|
|
834
837
|
readonly origin: false;
|
|
838
|
+
readonly Origin: false;
|
|
835
839
|
readonly originAgentCluster: false;
|
|
836
840
|
readonly OscillatorNode: false;
|
|
837
841
|
readonly OTPCredential: false;
|
|
@@ -863,6 +867,7 @@ declare const globals: {
|
|
|
863
867
|
readonly PerformanceScriptTiming: false;
|
|
864
868
|
readonly PerformanceServerTiming: false;
|
|
865
869
|
readonly PerformanceTiming: false;
|
|
870
|
+
readonly PerformanceTimingConfidence: false;
|
|
866
871
|
readonly PeriodicSyncManager: false;
|
|
867
872
|
readonly PeriodicWave: false;
|
|
868
873
|
readonly Permissions: false;
|
|
@@ -1267,6 +1272,8 @@ declare const globals: {
|
|
|
1267
1272
|
} & {
|
|
1268
1273
|
readonly afterAll: "writable";
|
|
1269
1274
|
readonly afterEach: "writable";
|
|
1275
|
+
readonly aroundAll: "writable";
|
|
1276
|
+
readonly aroundEach: "writable";
|
|
1270
1277
|
readonly assert: "writable";
|
|
1271
1278
|
readonly assertType: "writable";
|
|
1272
1279
|
readonly beforeAll: "writable";
|
|
@@ -1333,7 +1340,7 @@ declare const flatESLintConfig: [{
|
|
|
1333
1340
|
}, {
|
|
1334
1341
|
readonly rules: Readonly<Linter.RulesRecord>;
|
|
1335
1342
|
readonly name: `${string}/recommended`;
|
|
1336
|
-
}, {
|
|
1343
|
+
}, ...Config[], {
|
|
1337
1344
|
readonly languageOptions: {
|
|
1338
1345
|
readonly globals: {
|
|
1339
1346
|
readonly AbortController: false;
|
|
@@ -1512,6 +1519,8 @@ declare const flatESLintConfig: [{
|
|
|
1512
1519
|
readonly cookieStore: false;
|
|
1513
1520
|
readonly CookieStore: false;
|
|
1514
1521
|
readonly CookieStoreManager: false;
|
|
1522
|
+
readonly crashReport: false;
|
|
1523
|
+
readonly CrashReportContext: false;
|
|
1515
1524
|
readonly createImageBitmap: false;
|
|
1516
1525
|
readonly CreateMonitor: false;
|
|
1517
1526
|
readonly Credential: false;
|
|
@@ -2080,6 +2089,7 @@ declare const flatESLintConfig: [{
|
|
|
2080
2089
|
readonly Option: false;
|
|
2081
2090
|
readonly OrientationSensor: false;
|
|
2082
2091
|
readonly origin: false;
|
|
2092
|
+
readonly Origin: false;
|
|
2083
2093
|
readonly originAgentCluster: false;
|
|
2084
2094
|
readonly OscillatorNode: false;
|
|
2085
2095
|
readonly OTPCredential: false;
|
|
@@ -2111,6 +2121,7 @@ declare const flatESLintConfig: [{
|
|
|
2111
2121
|
readonly PerformanceScriptTiming: false;
|
|
2112
2122
|
readonly PerformanceServerTiming: false;
|
|
2113
2123
|
readonly PerformanceTiming: false;
|
|
2124
|
+
readonly PerformanceTimingConfidence: false;
|
|
2114
2125
|
readonly PeriodicSyncManager: false;
|
|
2115
2126
|
readonly PeriodicWave: false;
|
|
2116
2127
|
readonly Permissions: false;
|
|
@@ -2515,6 +2526,8 @@ declare const flatESLintConfig: [{
|
|
|
2515
2526
|
} & {
|
|
2516
2527
|
readonly afterAll: "writable";
|
|
2517
2528
|
readonly afterEach: "writable";
|
|
2529
|
+
readonly aroundAll: "writable";
|
|
2530
|
+
readonly aroundEach: "writable";
|
|
2518
2531
|
readonly assert: "writable";
|
|
2519
2532
|
readonly assertType: "writable";
|
|
2520
2533
|
readonly beforeAll: "writable";
|
|
@@ -2531,6 +2544,7 @@ declare const flatESLintConfig: [{
|
|
|
2531
2544
|
readonly vi: "writable";
|
|
2532
2545
|
readonly vitest: "writable";
|
|
2533
2546
|
};
|
|
2547
|
+
readonly parser: Linter.Parser;
|
|
2534
2548
|
readonly parserOptions: {
|
|
2535
2549
|
readonly ecmaVersion: "latest";
|
|
2536
2550
|
readonly projectService: true;
|
|
@@ -2541,6 +2555,9 @@ declare const flatESLintConfig: [{
|
|
|
2541
2555
|
readonly reportUnusedInlineConfigs: 2;
|
|
2542
2556
|
};
|
|
2543
2557
|
readonly name: `${string}/defaults/overrides`;
|
|
2558
|
+
readonly plugins: {
|
|
2559
|
+
readonly '@typescript-eslint': ESLint.Plugin;
|
|
2560
|
+
};
|
|
2544
2561
|
readonly rules: {
|
|
2545
2562
|
readonly '@typescript-eslint/ban-ts-comment': [0, {
|
|
2546
2563
|
readonly minimumDescriptionLength: 3;
|
|
@@ -2549,7 +2566,6 @@ declare const flatESLintConfig: [{
|
|
|
2549
2566
|
readonly 'ts-ignore': true;
|
|
2550
2567
|
readonly 'ts-nocheck': true;
|
|
2551
2568
|
}];
|
|
2552
|
-
readonly '@typescript-eslint/consistent-generic-constructors': [0];
|
|
2553
2569
|
readonly '@typescript-eslint/no-unused-vars': [0, {
|
|
2554
2570
|
readonly args: "after-used";
|
|
2555
2571
|
readonly argsIgnorePattern: "^_";
|
|
@@ -2565,6 +2581,81 @@ declare const flatESLintConfig: [{
|
|
|
2565
2581
|
readonly 'no-undef': [0, {
|
|
2566
2582
|
readonly typeof: false;
|
|
2567
2583
|
}];
|
|
2584
|
+
readonly '@typescript-eslint/consistent-type-definitions': [2, "type"];
|
|
2585
|
+
readonly '@typescript-eslint/consistent-type-exports': [2, {
|
|
2586
|
+
readonly fixMixedExportsWithInlineTypeSpecifier: false;
|
|
2587
|
+
}];
|
|
2588
|
+
readonly '@typescript-eslint/consistent-type-imports': [2, {
|
|
2589
|
+
readonly disallowTypeAnnotations: true;
|
|
2590
|
+
readonly fixStyle: "separate-type-imports";
|
|
2591
|
+
readonly prefer: "type-imports";
|
|
2592
|
+
}];
|
|
2593
|
+
readonly '@typescript-eslint/no-confusing-void-expression': [2, {
|
|
2594
|
+
readonly ignoreArrowShorthand: false;
|
|
2595
|
+
readonly ignoreVoidOperator: false;
|
|
2596
|
+
readonly ignoreVoidReturningFunctions: false;
|
|
2597
|
+
}];
|
|
2598
|
+
readonly '@typescript-eslint/no-duplicate-type-constituents': [2, {
|
|
2599
|
+
readonly ignoreIntersections: false;
|
|
2600
|
+
readonly ignoreUnions: false;
|
|
2601
|
+
}];
|
|
2602
|
+
readonly '@typescript-eslint/no-empty-object-type': [2, {
|
|
2603
|
+
readonly allowInterfaces: "never";
|
|
2604
|
+
readonly allowObjectTypes: "never";
|
|
2605
|
+
}];
|
|
2606
|
+
readonly '@typescript-eslint/no-explicit-any': [2, {
|
|
2607
|
+
readonly fixToUnknown: false;
|
|
2608
|
+
readonly ignoreRestArgs: false;
|
|
2609
|
+
}];
|
|
2610
|
+
readonly '@typescript-eslint/no-inferrable-types': [2, {
|
|
2611
|
+
readonly ignoreParameters: false;
|
|
2612
|
+
readonly ignoreProperties: false;
|
|
2613
|
+
}];
|
|
2614
|
+
readonly '@typescript-eslint/no-invalid-void-type': [2, {
|
|
2615
|
+
readonly allowAsThisParameter: false;
|
|
2616
|
+
readonly allowInGenericTypeArguments: true;
|
|
2617
|
+
}];
|
|
2618
|
+
readonly '@typescript-eslint/no-namespace': [2, {
|
|
2619
|
+
readonly allowDeclarations: false;
|
|
2620
|
+
readonly allowDefinitionFiles: true;
|
|
2621
|
+
}];
|
|
2622
|
+
readonly '@typescript-eslint/no-redundant-type-constituents': [2];
|
|
2623
|
+
readonly '@typescript-eslint/no-require-imports': [2, {
|
|
2624
|
+
readonly allow: readonly [];
|
|
2625
|
+
readonly allowAsImport: true;
|
|
2626
|
+
}];
|
|
2627
|
+
readonly '@typescript-eslint/no-restricted-types': [2, {
|
|
2628
|
+
readonly types: {
|
|
2629
|
+
readonly '{}': {
|
|
2630
|
+
readonly message: "\n - If you want to represent an empty object, use `type EmptyObject = Record<string, never>`.\n - If you want to represent an object literal, use either `type AnyObject = Record<string, any>` or `object`.\n - If you want to represent any non-nullish value, use `type AnyNonNullishValue = NonNullable<unknown>`.";
|
|
2631
|
+
readonly suggest: readonly ["AnyNonNullishValue", "EmptyObject", "AnyObject", "object", "Record<string, never>", "Record<string, any>", "NonNullable<unknown>"];
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2634
|
+
}];
|
|
2635
|
+
readonly '@typescript-eslint/no-unnecessary-type-arguments': [2];
|
|
2636
|
+
readonly '@typescript-eslint/no-unnecessary-type-assertion': [2, {
|
|
2637
|
+
readonly typesToIgnore: readonly [];
|
|
2638
|
+
}];
|
|
2639
|
+
readonly '@typescript-eslint/no-unnecessary-type-parameters': [2];
|
|
2640
|
+
readonly '@typescript-eslint/prefer-nullish-coalescing': [2, {
|
|
2641
|
+
readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false;
|
|
2642
|
+
readonly ignoreBooleanCoercion: false;
|
|
2643
|
+
readonly ignoreConditionalTests: true;
|
|
2644
|
+
readonly ignoreIfStatements: false;
|
|
2645
|
+
readonly ignoreMixedLogicalExpressions: false;
|
|
2646
|
+
readonly ignorePrimitives: {
|
|
2647
|
+
readonly bigint: false;
|
|
2648
|
+
readonly boolean: false;
|
|
2649
|
+
readonly number: false;
|
|
2650
|
+
readonly string: false;
|
|
2651
|
+
};
|
|
2652
|
+
readonly ignoreTernaryTests: false;
|
|
2653
|
+
}];
|
|
2654
|
+
readonly '@typescript-eslint/require-await': [2];
|
|
2655
|
+
readonly '@typescript-eslint/unified-signatures': [2, {
|
|
2656
|
+
readonly ignoreDifferentlyNamedParameters: false;
|
|
2657
|
+
readonly ignoreOverloadsWithDifferentJSDoc: false;
|
|
2658
|
+
}];
|
|
2568
2659
|
readonly 'object-shorthand': [2, "always", {
|
|
2569
2660
|
readonly avoidExplicitReturnArrows: true;
|
|
2570
2661
|
readonly avoidQuotes: true;
|
|
@@ -2684,5 +2775,5 @@ declare const flatESLintConfig: [{
|
|
|
2684
2775
|
*/
|
|
2685
2776
|
declare const createESLintConfig: (additionalOverrides?: Parameters<typeof defineConfig>) => Config[];
|
|
2686
2777
|
//#endregion
|
|
2687
|
-
export { type Config, type
|
|
2778
|
+
export { type Config, type ESLint, type Linter, type TSESLintConfig, type TSESLintConfigArray, type TSESLintConfigWithExtends, type TSESLintFlatConfig, type TSESLintInfiniteDepthConfigWithExtends, createESLintConfig, defineConfig, disabledRules, flatESLintConfig, globalIgnores, js, prettierConfig, sharedEnvironmentGlobals, tseslintConfig, tseslintConfigs, tseslintParser, tseslintPlugin, vitestGlobals };
|
|
2688
2779
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/disabledRules.ts","../src/globalIgnores.ts","../src/globals.ts","../src/shareableConfigs.ts","../src/utils.ts"],"mappings":";;;;;;;;;;;;;;cASa,aAAA;EAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/disabledRules.ts","../src/globalIgnores.ts","../src/globals.ts","../src/shareableConfigs.ts","../src/utils.ts"],"mappings":";;;;;;;;;;;;;;cASa,aAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;cCEa,aAAA;EAAA,SAoBc,OAAA;EAAA,SAAA,IAAA;AAAA;;;;;;;;;;ADtB3B;cEOa,aAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ADLb;cCqCa,wBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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