@bfra.me/eslint-config 0.13.0 → 0.14.0

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.
@@ -0,0 +1,8 @@
1
+ import {createRequire} from 'node:module';const require=createRequire(import.meta.url);
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+
5
+ export {
6
+ __name
7
+ };
8
+ //# sourceMappingURL=chunk-7WBIXPGZ.js.map
package/lib/index.d.ts CHANGED
@@ -11,6 +11,11 @@ import { builders, printer, utils } from './doc.js';
11
11
 
12
12
 
13
13
  interface Rules {
14
+ /**
15
+ * Missing module for config
16
+ * @see https://github.com/bfra-me/works
17
+ */
18
+ '@bfra.me/missing-module-for-config'?: Linter.RuleEntry<BfraMeMissingModuleForConfig>
14
19
  /**
15
20
  * Require that function overload signatures be consecutive
16
21
  * @see https://typescript-eslint.io/rules/adjacent-overload-signatures
@@ -1512,6 +1517,11 @@ interface Rules {
1512
1517
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
1513
1518
  */
1514
1519
  'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
1520
+ /**
1521
+ * validate object with JSON Schema.
1522
+ * @see https://ota-meshi.github.io/eslint-plugin-json-schema-validator/rules/no-invalid.html
1523
+ */
1524
+ 'json-schema-validator/no-invalid'?: Linter.RuleEntry<JsonSchemaValidatorNoInvalid>
1515
1525
  /**
1516
1526
  * enforce line breaks after opening and before closing array brackets
1517
1527
  * @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html
@@ -5015,6 +5025,8 @@ interface Rules {
5015
5025
  }
5016
5026
 
5017
5027
  /* ======= Declarations ======= */
5028
+ // ----- @bfra.me/missing-module-for-config -----
5029
+ type BfraMeMissingModuleForConfig = []|[string[]]
5018
5030
  // ----- @typescript-eslint/array-type -----
5019
5031
  type TypescriptEslintArrayType = []|[{
5020
5032
 
@@ -7128,6 +7140,21 @@ type JsdocTextEscaping = []|[{
7128
7140
  type JsdocValidTypes = []|[{
7129
7141
  allowEmptyNamepaths?: boolean
7130
7142
  }]
7143
+ // ----- json-schema-validator/no-invalid -----
7144
+ type JsonSchemaValidatorNoInvalid = []|[(string | {
7145
+ schemas?: {
7146
+ name?: string
7147
+ description?: string
7148
+
7149
+ fileMatch: [string, ...(string)[]]
7150
+ schema: ({
7151
+ [k: string]: unknown | undefined
7152
+ } | string)
7153
+ [k: string]: unknown | undefined
7154
+ }[]
7155
+ useSchemastoreCatalog?: boolean
7156
+ mergeSchemas?: (boolean | [("$schema" | "catalog" | "options"), ("$schema" | "catalog" | "options"), ...(("$schema" | "catalog" | "options"))[]])
7157
+ })]
7131
7158
  // ----- jsonc/array-bracket-newline -----
7132
7159
  type JsoncArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
7133
7160
  multiline?: boolean
@@ -10388,6 +10415,7 @@ type ConfigNames =
10388
10415
  | '@bfra.me/imports'
10389
10416
  | '@bfra.me/command'
10390
10417
  | '@bfra.me/prettier'
10418
+ | '@bfra.me/prettier/overrides'
10391
10419
  | '@bfra.me/perfectionist'
10392
10420
  | '@bfra.me/unicorn'
10393
10421
  | '@bfra.me/typescript/plugins'
@@ -10399,10 +10427,27 @@ type ConfigNames =
10399
10427
  | '@bfra.me/vitest/plugin'
10400
10428
  | '@bfra.me/vitest/rules'
10401
10429
  | '@bfra.me/jsonc/plugins'
10430
+ | '@bfra.me/jsonc/unnamed1'
10431
+ | '@bfra.me/jsonc/json-schema/plugins'
10432
+ | '@bfra.me/jsonc/json-schema/unnamed1'
10433
+ | '@bfra.me/jsonc/json-schema/unnamed2'
10434
+ | '@bfra.me/jsonc/json-schema'
10402
10435
  | '@bfra.me/jsonc'
10403
10436
  | '@bfra.me/toml/plugins'
10437
+ | '@bfra.me/toml/unnamed1'
10438
+ | '@bfra.me/toml/unnamed2'
10439
+ | '@bfra.me/toml/json-schema/plugins'
10440
+ | '@bfra.me/toml/json-schema/unnamed1'
10441
+ | '@bfra.me/toml/json-schema/unnamed2'
10442
+ | '@bfra.me/toml/json-schema'
10404
10443
  | '@bfra.me/toml'
10405
10444
  | '@bfra.me/yaml/plugins'
10445
+ | '@bfra.me/yaml/unnamed1'
10446
+ | '@bfra.me/yaml/unnamed2'
10447
+ | '@bfra.me/yaml/json-schema/plugins'
10448
+ | '@bfra.me/yaml/json-schema/unnamed1'
10449
+ | '@bfra.me/yaml/json-schema/unnamed2'
10450
+ | '@bfra.me/yaml/json-schema'
10406
10451
  | '@bfra.me/yaml'
10407
10452
  | '@bfra.me/markdown/recommended/plugin'
10408
10453
  | '@bfra.me/markdown/recommended/processor'
@@ -10436,6 +10481,12 @@ declare function epilogue(): Promise<Config$1[]>;
10436
10481
 
10437
10482
  declare function eslintComments(): Promise<Config$1[]>;
10438
10483
 
10484
+ type FallbackOptions = {
10485
+ files?: Config$1['files'];
10486
+ languageOptions?: Config$1['languageOptions'];
10487
+ };
10488
+ declare function fallback(missingList: string[], options?: FallbackOptions): Promise<Config$1[]>;
10489
+
10439
10490
  declare function ignores(ignores?: string[]): Promise<Config$1[]>;
10440
10491
 
10441
10492
  declare function imports(): Promise<Config$1[]>;
@@ -11344,6 +11395,7 @@ declare function jsdoc(): Promise<Config$1[]>;
11344
11395
  * Represents the options for configuring JSONC files in the ESLint configuration.
11345
11396
  */
11346
11397
  type JsoncOptions = Flatten<OptionsFiles & OptionsOverrides>;
11398
+ declare const jsoncFiles: string[];
11347
11399
  /**
11348
11400
  * Configures the ESLint rules for JSONC files.
11349
11401
  * @param options - The configuration options for JSONC files.
@@ -11355,6 +11407,9 @@ declare function jsonc(options?: JsoncOptions): Promise<Config$1[]>;
11355
11407
  * Represents the options for configuring Markdown files in the ESLint configuration.
11356
11408
  */
11357
11409
  type MarkdownOptions = Flatten<OptionsFiles & OptionsOverrides & OptionsPrettier>;
11410
+ declare const mdFiles: string[];
11411
+ declare const codeInMdFiles: string[];
11412
+ declare const extInMdFiles: string[];
11358
11413
  /**
11359
11414
  * Configures the ESLint rules for Markdown files.
11360
11415
  * @param options - The configuration options for Markdown files.
@@ -11401,6 +11456,7 @@ declare function regexp(options?: RegexpOptions): Promise<Config$1[]>;
11401
11456
  * Represents the options for configuring TOML files in the ESLint configuration.
11402
11457
  */
11403
11458
  type TomlOptions = Flatten<OptionsFiles & OptionsOverrides & OptionsPrettier>;
11459
+ declare const tomlFiles: string[];
11404
11460
  /**
11405
11461
  * Configures the ESLint rules for TOML files.
11406
11462
  * @param options - The configuration options for TOML files.
@@ -11453,6 +11509,7 @@ declare function vitest(options?: VitestOptions): Promise<Config$1[]>;
11453
11509
  * Represents the options for configuring YAML files in the ESLint configuration.
11454
11510
  */
11455
11511
  type YamlOptions = Flatten<OptionsFiles & OptionsOverrides & OptionsPrettier>;
11512
+ declare const yamlFiles: string[];
11456
11513
  /**
11457
11514
  * Configures the ESLint rules for YAML files.
11458
11515
  * @param options - The configuration options for YAML files.
@@ -11513,4 +11570,4 @@ declare const GLOB_EXCLUDE: string[];
11513
11570
 
11514
11571
  declare const config: ConfigComposer;
11515
11572
 
11516
- export { type AwaitableFlatConfig, type Config$1 as Config, type ConfigComposer, type ConfigNames, type Flatten, GLOB_EXCLUDE, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type JavaScriptOptions, type JsoncOptions, type MarkdownOptions, type Options, type OptionsFiles, type OptionsIsInEditor, type OptionsOverrides, type OptionsPerfectionist, type OptionsPrettier, type OptionsTypeScript, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PerfectionistOptions, type PrettierOptions, type RegexpOptions, type Rules, type TomlOptions, type TypeScriptOptions, type UnicornOptions, type VitestOptions, type YamlOptions, command, composeConfig, config, config as default, defineConfig, epilogue, eslintComments, ignores, imports, isInEditor, isInGitLifecycle, javascript, jsdoc, jsonc, markdown, node, perfectionist, prettier, regexp, toml, typescript, unicorn, vitest, yaml };
11573
+ export { type AwaitableFlatConfig, type Config$1 as Config, type ConfigComposer, type ConfigNames, type FallbackOptions, type Flatten, GLOB_EXCLUDE, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type JavaScriptOptions, type JsoncOptions, type MarkdownOptions, type Options, type OptionsFiles, type OptionsIsInEditor, type OptionsOverrides, type OptionsPerfectionist, type OptionsPrettier, type OptionsTypeScript, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PerfectionistOptions, type PrettierOptions, type RegexpOptions, type Rules, type TomlOptions, type TypeScriptOptions, type UnicornOptions, type VitestOptions, type YamlOptions, codeInMdFiles, command, composeConfig, config, config as default, defineConfig, epilogue, eslintComments, extInMdFiles, fallback, ignores, imports, isInEditor, isInGitLifecycle, javascript, jsdoc, jsonc, jsoncFiles, markdown, mdFiles, node, perfectionist, prettier, regexp, toml, tomlFiles, typescript, unicorn, vitest, yaml, yamlFiles };