@jsse/eslint-config 0.8.1 → 0.8.2
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/CHANGELOG.md +6 -0
- package/README.md +22 -17
- package/dist/cli.js +12850 -611
- package/dist/{const-1mb8msxs.js → const-Bzz9-PXu.js} +19 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +8000 -7979
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -11
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
//#region src/_generated/version.ts
|
|
3
|
-
const VERSION = "0.8.
|
|
3
|
+
const VERSION = "0.8.2";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/const.ts
|
|
6
6
|
/**
|
|
7
7
|
* CONSTANTS LISTS AND REFERENCES OH MY!
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const isEnvDebug = () => {
|
|
10
|
+
return [
|
|
11
|
+
"DEBUG",
|
|
12
|
+
"JSSE_DEBUG",
|
|
13
|
+
"JSSEDEBUG"
|
|
14
|
+
].some((env) => {
|
|
15
|
+
const value = process.env[env];
|
|
16
|
+
return [
|
|
17
|
+
"1",
|
|
18
|
+
"true",
|
|
19
|
+
"t",
|
|
20
|
+
"on",
|
|
21
|
+
"yes",
|
|
22
|
+
"y"
|
|
23
|
+
].includes(value ?? "");
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const DEBUG = isEnvDebug();
|
|
17
27
|
const SLOW_RULES = [
|
|
18
28
|
"@typescript-eslint/no-misused-promises",
|
|
19
29
|
"@typescript-eslint/no-redeclare",
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { Linter } from "eslint";
|
|
|
15
15
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
16
|
|
|
17
17
|
//#region src/_generated/version.d.ts
|
|
18
|
-
declare const VERSION = "0.8.
|
|
18
|
+
declare const VERSION = "0.8.2";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/_generated/dts/builtins.d.ts
|
|
21
21
|
interface BuiltinsRuleOptions {
|
|
@@ -15751,6 +15751,11 @@ interface YmlRuleOptions {
|
|
|
15751
15751
|
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
|
|
15752
15752
|
*/
|
|
15753
15753
|
"yaml/no-tab-indent"?: Linter.RuleEntry<[]>;
|
|
15754
|
+
/**
|
|
15755
|
+
* disallow trailing whitespace at the end of lines
|
|
15756
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-spaces.html
|
|
15757
|
+
*/
|
|
15758
|
+
"yaml/no-trailing-spaces"?: Linter.RuleEntry<YamlNoTrailingSpaces>;
|
|
15754
15759
|
/**
|
|
15755
15760
|
* disallow trailing zeros for floats
|
|
15756
15761
|
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
|
|
@@ -15897,6 +15902,10 @@ type YamlNoMultipleEmptyLines = [] | [{
|
|
|
15897
15902
|
max: number;
|
|
15898
15903
|
maxEOF?: number;
|
|
15899
15904
|
maxBOF?: number;
|
|
15905
|
+
}]; // ----- yaml/no-trailing-spaces -----
|
|
15906
|
+
type YamlNoTrailingSpaces = [] | [{
|
|
15907
|
+
skipBlankLines?: boolean;
|
|
15908
|
+
ignoreComments?: boolean;
|
|
15900
15909
|
}]; // ----- yaml/plain-scalar -----
|
|
15901
15910
|
type YamlPlainScalar = [] | ["always" | "never"] | ["always" | "never", {
|
|
15902
15911
|
ignorePatterns?: string[];
|
|
@@ -16008,10 +16017,10 @@ type TypedFlatConfigItemWithId = Config & {
|
|
|
16008
16017
|
type OptionsCommon = {
|
|
16009
16018
|
debug?: boolean;
|
|
16010
16019
|
/**
|
|
16011
|
-
|
|
16020
|
+
* The prefix for the name of the config item.
|
|
16012
16021
|
* @default "jsse"
|
|
16013
16022
|
*/
|
|
16014
|
-
|
|
16023
|
+
rootId?: string;
|
|
16015
16024
|
/**
|
|
16016
16025
|
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
16017
16026
|
* @default 'lib'
|
|
@@ -16063,7 +16072,7 @@ type OptionsTypeScriptWithTypes = {
|
|
|
16063
16072
|
*/
|
|
16064
16073
|
tsconfig?: string | string[];
|
|
16065
16074
|
/**
|
|
16066
|
-
* Override type
|
|
16075
|
+
* Override only type-aware rules.
|
|
16067
16076
|
*/
|
|
16068
16077
|
overridesTypeAware?: Config["rules"];
|
|
16069
16078
|
/**
|
|
@@ -16165,7 +16174,8 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
|
|
|
16165
16174
|
* Enable Tailwind CSS support.
|
|
16166
16175
|
*
|
|
16167
16176
|
* Passing an object to configure the options.
|
|
16168
|
-
*
|
|
16177
|
+
* Tailwind support is currently disabled; passing this option only logs a warning.
|
|
16178
|
+
* @default false
|
|
16169
16179
|
*/
|
|
16170
16180
|
tailwind?: TailwindOptions;
|
|
16171
16181
|
/**
|
|
@@ -16197,7 +16207,7 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
|
|
|
16197
16207
|
sortTsconfig?: boolean;
|
|
16198
16208
|
/**
|
|
16199
16209
|
* Enable import/export sorting via perfectionist.
|
|
16200
|
-
* @default
|
|
16210
|
+
* @default false
|
|
16201
16211
|
*/
|
|
16202
16212
|
sortImports?: boolean;
|
|
16203
16213
|
tsPrefix?: string;
|
|
@@ -16245,12 +16255,12 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
|
|
|
16245
16255
|
jsonc?: boolean;
|
|
16246
16256
|
/**
|
|
16247
16257
|
* Enable YAML support.
|
|
16248
|
-
* @default
|
|
16258
|
+
* @default false
|
|
16249
16259
|
*/
|
|
16250
16260
|
yaml?: boolean;
|
|
16251
16261
|
/**
|
|
16252
16262
|
* Enable Markdown support.
|
|
16253
|
-
* @default
|
|
16263
|
+
* @default false
|
|
16254
16264
|
*/
|
|
16255
16265
|
markdown?: boolean;
|
|
16256
16266
|
/**
|
|
@@ -16321,6 +16331,10 @@ declare const GLOB_TESTS: string[];
|
|
|
16321
16331
|
declare const GLOB_ALL_SRC: string[];
|
|
16322
16332
|
declare const GLOB_EXCLUDE: string[];
|
|
16323
16333
|
//#endregion
|
|
16334
|
+
//#region src/options.d.ts
|
|
16335
|
+
declare function defaultOptions(): OptionsConfig;
|
|
16336
|
+
declare function normalizeOptions(options?: OptionsConfig): OptionsConfig;
|
|
16337
|
+
//#endregion
|
|
16324
16338
|
//#region src/plugins.d.ts
|
|
16325
16339
|
declare function importPluginReact(): Promise<{
|
|
16326
16340
|
pluginReact: {
|
|
@@ -16717,4 +16731,4 @@ declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
|
16717
16731
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
16718
16732
|
declare function replaceTypescriptEslintPrefix<T>(items: Record<string, T>, tsPrefix: string): void;
|
|
16719
16733
|
//#endregion
|
|
16720
|
-
export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, 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 RenamePefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefix, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
|
|
16734
|
+
export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, 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 RenamePefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefix, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
|