Skip to content

Commit

Permalink
Rename types to extends
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Oct 8, 2023
1 parent 50134b9 commit 63db989
Show file tree
Hide file tree
Showing 23 changed files with 110 additions and 112 deletions.
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-eslint-comment.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint EslintComments extensions.
* Eslint EslintComments extends.
*
* @see [Eslint EslintComments extensions](https://mysticatea.github.io/eslint-plugin-eslint-comments/#%F0%9F%93%96-usage)
* @see [Eslint EslintComments extends](https://mysticatea.github.io/eslint-plugin-eslint-comments/#%F0%9F%93%96-usage)
*/
export type EslintCommentsExtensions = 'plugin:eslint-comments/recommended';
export type EslintCommentsExtends = 'plugin:eslint-comments/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-graphql.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint GraphQL extensions.
* Eslint GraphQL extends.
*
* @see [Eslint GraphQL extensions](https://the-guild.dev/graphql/eslint/docs/configs)
* @see [Eslint GraphQL extends](https://the-guild.dev/graphql/eslint/docs/configs)
*/
export type GraphqlExtensions =
export type GraphqlExtends =
| 'plugin:@graphql-eslint/operations-all'
| 'plugin:@graphql-eslint/operations-recommended'
| 'plugin:@graphql-eslint/relay'
Expand Down
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-import.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint import extensions.
* Eslint import extends.
*
* @see [Eslint import extensions](https://github.com/benmosher/eslint-plugin-import#installation)
* @see [Eslint import extends](https://github.com/benmosher/eslint-plugin-import#installation)
*/
export type ImportExtensions =
export type ImportExtends =
| 'plugin:import/errors'
| 'plugin:import/warnings'
| 'plugin:import/typescript';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-jsdoc.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint JSDoc extensions.
* Eslint JSDoc extends.
*
* @see [Eslint JSDoc extensions](https://github.com/gajus/eslint-plugin-jsdoc#configuration)
* @see [Eslint JSDoc extends](https://github.com/gajus/eslint-plugin-jsdoc#configuration)
*/
export type JsdocExtensions = 'plugin:jsdoc/recommended';
export type JsdocExtends = 'plugin:jsdoc/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-jsonc.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint Jsonc extensions.
* Eslint Jsonc extends.
*
* @see [Eslint Jsonc extensions](https://github.com/ota-meshi/eslint-plugin-jsonc#configuration)
* @see [Eslint Jsonc extends](https://github.com/ota-meshi/eslint-plugin-jsonc#configuration)
*/
export type JsoncExtensions =
export type JsoncExtends =
| 'plugin:jsdoc/base'
| 'plugin:jsdoc/recommended'
| 'plugin:jsonc/recommended-with-json'
Expand Down
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-jsx-a11y.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Eslint JSX A11y extensions.
* Eslint JSX A11y extends.
*
* @see [Eslint JSX A11y extensions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
* @see [Eslint JSX A11y extends](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
*/
export type JsxA11yExtensions =
export type JsxA11yExtends =
| 'plugin:jsx-a11y/strict'
| 'plugin:jsx-a11y/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-mdx.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint MDX extensions.
* Eslint MDX extends.
*
* @see [Eslint MDX extensions](https://github.com/mdx-js/eslint-mdx/tree/master/packages/eslint-plugin-mdx)
* @see [Eslint MDX extends](https://github.com/mdx-js/eslint-mdx/tree/master/packages/eslint-plugin-mdx)
*/
export type MdxExtensions =
export type MdxExtends =
| 'plugin:mdx/base'
| 'plugin:mdx/code-blocks'
| 'plugin:mdx/overrides'
Expand Down
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-n.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint N (Node) extensions.
* Eslint N (Node) extends.
*
* @see [Eslint N extensions](https://github.com/eslint-community/eslint-plugin-n#-configs)
* @see [Eslint N extends](https://github.com/eslint-community/eslint-plugin-n#-configs)
*/
export type NExtensions =
export type NExtends =
| 'plugin:n/recommended'
| 'plugin:n/recommended-module'
| 'plugin:n/recommended-script';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-node.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint Node extensions.
* Eslint Node extends.
*
* @see [Eslint Node extensions](https://github.com/mysticatea/eslint-plugin-node#-configs)
* @see [Eslint Node extends](https://github.com/mysticatea/eslint-plugin-node#-configs)
*/
export type NodeExtensions =
export type NodeExtends =
| 'plugin:node/recommended'
| 'plugin:node/recommended-module'
| 'plugin:node/recommended-script';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-prettier.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint Prettier extensions.
* Eslint Prettier extends.
*
* @see [Eslint Prettier extensions](https://github.com/prettier/eslint-plugin-prettier#recommended-configuration)
* @see [Eslint Prettier extends](https://github.com/prettier/eslint-plugin-prettier#recommended-configuration)
*/
export type PrettierExtensions = 'plugin:prettier/recommended' | 'prettier';
export type PrettierExtends = 'plugin:prettier/recommended' | 'prettier';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-promise.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint promise extensions.
* Eslint promise extends.
*
* @see [Eslint promise extensions](https://github.com/eslint-community/eslint-plugin-promise#usage)
* @see [Eslint promise extends](https://github.com/eslint-community/eslint-plugin-promise#usage)
*/
export type PromiseExtensions = 'plugin:promise/recommended';
export type PromiseExtends = 'plugin:promise/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-react-hooks.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint ReactHooks extensions.
* Eslint ReactHooks extends.
*
* @see [Eslint ReactHooks extensions](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
* @see [Eslint ReactHooks extends](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
*/
export type ReactHooksExtensions = 'plugin:react-hooks/recommended';
export type ReactHooksExtends = 'plugin:react-hooks/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-react.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint React extensions.
* Eslint React extends.
*
* @see [Eslint React extensions](https://github.com/jsx-eslint/eslint-plugin-react)
* @see [Eslint React extends](https://github.com/jsx-eslint/eslint-plugin-react)
*/
export type ReactExtensions =
export type ReactExtends =
| 'plugin:react/all'
| 'plugin:react/jsx-runtime'
| 'plugin:react/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-sonarjs.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint Sonarjs extensions.
* Eslint Sonarjs extends.
*
* @see [Eslint Sonarjs extensions](https://github.com/SonarSource/eslint-plugin-sonarjs#available-configurations)
* @see [Eslint Sonarjs extends](https://github.com/SonarSource/eslint-plugin-sonarjs#available-configurations)
*/
export type SonarjsExtensions = 'plugin:sonarjs/recommended';
export type SonarjsExtends = 'plugin:sonarjs/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-testing-library.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint TestingLibrary extensions.
* Eslint TestingLibrary extends.
*
* @see [Eslint TestingLibrary extensions](https://github.com/testing-library/eslint-plugin-testing-library)
* @see [Eslint TestingLibrary extends](https://github.com/testing-library/eslint-plugin-testing-library)
*/
export type TestingLibraryExtensions =
export type TestingLibraryExtends =
| 'plugin:testing-library/angular'
| 'plugin:testing-library/dom'
| 'plugin:testing-library/marko'
Expand Down
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-unicorn.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Eslint Unicorn extensions.
* Eslint Unicorn extends.
*
* @see [Eslint Unicorn extensions](https://github.com/sindresorhus/eslint-plugin-unicorn)
* @see [Eslint Unicorn extends](https://github.com/sindresorhus/eslint-plugin-unicorn)
*/
export type UnicornExtensions =
export type UnicornExtends =
| 'plugin:unicorn/recommended'
| 'plugin:unicorn/all';
8 changes: 3 additions & 5 deletions src/config/extends/eslint-plugin-vitest.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* Eslint Vitest extensions.
* Eslint Vitest extends.
*
* @see [Eslint Vitest extensions](https://eslint.vuejs.org/user-guide/#usage)
* @see [Eslint Vitest extends](https://eslint.vuejs.org/user-guide/#usage)
*/
export type VitestExtensions =
| 'plugin:vitest/all'
| 'plugin:vitest/recommended';
export type VitestExtends = 'plugin:vitest/all' | 'plugin:vitest/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-vue-pug.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint Vue Pug extensions.
* Eslint Vue Pug extends.
*
* @see [Eslint Vue Pug extensions](https://github.com/rashfael/eslint-plugin-vue-pug#usage)
* @see [Eslint Vue Pug extends](https://github.com/rashfael/eslint-plugin-vue-pug#usage)
*/
export type VuePugExtensions =
export type VuePugExtends =
| 'plugin:vue-pug/base'
| 'plugin:vue-pug/vue3-essential'
| 'plugin:vue-pug/vue3-strongly-recommended'
Expand Down
6 changes: 3 additions & 3 deletions src/config/extends/eslint-plugin-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Eslint Vue extensions.
* Eslint Vue extends.
*
* @see [Eslint Vue extensions](https://eslint.vuejs.org/user-guide/#usage)
* @see [Eslint Vue extends](https://eslint.vuejs.org/user-guide/#usage)
*/
export type VueExtensions =
export type VueExtends =
| 'plugin:vue/base'
| 'plugin:vue/vue3-essential'
| 'plugin:vue/vue3-strongly-recommended'
Expand Down
4 changes: 2 additions & 2 deletions src/config/extends/eslint.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* Eslint extensions.
* Eslint extends.
*/
export type EslintExtensions = 'eslint:recommended' | 'eslint:all';
export type EslintExtends = 'eslint:recommended' | 'eslint:all';
90 changes: 45 additions & 45 deletions src/config/extends/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
import type { LiteralUnion } from '../../utility-types';
import type { EslintExtensions } from './eslint';
import type { EslintCommentsExtensions } from './eslint-plugin-eslint-comment';
import type { GraphqlExtensions } from './eslint-plugin-graphql';
import type { ImportExtensions } from './eslint-plugin-import';
import type { JsdocExtensions } from './eslint-plugin-jsdoc';
import type { JsoncExtensions } from './eslint-plugin-jsonc';
import type { MdxExtensions } from './eslint-plugin-mdx';
import type { NExtensions } from './eslint-plugin-n';
import type { NodeExtensions } from './eslint-plugin-node';
import type { PrettierExtensions } from './eslint-plugin-prettier';
import type { PromiseExtensions } from './eslint-plugin-promise';
import type { ReactExtensions } from './eslint-plugin-react';
import type { ReactHooksExtensions } from './eslint-plugin-react-hooks';
import type { SonarjsExtensions } from './eslint-plugin-sonarjs';
import type { TestingLibraryExtensions } from './eslint-plugin-testing-library';
import type { UnicornExtensions } from './eslint-plugin-unicorn';
import type { VitestExtensions } from './eslint-plugin-vitest';
import type { VueExtensions } from './eslint-plugin-vue';
import type { VuePugExtensions } from './eslint-plugin-vue-pug';
import type { IntlifyVueI18nExtensions } from './intlify-vue-i18n';
import type { TypescriptEslintExtensions } from './typescript-eslint';
import type { EslintExtends } from './eslint';
import type { EslintCommentsExtends } from './eslint-plugin-eslint-comment';
import type { GraphqlExtends } from './eslint-plugin-graphql';
import type { ImportExtends } from './eslint-plugin-import';
import type { JsdocExtends } from './eslint-plugin-jsdoc';
import type { JsoncExtends } from './eslint-plugin-jsonc';
import type { MdxExtends } from './eslint-plugin-mdx';
import type { NExtends } from './eslint-plugin-n';
import type { NodeExtends } from './eslint-plugin-node';
import type { PrettierExtends } from './eslint-plugin-prettier';
import type { PromiseExtends } from './eslint-plugin-promise';
import type { ReactExtends } from './eslint-plugin-react';
import type { ReactHooksExtends } from './eslint-plugin-react-hooks';
import type { SonarjsExtends } from './eslint-plugin-sonarjs';
import type { TestingLibraryExtends } from './eslint-plugin-testing-library';
import type { UnicornExtends } from './eslint-plugin-unicorn';
import type { VitestExtends } from './eslint-plugin-vitest';
import type { VueExtends } from './eslint-plugin-vue';
import type { VuePugExtends } from './eslint-plugin-vue-pug';
import type { IntlifyVueI18nExtends } from './intlify-vue-i18n';
import type { TypescriptEslintExtends } from './typescript-eslint';

/**
* All known extensions.
* All known extends.
*/
export type KnownExtensions = LiteralUnion<
| EslintCommentsExtensions
| EslintExtensions
| GraphqlExtensions
| ImportExtensions
| IntlifyVueI18nExtensions
| JsdocExtensions
| JsoncExtensions
| MdxExtensions
| NExtensions
| NodeExtensions
| PrettierExtensions
| PromiseExtensions
| ReactExtensions
| ReactHooksExtensions
| SonarjsExtensions
| TestingLibraryExtensions
| TypescriptEslintExtensions
| UnicornExtensions
| VitestExtensions
| VueExtensions
| VuePugExtensions
export type KnownExtends = LiteralUnion<
| EslintCommentsExtends
| EslintExtends
| GraphqlExtends
| ImportExtends
| IntlifyVueI18nExtends
| JsdocExtends
| JsoncExtends
| MdxExtends
| NExtends
| NodeExtends
| PrettierExtends
| PromiseExtends
| ReactExtends
| ReactHooksExtends
| SonarjsExtends
| TestingLibraryExtends
| TypescriptEslintExtends
| UnicornExtends
| VitestExtends
| VueExtends
| VuePugExtends
>;

/**
* Extending Configuration Files.
*
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
*/
export type Extends = KnownExtensions | KnownExtensions[];
export type Extends = KnownExtends | KnownExtends[];
6 changes: 3 additions & 3 deletions src/config/extends/intlify-vue-i18n.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Eslint Intlify VueI18n extensions.
* Eslint Intlify VueI18n extends.
*
* @see [Eslint Intlify VueI18n extensions](https://eslint-plugin-vue-i18n.intlify.dev/started.html)
* @see [Eslint Intlify VueI18n extends](https://eslint-plugin-vue-i18n.intlify.dev/started.html)
*/
export type IntlifyVueI18nExtensions = 'plugin:@intlify/vue-i18n/recommended';
export type IntlifyVueI18nExtends = 'plugin:@intlify/vue-i18n/recommended';
6 changes: 3 additions & 3 deletions src/config/extends/typescript-eslint.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Typescript eslint extensions.
* Typescript eslint extends.
*
* @see [Typescript eslint extensions](https://typescript-eslint.io/linting/configs#recommended-configurations)
* @see [Typescript eslint extends](https://typescript-eslint.io/linting/configs#recommended-configurations)
*/
export type TypescriptEslintExtensions =
export type TypescriptEslintExtends =
| 'plugin:@typescript-eslint/recommended'
| 'plugin:@typescript-eslint/recommended-requiring-type-checking'
| 'plugin:@typescript-eslint/strict';

0 comments on commit 63db989

Please sign in to comment.