Skip to content

Commit

Permalink
add extends and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 26, 2023
1 parent ad9d138 commit ff79a9d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/config/extends/eslint-plugin-jsx-a11y.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Eslint JSX A11y extensions.
*
* @see [Eslint JSX A11y extensions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
*/
export type JsxA11yExtensions =
| 'plugin:jsx-a11y/strict'
| 'plugin:jsx-a11y/recommended';
2 changes: 2 additions & 0 deletions src/config/plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ export type Plugin = LiteralUnion<
| 'import'
| 'inclusive-language'
| 'jsdoc'
| 'jsx-a11y'
| 'mdx'
| 'prettier'
| 'promise'
| 'react-hooks'
| 'react'
| 'sonarjs'
| 'spellcheck'
Expand Down
2 changes: 2 additions & 0 deletions src/config/settings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ImportSettings } from './import';
import type { JSDocSettings } from './jsdoc';
import type { JsxA11ySettings } from './jsx-a11y';
import type { MdxSettings } from './mdx';
import type { NodeSettings } from './node';
import type { ReactSettings } from './react';
Expand All @@ -10,6 +11,7 @@ import type { ReactSettings } from './react';
export interface Settings
extends ImportSettings,
JSDocSettings,
JsxA11ySettings,
MdxSettings,
NodeSettings,
ReactSettings,
Expand Down
10 changes: 10 additions & 0 deletions src/config/settings/jsx-a11y.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* JSX A11y settings.
*
* @see [JSX A11y settings](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
*/
export interface JsxA11ySettings extends Partial<Record<string, unknown>> {
'jsx-a11y'?: {
components?: Record<string, string>;
};
}
2 changes: 2 additions & 0 deletions src/rules/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { GraphQLRules } from './graphql-eslint';
import type { ImportRules } from './import';
import type { JSDocRules } from './jsdoc';
import type { JsoncRules } from './jsonc';
import type { JsxA11yRules } from './jsx-a11y';
import type { NRules } from './n';
import type { NodeRules } from './node';
import type { PromiseRules } from './promise';
Expand Down Expand Up @@ -33,6 +34,7 @@ export type Rules = Partial<
ImportRules &
JSDocRules &
JsoncRules &
JsxA11yRules &
NodeRules &
NRules &
PromiseRules &
Expand Down

0 comments on commit ff79a9d

Please sign in to comment.