@jsse/eslint-config 0.2.19 → 0.2.21
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/README.md +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/esm/cli.d.ts +1 -0
- package/dist/esm/cli.js +96 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/config-fns.d.ts +56 -0
- package/dist/esm/config-fns.js +76 -0
- package/dist/esm/config-fns.js.map +1 -0
- package/dist/esm/configs/antfu.d.ts +4 -0
- package/dist/esm/configs/antfu.js +31 -0
- package/dist/esm/configs/antfu.js.map +1 -0
- package/dist/esm/configs/comments.d.ts +2 -0
- package/dist/esm/configs/comments.js +17 -0
- package/dist/esm/configs/comments.js.map +1 -0
- package/dist/esm/configs/gql.d.ts +2 -0
- package/dist/esm/configs/gql.js +5 -0
- package/dist/esm/configs/gql.js.map +1 -0
- package/dist/esm/configs/ignores.d.ts +2 -0
- package/dist/esm/configs/ignores.js +10 -0
- package/dist/esm/configs/ignores.js.map +1 -0
- package/dist/esm/configs/imports.d.ts +2 -0
- package/dist/esm/configs/imports.js +30 -0
- package/dist/esm/configs/imports.js.map +1 -0
- package/dist/esm/configs/javascript.d.ts +6 -0
- package/dist/esm/configs/javascript.js +263 -0
- package/dist/esm/configs/javascript.js.map +1 -0
- package/dist/esm/configs/jsdoc.d.ts +2 -0
- package/dist/esm/configs/jsdoc.js +32 -0
- package/dist/esm/configs/jsdoc.js.map +1 -0
- package/dist/esm/configs/jsonc.d.ts +4 -0
- package/dist/esm/configs/jsonc.js +77 -0
- package/dist/esm/configs/jsonc.js.map +1 -0
- package/dist/esm/configs/markdown.d.ts +4 -0
- package/dist/esm/configs/markdown.js +123 -0
- package/dist/esm/configs/markdown.js.map +1 -0
- package/dist/esm/configs/n.d.ts +2 -0
- package/dist/esm/configs/n.js +22 -0
- package/dist/esm/configs/n.js.map +1 -0
- package/dist/esm/configs/no-only-tests.d.ts +4 -0
- package/dist/esm/configs/no-only-tests.js +32 -0
- package/dist/esm/configs/no-only-tests.js.map +1 -0
- package/dist/esm/configs/perfectionist.d.ts +7 -0
- package/dist/esm/configs/perfectionist.js +61 -0
- package/dist/esm/configs/perfectionist.js.map +1 -0
- package/dist/esm/configs/prettier.d.ts +7 -0
- package/dist/esm/configs/prettier.js +127 -0
- package/dist/esm/configs/prettier.js.map +1 -0
- package/dist/esm/configs/react.d.ts +6 -0
- package/dist/esm/configs/react.js +302 -0
- package/dist/esm/configs/react.js.map +1 -0
- package/dist/esm/configs/sort-package-json.d.ts +7 -0
- package/dist/esm/configs/sort-package-json.js +90 -0
- package/dist/esm/configs/sort-package-json.js.map +1 -0
- package/dist/esm/configs/sort-tsconfig.d.ts +14 -0
- package/dist/esm/configs/sort-tsconfig.js +134 -0
- package/dist/esm/configs/sort-tsconfig.js.map +1 -0
- package/dist/esm/configs/stylistic.d.ts +2 -0
- package/dist/esm/configs/stylistic.js +38 -0
- package/dist/esm/configs/stylistic.js.map +1 -0
- package/dist/esm/configs/tailwind.d.ts +2 -0
- package/dist/esm/configs/tailwind.js +49 -0
- package/dist/esm/configs/tailwind.js.map +1 -0
- package/dist/esm/configs/toml.d.ts +2 -0
- package/dist/esm/configs/toml.js +51 -0
- package/dist/esm/configs/toml.js.map +1 -0
- package/dist/esm/configs/ts/parser.d.ts +7 -0
- package/dist/esm/configs/ts/parser.js +66 -0
- package/dist/esm/configs/ts/parser.js.map +1 -0
- package/dist/esm/configs/ts/requires-type-checking.d.ts +1 -0
- package/dist/esm/configs/ts/requires-type-checking.js +58 -0
- package/dist/esm/configs/ts/requires-type-checking.js.map +1 -0
- package/dist/esm/configs/ts/typescript-language-options.d.ts +2 -0
- package/dist/esm/configs/ts/typescript-language-options.js +23 -0
- package/dist/esm/configs/ts/typescript-language-options.js.map +1 -0
- package/dist/esm/configs/ts/typescript-rules.d.ts +6 -0
- package/dist/esm/configs/ts/typescript-rules.js +416 -0
- package/dist/esm/configs/ts/typescript-rules.js.map +1 -0
- package/dist/esm/configs/ts/typescript.d.ts +4 -0
- package/dist/esm/configs/ts/typescript.js +110 -0
- package/dist/esm/configs/ts/typescript.js.map +1 -0
- package/dist/esm/configs/tsdoc.d.ts +2 -0
- package/dist/esm/configs/tsdoc.js +17 -0
- package/dist/esm/configs/tsdoc.js.map +1 -0
- package/dist/esm/configs/unicorn.d.ts +2 -0
- package/dist/esm/configs/unicorn.js +116 -0
- package/dist/esm/configs/unicorn.js.map +1 -0
- package/dist/esm/configs/vitest.d.ts +4 -0
- package/dist/esm/configs/vitest.js +30 -0
- package/dist/esm/configs/vitest.js.map +1 -0
- package/dist/esm/configs/yml.d.ts +4 -0
- package/dist/esm/configs/yml.js +52 -0
- package/dist/esm/configs/yml.js.map +1 -0
- package/dist/esm/const.d.ts +5 -0
- package/dist/esm/const.js +12 -0
- package/dist/esm/const.js.map +1 -0
- package/dist/esm/define-config.d.ts +7 -0
- package/dist/esm/define-config.js +234 -0
- package/dist/esm/define-config.js.map +1 -0
- package/dist/esm/dev.d.ts +4 -0
- package/dist/esm/dev.js +26 -0
- package/dist/esm/dev.js.map +1 -0
- package/dist/esm/fixable.d.ts +1 -0
- package/dist/esm/fixable.js +390 -0
- package/dist/esm/fixable.js.map +1 -0
- package/dist/esm/globs.d.ts +25 -0
- package/dist/esm/globs.js +74 -0
- package/dist/esm/globs.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lager.d.ts +31 -0
- package/dist/esm/lager.js +87 -0
- package/dist/esm/lager.js.map +1 -0
- package/dist/esm/plugindex.d.ts +7 -0
- package/dist/esm/plugindex.js +61 -0
- package/dist/esm/plugindex.js.map +1 -0
- package/dist/esm/plugins-all.d.ts +23 -0
- package/dist/esm/plugins-all.js +27 -0
- package/dist/esm/plugins-all.js.map +1 -0
- package/dist/esm/plugins.d.ts +983 -0
- package/dist/esm/plugins.js +113 -0
- package/dist/esm/plugins.js.map +1 -0
- package/dist/esm/presets.d.ts +2 -0
- package/dist/esm/presets.js +13 -0
- package/dist/esm/presets.js.map +1 -0
- package/dist/esm/types.d.ts +255 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.d.ts +51 -0
- package/dist/esm/utils.js +157 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/index.cjs +908 -307
- package/dist/index.d.cts +207 -25
- package/dist/index.d.ts +207 -25
- package/dist/index.js +909 -315
- package/package.json +23 -14
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { ParserOptions } from '@typescript-eslint/parser';
|
|
|
2
2
|
import * as parser from '@typescript-eslint/parser';
|
|
3
3
|
export { parser as parserTs };
|
|
4
4
|
import * as eslint from 'eslint';
|
|
5
|
-
import { Linter } from 'eslint';
|
|
5
|
+
import { Linter, Rule } from 'eslint';
|
|
6
6
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
7
|
+
import * as neverthrow from 'neverthrow';
|
|
7
8
|
import * as _stylistic_eslint_plugin from '@stylistic/eslint-plugin';
|
|
9
|
+
import * as _eslint_markdown from '@eslint/markdown';
|
|
8
10
|
import * as eslint_plugin_yml_lib_types_js from 'eslint-plugin-yml/lib/types.js';
|
|
9
11
|
import * as eslint_plugin_yml_lib_meta_js from 'eslint-plugin-yml/lib/meta.js';
|
|
10
12
|
import * as yaml_eslint_parser from 'yaml-eslint-parser';
|
|
@@ -12,9 +14,9 @@ import * as eslint_plugin_jsonc_types from 'eslint-plugin-jsonc/types';
|
|
|
12
14
|
import * as eslint_plugin_jsonc_meta from 'eslint-plugin-jsonc/meta';
|
|
13
15
|
import * as jsonc_eslint_parser from 'jsonc-eslint-parser';
|
|
14
16
|
import * as eslint_plugin_react from 'eslint-plugin-react';
|
|
17
|
+
export { default as pluginEslintComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
15
18
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
16
19
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
17
|
-
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
18
20
|
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
19
21
|
export { eslintPluginImportX as pluginImport };
|
|
20
22
|
export { default as pluginN } from 'eslint-plugin-n';
|
|
@@ -1777,6 +1779,7 @@ type Complexity =
|
|
|
1777
1779
|
| {
|
|
1778
1780
|
maximum?: number;
|
|
1779
1781
|
max?: number;
|
|
1782
|
+
variant?: "classic" | "modified";
|
|
1780
1783
|
},
|
|
1781
1784
|
];
|
|
1782
1785
|
// ----- computed-property-spacing -----
|
|
@@ -4239,47 +4242,47 @@ type AntfuIndentUnindent =
|
|
|
4239
4242
|
interface EslintCommentsRuleOptions {
|
|
4240
4243
|
/**
|
|
4241
4244
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
4242
|
-
* @see https://
|
|
4245
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
4243
4246
|
*/
|
|
4244
4247
|
"eslint-comments/disable-enable-pair"?: Linter.RuleEntry<EslintCommentsDisableEnablePair>;
|
|
4245
4248
|
/**
|
|
4246
4249
|
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
4247
|
-
* @see https://
|
|
4250
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
4248
4251
|
*/
|
|
4249
4252
|
"eslint-comments/no-aggregating-enable"?: Linter.RuleEntry<[]>;
|
|
4250
4253
|
/**
|
|
4251
4254
|
* disallow duplicate `eslint-disable` comments
|
|
4252
|
-
* @see https://
|
|
4255
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
4253
4256
|
*/
|
|
4254
4257
|
"eslint-comments/no-duplicate-disable"?: Linter.RuleEntry<[]>;
|
|
4255
4258
|
/**
|
|
4256
4259
|
* disallow `eslint-disable` comments about specific rules
|
|
4257
|
-
* @see https://
|
|
4260
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
4258
4261
|
*/
|
|
4259
4262
|
"eslint-comments/no-restricted-disable"?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>;
|
|
4260
4263
|
/**
|
|
4261
4264
|
* disallow `eslint-disable` comments without rule names
|
|
4262
|
-
* @see https://
|
|
4265
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
4263
4266
|
*/
|
|
4264
4267
|
"eslint-comments/no-unlimited-disable"?: Linter.RuleEntry<[]>;
|
|
4265
4268
|
/**
|
|
4266
4269
|
* disallow unused `eslint-disable` comments
|
|
4267
|
-
* @see https://
|
|
4270
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
4268
4271
|
*/
|
|
4269
4272
|
"eslint-comments/no-unused-disable"?: Linter.RuleEntry<[]>;
|
|
4270
4273
|
/**
|
|
4271
4274
|
* disallow unused `eslint-enable` comments
|
|
4272
|
-
* @see https://
|
|
4275
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
4273
4276
|
*/
|
|
4274
4277
|
"eslint-comments/no-unused-enable"?: Linter.RuleEntry<[]>;
|
|
4275
4278
|
/**
|
|
4276
4279
|
* disallow ESLint directive-comments
|
|
4277
|
-
* @see https://
|
|
4280
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
4278
4281
|
*/
|
|
4279
4282
|
"eslint-comments/no-use"?: Linter.RuleEntry<EslintCommentsNoUse>;
|
|
4280
4283
|
/**
|
|
4281
4284
|
* require include descriptions in ESLint directive-comments
|
|
4282
|
-
* @see https://
|
|
4285
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
4283
4286
|
*/
|
|
4284
4287
|
"eslint-comments/require-description"?: Linter.RuleEntry<EslintCommentsRequireDescription>;
|
|
4285
4288
|
}
|
|
@@ -6701,7 +6704,54 @@ type JsoncSpaceUnaryOps =
|
|
|
6701
6704
|
/* prettier-ignore */
|
|
6702
6705
|
|
|
6703
6706
|
|
|
6704
|
-
interface MarkdownRuleOptions {
|
|
6707
|
+
interface MarkdownRuleOptions {
|
|
6708
|
+
/**
|
|
6709
|
+
* Require languages for fenced code blocks.
|
|
6710
|
+
*/
|
|
6711
|
+
"markdown/fenced-code-language"?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
6712
|
+
/**
|
|
6713
|
+
* Enforce heading levels increment by one.
|
|
6714
|
+
*/
|
|
6715
|
+
"markdown/heading-increment"?: Linter.RuleEntry<[]>;
|
|
6716
|
+
/**
|
|
6717
|
+
* Disallow duplicate headings in the same document.
|
|
6718
|
+
*/
|
|
6719
|
+
"markdown/no-duplicate-headings"?: Linter.RuleEntry<[]>;
|
|
6720
|
+
/**
|
|
6721
|
+
* Disallow empty links.
|
|
6722
|
+
*/
|
|
6723
|
+
"markdown/no-empty-links"?: Linter.RuleEntry<[]>;
|
|
6724
|
+
/**
|
|
6725
|
+
* Disallow HTML tags.
|
|
6726
|
+
*/
|
|
6727
|
+
"markdown/no-html"?: Linter.RuleEntry<MarkdownNoHtml>;
|
|
6728
|
+
/**
|
|
6729
|
+
* Disallow invalid label references.
|
|
6730
|
+
*/
|
|
6731
|
+
"markdown/no-invalid-label-refs"?: Linter.RuleEntry<[]>;
|
|
6732
|
+
/**
|
|
6733
|
+
* Disallow missing label references.
|
|
6734
|
+
*/
|
|
6735
|
+
"markdown/no-missing-label-refs"?: Linter.RuleEntry<[]>;
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
/* ======= Declarations ======= */
|
|
6739
|
+
// ----- markdown/fenced-code-language -----
|
|
6740
|
+
type MarkdownFencedCodeLanguage =
|
|
6741
|
+
| []
|
|
6742
|
+
| [
|
|
6743
|
+
{
|
|
6744
|
+
required?: string[];
|
|
6745
|
+
},
|
|
6746
|
+
];
|
|
6747
|
+
// ----- markdown/no-html -----
|
|
6748
|
+
type MarkdownNoHtml =
|
|
6749
|
+
| []
|
|
6750
|
+
| [
|
|
6751
|
+
{
|
|
6752
|
+
allowed?: string[];
|
|
6753
|
+
},
|
|
6754
|
+
];
|
|
6705
6755
|
|
|
6706
6756
|
/* eslint-disable */
|
|
6707
6757
|
/* prettier-ignore */
|
|
@@ -6798,7 +6848,7 @@ interface NRuleOptions {
|
|
|
6798
6848
|
* disallow the use of `process.env`
|
|
6799
6849
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-env.md
|
|
6800
6850
|
*/
|
|
6801
|
-
"n/no-process-env"?: Linter.RuleEntry<
|
|
6851
|
+
"n/no-process-env"?: Linter.RuleEntry<NNoProcessEnv>;
|
|
6802
6852
|
/**
|
|
6803
6853
|
* disallow the use of `process.exit()`
|
|
6804
6854
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md
|
|
@@ -7021,6 +7071,9 @@ type NNoDeprecatedApi =
|
|
|
7021
7071
|
| "readline.getStringWidth"
|
|
7022
7072
|
| "readline.isFullWidthCodePoint"
|
|
7023
7073
|
| "readline.stripVTControlCharacters"
|
|
7074
|
+
| "repl.REPLServer"
|
|
7075
|
+
| "repl.Recoverable"
|
|
7076
|
+
| "repl.REPL_MODE_MAGIC"
|
|
7024
7077
|
| "safe-buffer.Buffer()"
|
|
7025
7078
|
| "new safe-buffer.Buffer()"
|
|
7026
7079
|
| "safe-buffer.SlowBuffer"
|
|
@@ -7059,6 +7112,15 @@ type NNoDeprecatedApi =
|
|
|
7059
7112
|
| "util.puts"
|
|
7060
7113
|
| "util._extend"
|
|
7061
7114
|
| "vm.runInDebugContext"
|
|
7115
|
+
| "zlib.BrotliCompress()"
|
|
7116
|
+
| "zlib.BrotliDecompress()"
|
|
7117
|
+
| "zlib.Deflate()"
|
|
7118
|
+
| "zlib.DeflateRaw()"
|
|
7119
|
+
| "zlib.Gunzip()"
|
|
7120
|
+
| "zlib.Gzip()"
|
|
7121
|
+
| "zlib.Inflate()"
|
|
7122
|
+
| "zlib.InflateRaw()"
|
|
7123
|
+
| "zlib.Unzip()"
|
|
7062
7124
|
)[];
|
|
7063
7125
|
ignoreGlobalItems?: (
|
|
7064
7126
|
| "Buffer()"
|
|
@@ -7185,6 +7247,7 @@ type NNoMissingImport =
|
|
|
7185
7247
|
allowModules?: string[];
|
|
7186
7248
|
resolvePaths?: string[];
|
|
7187
7249
|
tryExtensions?: string[];
|
|
7250
|
+
ignoreTypeImport?: boolean;
|
|
7188
7251
|
tsconfigPath?: string;
|
|
7189
7252
|
typescriptExtensionMap?:
|
|
7190
7253
|
| unknown[][]
|
|
@@ -7227,6 +7290,14 @@ type NNoMixedRequires =
|
|
|
7227
7290
|
allowCall?: boolean;
|
|
7228
7291
|
},
|
|
7229
7292
|
];
|
|
7293
|
+
// ----- n/no-process-env -----
|
|
7294
|
+
type NNoProcessEnv =
|
|
7295
|
+
| []
|
|
7296
|
+
| [
|
|
7297
|
+
{
|
|
7298
|
+
allowedVariables?: string[];
|
|
7299
|
+
},
|
|
7300
|
+
];
|
|
7230
7301
|
// ----- n/no-restricted-import -----
|
|
7231
7302
|
type NNoRestrictedImport =
|
|
7232
7303
|
| []
|
|
@@ -8360,6 +8431,31 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8360
8431
|
| "PerformanceObserverEntryList"
|
|
8361
8432
|
| "PerformanceResourceTiming"
|
|
8362
8433
|
| "performance"
|
|
8434
|
+
| "performance.clearMarks"
|
|
8435
|
+
| "performance.clearMeasures"
|
|
8436
|
+
| "performance.clearResourceTimings"
|
|
8437
|
+
| "performance.eventLoopUtilization"
|
|
8438
|
+
| "performance.getEntries"
|
|
8439
|
+
| "performance.getEntriesByName"
|
|
8440
|
+
| "performance.getEntriesByType"
|
|
8441
|
+
| "performance.mark"
|
|
8442
|
+
| "performance.markResourceTiming"
|
|
8443
|
+
| "performance.measure"
|
|
8444
|
+
| "performance.nodeTiming"
|
|
8445
|
+
| "performance.nodeTiming.bootstrapComplete"
|
|
8446
|
+
| "performance.nodeTiming.environment"
|
|
8447
|
+
| "performance.nodeTiming.idleTime"
|
|
8448
|
+
| "performance.nodeTiming.loopExit"
|
|
8449
|
+
| "performance.nodeTiming.loopStart"
|
|
8450
|
+
| "performance.nodeTiming.nodeStart"
|
|
8451
|
+
| "performance.nodeTiming.uvMetricsInfo"
|
|
8452
|
+
| "performance.nodeTiming.v8Start"
|
|
8453
|
+
| "performance.now"
|
|
8454
|
+
| "performance.onresourcetimingbufferfull"
|
|
8455
|
+
| "performance.setResourceTimingBufferSize"
|
|
8456
|
+
| "performance.timeOrigin"
|
|
8457
|
+
| "performance.timerify"
|
|
8458
|
+
| "performance.toJSON"
|
|
8363
8459
|
| "process"
|
|
8364
8460
|
| "process.allowedNodeEnvironmentFlags"
|
|
8365
8461
|
| "process.availableMemory"
|
|
@@ -9021,6 +9117,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9021
9117
|
| "http.Server"
|
|
9022
9118
|
| "inspector"
|
|
9023
9119
|
| "inspector.Session"
|
|
9120
|
+
| "inspector.Network.requestWillBeSent"
|
|
9121
|
+
| "inspector.Network.responseReceived"
|
|
9122
|
+
| "inspector.Network.loadingFinished"
|
|
9123
|
+
| "inspector.Network.loadingFailed"
|
|
9024
9124
|
| "inspector.console"
|
|
9025
9125
|
| "inspector.close"
|
|
9026
9126
|
| "inspector.open"
|
|
@@ -9034,8 +9134,11 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9034
9134
|
| "inspector/promises.url"
|
|
9035
9135
|
| "inspector/promises.waitForDebugger"
|
|
9036
9136
|
| "module.builtinModules"
|
|
9137
|
+
| "module.constants.compileCacheStatus"
|
|
9037
9138
|
| "module.createRequire"
|
|
9038
9139
|
| "module.createRequireFromPath"
|
|
9140
|
+
| "module.enableCompileCache"
|
|
9141
|
+
| "module.getCompileCacheDir"
|
|
9039
9142
|
| "module.isBuiltin"
|
|
9040
9143
|
| "module.register"
|
|
9041
9144
|
| "module.syncBuiltinESMExports"
|
|
@@ -9044,6 +9147,8 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9044
9147
|
| "module.Module.builtinModules"
|
|
9045
9148
|
| "module.Module.createRequire"
|
|
9046
9149
|
| "module.Module.createRequireFromPath"
|
|
9150
|
+
| "module.Module.enableCompileCache"
|
|
9151
|
+
| "module.Module.getCompileCacheDir"
|
|
9047
9152
|
| "module.Module.isBuiltin"
|
|
9048
9153
|
| "module.Module.register"
|
|
9049
9154
|
| "module.Module.syncBuiltinESMExports"
|
|
@@ -9166,6 +9271,31 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9166
9271
|
| "path/win32.toNamespacedPath"
|
|
9167
9272
|
| "perf_hooks"
|
|
9168
9273
|
| "perf_hooks.performance"
|
|
9274
|
+
| "perf_hooks.performance.clearMarks"
|
|
9275
|
+
| "perf_hooks.performance.clearMeasures"
|
|
9276
|
+
| "perf_hooks.performance.clearResourceTimings"
|
|
9277
|
+
| "perf_hooks.performance.eventLoopUtilization"
|
|
9278
|
+
| "perf_hooks.performance.getEntries"
|
|
9279
|
+
| "perf_hooks.performance.getEntriesByName"
|
|
9280
|
+
| "perf_hooks.performance.getEntriesByType"
|
|
9281
|
+
| "perf_hooks.performance.mark"
|
|
9282
|
+
| "perf_hooks.performance.markResourceTiming"
|
|
9283
|
+
| "perf_hooks.performance.measure"
|
|
9284
|
+
| "perf_hooks.performance.nodeTiming"
|
|
9285
|
+
| "perf_hooks.performance.nodeTiming.bootstrapComplete"
|
|
9286
|
+
| "perf_hooks.performance.nodeTiming.environment"
|
|
9287
|
+
| "perf_hooks.performance.nodeTiming.idleTime"
|
|
9288
|
+
| "perf_hooks.performance.nodeTiming.loopExit"
|
|
9289
|
+
| "perf_hooks.performance.nodeTiming.loopStart"
|
|
9290
|
+
| "perf_hooks.performance.nodeTiming.nodeStart"
|
|
9291
|
+
| "perf_hooks.performance.nodeTiming.uvMetricsInfo"
|
|
9292
|
+
| "perf_hooks.performance.nodeTiming.v8Start"
|
|
9293
|
+
| "perf_hooks.performance.now"
|
|
9294
|
+
| "perf_hooks.performance.onresourcetimingbufferfull"
|
|
9295
|
+
| "perf_hooks.performance.setResourceTimingBufferSize"
|
|
9296
|
+
| "perf_hooks.performance.timeOrigin"
|
|
9297
|
+
| "perf_hooks.performance.timerify"
|
|
9298
|
+
| "perf_hooks.performance.toJSON"
|
|
9169
9299
|
| "perf_hooks.createHistogram"
|
|
9170
9300
|
| "perf_hooks.monitorEventLoopDelay"
|
|
9171
9301
|
| "perf_hooks.PerformanceEntry"
|
|
@@ -9210,6 +9340,17 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9210
9340
|
| "readline/promises.createInterface"
|
|
9211
9341
|
| "readline/promises.Interface"
|
|
9212
9342
|
| "readline/promises.Readline"
|
|
9343
|
+
| "repl"
|
|
9344
|
+
| "repl.start"
|
|
9345
|
+
| "repl.writer"
|
|
9346
|
+
| "repl.REPLServer()"
|
|
9347
|
+
| "repl.REPLServer"
|
|
9348
|
+
| "repl.REPL_MODE_MAGIC"
|
|
9349
|
+
| "repl.REPL_MODE_SLOPPY"
|
|
9350
|
+
| "repl.REPL_MODE_STRICT"
|
|
9351
|
+
| "repl.Recoverable()"
|
|
9352
|
+
| "repl.Recoverable"
|
|
9353
|
+
| "repl.builtinModules"
|
|
9213
9354
|
| "sea"
|
|
9214
9355
|
| "sea.isSea"
|
|
9215
9356
|
| "sea.getAsset"
|
|
@@ -9226,6 +9367,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9226
9367
|
| "stream.finished"
|
|
9227
9368
|
| "stream.pipeline"
|
|
9228
9369
|
| "stream.compose"
|
|
9370
|
+
| "stream.duplexPair"
|
|
9229
9371
|
| "stream.Readable"
|
|
9230
9372
|
| "stream.Readable.from"
|
|
9231
9373
|
| "stream.Readable.isDisturbed"
|
|
@@ -9387,6 +9529,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9387
9529
|
| "util.deprecate"
|
|
9388
9530
|
| "util.format"
|
|
9389
9531
|
| "util.formatWithOptions"
|
|
9532
|
+
| "util.getCallSite"
|
|
9390
9533
|
| "util.getSystemErrorName"
|
|
9391
9534
|
| "util.getSystemErrorMap"
|
|
9392
9535
|
| "util.inherits"
|
|
@@ -9605,14 +9748,23 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9605
9748
|
| "zlib.inflateRawSync"
|
|
9606
9749
|
| "zlib.unzip"
|
|
9607
9750
|
| "zlib.unzipSync"
|
|
9751
|
+
| "zlib.BrotliCompress()"
|
|
9608
9752
|
| "zlib.BrotliCompress"
|
|
9753
|
+
| "zlib.BrotliDecompress()"
|
|
9609
9754
|
| "zlib.BrotliDecompress"
|
|
9755
|
+
| "zlib.Deflate()"
|
|
9610
9756
|
| "zlib.Deflate"
|
|
9757
|
+
| "zlib.DeflateRaw()"
|
|
9611
9758
|
| "zlib.DeflateRaw"
|
|
9759
|
+
| "zlib.Gunzip()"
|
|
9612
9760
|
| "zlib.Gunzip"
|
|
9761
|
+
| "zlib.Gzip()"
|
|
9613
9762
|
| "zlib.Gzip"
|
|
9763
|
+
| "zlib.Inflate()"
|
|
9614
9764
|
| "zlib.Inflate"
|
|
9765
|
+
| "zlib.InflateRaw()"
|
|
9615
9766
|
| "zlib.InflateRaw"
|
|
9767
|
+
| "zlib.Unzip()"
|
|
9616
9768
|
| "zlib.Unzip"
|
|
9617
9769
|
| "zlib"
|
|
9618
9770
|
)[];
|
|
@@ -21208,7 +21360,7 @@ type RuleOptionsUnion = BuiltinsRuleOptions &
|
|
|
21208
21360
|
type Awaitable<T> = T | Promise<T>;
|
|
21209
21361
|
type Rules = RuleOptionsUnion;
|
|
21210
21362
|
type LanguageOptions = Linter.Config["languageOptions"];
|
|
21211
|
-
type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"
|
|
21363
|
+
type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
|
|
21212
21364
|
/**
|
|
21213
21365
|
* Custom name of each config item
|
|
21214
21366
|
*/
|
|
@@ -21219,12 +21371,6 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
|
|
|
21219
21371
|
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
21220
21372
|
*/
|
|
21221
21373
|
plugins?: Record<string, any>;
|
|
21222
|
-
/**
|
|
21223
|
-
* An object containing a name-value mapping of rules to use.
|
|
21224
|
-
*/
|
|
21225
|
-
rules?: {
|
|
21226
|
-
[key: string]: Linter.RuleEntry;
|
|
21227
|
-
} & Rules;
|
|
21228
21374
|
};
|
|
21229
21375
|
type RuleName = keyof Rules;
|
|
21230
21376
|
type TypedFlatConfigItemWithId = TypedFlatConfigItem & {
|
|
@@ -21473,6 +21619,8 @@ declare const SLOW_RULES: RuleName[];
|
|
|
21473
21619
|
* Construct an array of ESLint flat config items.
|
|
21474
21620
|
*/
|
|
21475
21621
|
declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
21622
|
+
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
21623
|
+
type DefineConfig = typeof defineConfig;
|
|
21476
21624
|
|
|
21477
21625
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
21478
21626
|
declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
@@ -21490,6 +21638,7 @@ declare const GLOB_JSON5 = "**/*.json5";
|
|
|
21490
21638
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
21491
21639
|
declare const GLOB_TOML = "**/*.toml";
|
|
21492
21640
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
21641
|
+
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
21493
21642
|
declare const GLOB_GRAPHQL: string[];
|
|
21494
21643
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
21495
21644
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
@@ -22447,7 +22596,9 @@ declare function importYmlLibs(): Promise<{
|
|
|
22447
22596
|
};
|
|
22448
22597
|
}>;
|
|
22449
22598
|
declare function importPluginMarkdown(): Promise<{
|
|
22450
|
-
pluginMarkdown:
|
|
22599
|
+
pluginMarkdown: eslint.ESLint.Plugin & {
|
|
22600
|
+
languages: Record<string, _eslint_markdown.Language>;
|
|
22601
|
+
};
|
|
22451
22602
|
}>;
|
|
22452
22603
|
declare function importPluginJsdoc(): Promise<{
|
|
22453
22604
|
pluginJsdoc: eslint.ESLint.Plugin & {
|
|
@@ -22457,7 +22608,7 @@ declare function importPluginJsdoc(): Promise<{
|
|
|
22457
22608
|
declare function importPluginTsdoc(): Promise<{
|
|
22458
22609
|
pluginTsdoc: {
|
|
22459
22610
|
rules: {
|
|
22460
|
-
[x: string]:
|
|
22611
|
+
[x: string]: Rule.RuleModule;
|
|
22461
22612
|
};
|
|
22462
22613
|
};
|
|
22463
22614
|
}>;
|
|
@@ -22467,9 +22618,11 @@ declare function importPluginStylistic(): Promise<{
|
|
|
22467
22618
|
declare function importPluginTailwind(): Promise<{
|
|
22468
22619
|
pluginTailwind: any;
|
|
22469
22620
|
}>;
|
|
22621
|
+
declare function safeImportPluginTailwind(): Promise<neverthrow.Ok<{
|
|
22622
|
+
pluginTailwind: any;
|
|
22623
|
+
}, never> | neverthrow.Err<never, Error>>;
|
|
22470
22624
|
|
|
22471
|
-
declare
|
|
22472
|
-
declare function jsseReact(): Promise<TypedFlatConfigItem[]>;
|
|
22625
|
+
declare const jsseReact: DefineConfig;
|
|
22473
22626
|
|
|
22474
22627
|
/**
|
|
22475
22628
|
* Combine array and non-array configs into a single array.
|
|
@@ -22491,5 +22644,34 @@ declare function isInEditor(): boolean;
|
|
|
22491
22644
|
* @returns unique strings
|
|
22492
22645
|
*/
|
|
22493
22646
|
declare function uniqueStrings(...strings: (string | string[])[]): string[];
|
|
22647
|
+
declare const parserPlain: {
|
|
22648
|
+
meta: {
|
|
22649
|
+
name: string;
|
|
22650
|
+
};
|
|
22651
|
+
parseForESLint: (code: string) => {
|
|
22652
|
+
ast: {
|
|
22653
|
+
body: never[];
|
|
22654
|
+
comments: never[];
|
|
22655
|
+
loc: {
|
|
22656
|
+
end: number;
|
|
22657
|
+
start: number;
|
|
22658
|
+
};
|
|
22659
|
+
range: number[];
|
|
22660
|
+
tokens: never[];
|
|
22661
|
+
type: string;
|
|
22662
|
+
};
|
|
22663
|
+
scopeManager: undefined;
|
|
22664
|
+
services: {
|
|
22665
|
+
isPlain: boolean;
|
|
22666
|
+
};
|
|
22667
|
+
visitorKeys: {
|
|
22668
|
+
Program: never[];
|
|
22669
|
+
};
|
|
22670
|
+
};
|
|
22671
|
+
};
|
|
22672
|
+
declare function turnOffRules(configs: TypedFlatConfigItem[], off: string[]): TypedFlatConfigItem[];
|
|
22673
|
+
declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, level: Linter.RuleSeverity): Linter.RuleEntry<any>;
|
|
22674
|
+
declare function error2warn<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
22675
|
+
declare function warn2error<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
22494
22676
|
|
|
22495
|
-
export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, combine, combineAsync, jsse as default, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact,
|
|
22677
|
+
export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, renameRules, safeImportPluginTailwind, turnOffRules, uniqueStrings, warn2error };
|