@anolilab/eslint-config 16.2.18 → 16.2.20

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.d.cts CHANGED
@@ -2533,7 +2533,7 @@ interface RuleOptions {
2533
2533
  * Disallow empty definitions
2534
2534
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
2535
2535
  */
2536
- 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>
2536
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>
2537
2537
  /**
2538
2538
  * Disallow empty images
2539
2539
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
@@ -2579,6 +2579,11 @@ interface RuleOptions {
2579
2579
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
2580
2580
  */
2581
2581
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
2582
+ /**
2583
+ * Disallow unused definitions
2584
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
2585
+ */
2586
+ 'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>
2582
2587
  /**
2583
2588
  * Require alternative text for images
2584
2589
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -11460,6 +11465,12 @@ type MarkdownNoDuplicateDefinitions = []|[{
11460
11465
  type MarkdownNoDuplicateHeadings = []|[{
11461
11466
  checkSiblingsOnly?: boolean
11462
11467
  }]
11468
+ // ----- markdown/no-empty-definitions -----
11469
+ type MarkdownNoEmptyDefinitions = []|[{
11470
+ allowDefinitions?: string[]
11471
+ allowFootnoteDefinitions?: string[]
11472
+ checkFootnoteDefinitions?: boolean
11473
+ }]
11463
11474
  // ----- markdown/no-html -----
11464
11475
  type MarkdownNoHtml = []|[{
11465
11476
  allowed?: string[]
@@ -11473,6 +11484,11 @@ type MarkdownNoMissingLinkFragments = []|[{
11473
11484
  type MarkdownNoMultipleH1 = []|[{
11474
11485
  frontmatterTitle?: string
11475
11486
  }]
11487
+ // ----- markdown/no-unused-definitions -----
11488
+ type MarkdownNoUnusedDefinitions = []|[{
11489
+ allowDefinitions?: string[]
11490
+ allowFootnoteDefinitions?: string[]
11491
+ }]
11476
11492
  // ----- n/callback-return -----
11477
11493
  type NCallbackReturn = []|[string[]]
11478
11494
  // ----- n/exports-style -----
@@ -16476,13 +16492,14 @@ interface OptionsSilentConsoleLogs {
16476
16492
  interface OptionsStylistic {
16477
16493
  stylistic?: StylisticConfig | boolean;
16478
16494
  }
16479
- type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptWithTypes);
16495
+ type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes);
16480
16496
  interface OptionsTypeScriptParserOptions {
16481
16497
  filesTypeAware?: string[];
16482
16498
  ignoresTypeAware?: string[];
16483
16499
  parserOptions?: Partial<ParserOptions>;
16484
16500
  }
16485
16501
  interface OptionsTypeScriptWithTypes {
16502
+ isTypeAware?: boolean;
16486
16503
  overridesTypeAware?: TypedFlatConfigItem["rules"];
16487
16504
  tsconfigPath?: string;
16488
16505
  }
@@ -16500,7 +16517,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16500
16517
  plugins?: Record<string, any>;
16501
16518
  };
16502
16519
 
16503
- type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16520
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16504
16521
  declare const getFilesGlobs: (fileType: FileType) => string[];
16505
16522
 
16506
16523
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
package/dist/index.d.mts CHANGED
@@ -2533,7 +2533,7 @@ interface RuleOptions {
2533
2533
  * Disallow empty definitions
2534
2534
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
2535
2535
  */
2536
- 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>
2536
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>
2537
2537
  /**
2538
2538
  * Disallow empty images
2539
2539
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
@@ -2579,6 +2579,11 @@ interface RuleOptions {
2579
2579
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
2580
2580
  */
2581
2581
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
2582
+ /**
2583
+ * Disallow unused definitions
2584
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
2585
+ */
2586
+ 'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>
2582
2587
  /**
2583
2588
  * Require alternative text for images
2584
2589
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -11460,6 +11465,12 @@ type MarkdownNoDuplicateDefinitions = []|[{
11460
11465
  type MarkdownNoDuplicateHeadings = []|[{
11461
11466
  checkSiblingsOnly?: boolean
11462
11467
  }]
11468
+ // ----- markdown/no-empty-definitions -----
11469
+ type MarkdownNoEmptyDefinitions = []|[{
11470
+ allowDefinitions?: string[]
11471
+ allowFootnoteDefinitions?: string[]
11472
+ checkFootnoteDefinitions?: boolean
11473
+ }]
11463
11474
  // ----- markdown/no-html -----
11464
11475
  type MarkdownNoHtml = []|[{
11465
11476
  allowed?: string[]
@@ -11473,6 +11484,11 @@ type MarkdownNoMissingLinkFragments = []|[{
11473
11484
  type MarkdownNoMultipleH1 = []|[{
11474
11485
  frontmatterTitle?: string
11475
11486
  }]
11487
+ // ----- markdown/no-unused-definitions -----
11488
+ type MarkdownNoUnusedDefinitions = []|[{
11489
+ allowDefinitions?: string[]
11490
+ allowFootnoteDefinitions?: string[]
11491
+ }]
11476
11492
  // ----- n/callback-return -----
11477
11493
  type NCallbackReturn = []|[string[]]
11478
11494
  // ----- n/exports-style -----
@@ -16476,13 +16492,14 @@ interface OptionsSilentConsoleLogs {
16476
16492
  interface OptionsStylistic {
16477
16493
  stylistic?: StylisticConfig | boolean;
16478
16494
  }
16479
- type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptWithTypes);
16495
+ type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes);
16480
16496
  interface OptionsTypeScriptParserOptions {
16481
16497
  filesTypeAware?: string[];
16482
16498
  ignoresTypeAware?: string[];
16483
16499
  parserOptions?: Partial<ParserOptions>;
16484
16500
  }
16485
16501
  interface OptionsTypeScriptWithTypes {
16502
+ isTypeAware?: boolean;
16486
16503
  overridesTypeAware?: TypedFlatConfigItem["rules"];
16487
16504
  tsconfigPath?: string;
16488
16505
  }
@@ -16500,7 +16517,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16500
16517
  plugins?: Record<string, any>;
16501
16518
  };
16502
16519
 
16503
- type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16520
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16504
16521
  declare const getFilesGlobs: (fileType: FileType) => string[];
16505
16522
 
16506
16523
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
package/dist/index.d.ts CHANGED
@@ -2533,7 +2533,7 @@ interface RuleOptions {
2533
2533
  * Disallow empty definitions
2534
2534
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
2535
2535
  */
2536
- 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>
2536
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>
2537
2537
  /**
2538
2538
  * Disallow empty images
2539
2539
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
@@ -2579,6 +2579,11 @@ interface RuleOptions {
2579
2579
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
2580
2580
  */
2581
2581
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
2582
+ /**
2583
+ * Disallow unused definitions
2584
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
2585
+ */
2586
+ 'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>
2582
2587
  /**
2583
2588
  * Require alternative text for images
2584
2589
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -11460,6 +11465,12 @@ type MarkdownNoDuplicateDefinitions = []|[{
11460
11465
  type MarkdownNoDuplicateHeadings = []|[{
11461
11466
  checkSiblingsOnly?: boolean
11462
11467
  }]
11468
+ // ----- markdown/no-empty-definitions -----
11469
+ type MarkdownNoEmptyDefinitions = []|[{
11470
+ allowDefinitions?: string[]
11471
+ allowFootnoteDefinitions?: string[]
11472
+ checkFootnoteDefinitions?: boolean
11473
+ }]
11463
11474
  // ----- markdown/no-html -----
11464
11475
  type MarkdownNoHtml = []|[{
11465
11476
  allowed?: string[]
@@ -11473,6 +11484,11 @@ type MarkdownNoMissingLinkFragments = []|[{
11473
11484
  type MarkdownNoMultipleH1 = []|[{
11474
11485
  frontmatterTitle?: string
11475
11486
  }]
11487
+ // ----- markdown/no-unused-definitions -----
11488
+ type MarkdownNoUnusedDefinitions = []|[{
11489
+ allowDefinitions?: string[]
11490
+ allowFootnoteDefinitions?: string[]
11491
+ }]
11476
11492
  // ----- n/callback-return -----
11477
11493
  type NCallbackReturn = []|[string[]]
11478
11494
  // ----- n/exports-style -----
@@ -16476,13 +16492,14 @@ interface OptionsSilentConsoleLogs {
16476
16492
  interface OptionsStylistic {
16477
16493
  stylistic?: StylisticConfig | boolean;
16478
16494
  }
16479
- type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptWithTypes);
16495
+ type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes);
16480
16496
  interface OptionsTypeScriptParserOptions {
16481
16497
  filesTypeAware?: string[];
16482
16498
  ignoresTypeAware?: string[];
16483
16499
  parserOptions?: Partial<ParserOptions>;
16484
16500
  }
16485
16501
  interface OptionsTypeScriptWithTypes {
16502
+ isTypeAware?: boolean;
16486
16503
  overridesTypeAware?: TypedFlatConfigItem["rules"];
16487
16504
  tsconfigPath?: string;
16488
16505
  }
@@ -16500,7 +16517,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16500
16517
  plugins?: Record<string, any>;
16501
16518
  };
16502
16519
 
16503
- type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16520
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16504
16521
  declare const getFilesGlobs: (fileType: FileType) => string[];
16505
16522
 
16506
16523
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;