@kazupon/eslint-config 0.15.0 → 0.17.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.
Files changed (50) hide show
  1. package/README.md +24 -22
  2. package/dist/configs/comments.d.cts +1 -1
  3. package/dist/configs/comments.d.ts +1 -1
  4. package/dist/configs/imports.d.cts +21 -0
  5. package/dist/configs/imports.d.ts +21 -0
  6. package/dist/configs/index.d.cts +16 -15
  7. package/dist/configs/index.d.ts +16 -15
  8. package/dist/configs/javascript.d.cts +1 -1
  9. package/dist/configs/javascript.d.ts +1 -1
  10. package/dist/configs/jsdoc.d.cts +1 -1
  11. package/dist/configs/jsdoc.d.ts +1 -1
  12. package/dist/configs/jsonc.d.cts +1 -1
  13. package/dist/configs/jsonc.d.ts +1 -1
  14. package/dist/configs/prettier.d.cts +1 -1
  15. package/dist/configs/prettier.d.ts +1 -1
  16. package/dist/configs/promise.d.cts +1 -1
  17. package/dist/configs/promise.d.ts +1 -1
  18. package/dist/configs/react.d.cts +2 -2
  19. package/dist/configs/react.d.ts +2 -2
  20. package/dist/configs/regexp.d.cts +1 -1
  21. package/dist/configs/regexp.d.ts +1 -1
  22. package/dist/configs/svelte.d.cts +2 -2
  23. package/dist/configs/svelte.d.ts +2 -2
  24. package/dist/configs/toml.d.cts +1 -1
  25. package/dist/configs/toml.d.ts +1 -1
  26. package/dist/configs/typescript.d.cts +1 -1
  27. package/dist/configs/typescript.d.ts +1 -1
  28. package/dist/configs/unicorn.d.cts +1 -1
  29. package/dist/configs/unicorn.d.ts +1 -1
  30. package/dist/configs/vitest.d.cts +1 -1
  31. package/dist/configs/vitest.d.ts +1 -1
  32. package/dist/configs/vue.d.cts +19 -4
  33. package/dist/configs/vue.d.ts +19 -4
  34. package/dist/configs/yml.d.cts +1 -1
  35. package/dist/configs/yml.d.ts +1 -1
  36. package/dist/index.cjs +265 -182
  37. package/dist/index.d.cts +3 -3
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.js +260 -183
  40. package/dist/types/gens/eslint.d.cts +2 -1
  41. package/dist/types/gens/eslint.d.ts +2 -1
  42. package/dist/types/gens/imports.d.cts +519 -0
  43. package/dist/types/gens/imports.d.ts +519 -0
  44. package/dist/types/gens/vue.d.cts +281 -0
  45. package/dist/types/gens/vue.d.ts +281 -0
  46. package/dist/types/index.d.cts +18 -17
  47. package/dist/types/index.d.ts +18 -17
  48. package/dist/types/overrides.d.cts +1 -1
  49. package/dist/types/overrides.d.ts +1 -1
  50. package/package.json +32 -2
package/README.md CHANGED
@@ -8,10 +8,11 @@ ESLint config for @kazupon
8
8
  ## 🌟 Features
9
9
 
10
10
  - Flat configuration via [vite](https://vitejs.dev/config/) flavor `defineConfig`
11
- - Support [built-in configurations](#built-in-configurations)
11
+ - Support [built-in preset configurations](#built-in-preset-configurations)
12
12
  - `javascript`
13
13
  - `comments`
14
14
  - `typescript`
15
+ - `imports`
15
16
  - `jsdoc`
16
17
  - `regexp`
17
18
  - `promise`
@@ -107,27 +108,28 @@ Add the following settings to your `.vscode/settings.json`:
107
108
  }
108
109
  ```
109
110
 
110
- ## 🔨Built-in configurations
111
-
112
- The following built-in configurations are supported:
113
-
114
- | Configuration | Powered by eslint plugin or package | Need to install eslint plugin or package? |
115
- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
116
- | `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js) | no (built-in) |
117
- | `comments` | [`@eslint-community/eslint-plugin-eslint-comments`](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) | no (built-in) |
118
- | `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
119
- | `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc) | yes |
120
- | `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp) | yes |
121
- | `promise` | [`eslint-plugin-promise`](https://www.npmjs.com/package/eslint-plugin-promise) | yes |
122
- | `unicorn` | [`eslint-plugin-unicorn`](https://www.npmjs.com/package/eslint-plugin-unicorn) | yes |
123
- | `prettier` | [`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier) | yes |
124
- | `vue` | [`eslint-plugin-vue`](https://www.npmjs.com/package/eslint-plugin-vue) | yes |
125
- | `react` | [`eslint-plugin-react`](https://www.npmjs.com/package/eslint-plugin-react), [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks), [`eslint-plugin-react-refresh`](https://www.npmjs.com/package/eslint-plugin-react-refresh) | yes |
126
- | `svelte` | [`eslint-plugin-svelte`](https://www.npmjs.com/package/eslint-plugin-svelte) | yes |
127
- | `vitest` | [`@vitest/eslint-plugin`](https://www.npmjs.com/package/@vitest/eslint-plugin) | yes |
128
- | `jsonc` | [`eslint-plugin-jsonc`](https://www.npmjs.com/package/eslint-plugin-jsonc) | yes |
129
- | `yml` | [`eslint-plugin-yml`](https://www.npmjs.com/package/eslint-plugin-yml) | yes |
130
- | `toml` | [`eslint-plugin-toml`](https://www.npmjs.com/package/eslint-plugin-toml) | yes |
111
+ ## 🔨Built-in preset configurations
112
+
113
+ The following built-in preset configurations are supported:
114
+
115
+ | Configuration | Powered by eslint plugin or package | Need to install eslint plugin or package? |
116
+ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
117
+ | `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js) | no (built-in) |
118
+ | `comments` | [`@eslint-community/eslint-plugin-eslint-comments`](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) | no (built-in) |
119
+ | `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
120
+ | `imports` | [`eslint-plugin-import-x`](https://www.npmjs.com/package/eslint-plugin-import-x), [`eslint-plugin-unused-imports`](https://www.npmjs.com/package/eslint-plugin-unused-imports) | yes |
121
+ | `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc) | yes |
122
+ | `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp) | yes |
123
+ | `promise` | [`eslint-plugin-promise`](https://www.npmjs.com/package/eslint-plugin-promise) | yes |
124
+ | `unicorn` | [`eslint-plugin-unicorn`](https://www.npmjs.com/package/eslint-plugin-unicorn) | yes |
125
+ | `prettier` | [`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier) | yes |
126
+ | `vue` | [`eslint-plugin-vue`](https://www.npmjs.com/package/eslint-plugin-vue), [`eslint-plugin-vue-composable`](https://www.npmjs.com/package/eslint-plugin-vue-composable), [`eslint-plugin-vue-scoped-css`](https://www.npmjs.com/package/eslint-plugin-vue-scoped-css), [`eslint-plugin-vuejs-accessibility`](https://www.npmjs.com/package/eslint-plugin-vuejs-accessibility)) | yes |
127
+ | `react` | [`eslint-plugin-react`](https://www.npmjs.com/package/eslint-plugin-react), [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks), [`eslint-plugin-react-refresh`](https://www.npmjs.com/package/eslint-plugin-react-refresh) | yes |
128
+ | `svelte` | [`eslint-plugin-svelte`](https://www.npmjs.com/package/eslint-plugin-svelte) | yes |
129
+ | `vitest` | [`@vitest/eslint-plugin`](https://www.npmjs.com/package/@vitest/eslint-plugin) | yes |
130
+ | `jsonc` | [`eslint-plugin-jsonc`](https://www.npmjs.com/package/eslint-plugin-jsonc) | yes |
131
+ | `yml` | [`eslint-plugin-yml`](https://www.npmjs.com/package/eslint-plugin-yml) | yes |
132
+ | `toml` | [`eslint-plugin-toml`](https://www.npmjs.com/package/eslint-plugin-toml) | yes |
131
133
 
132
134
  You can use `import` syntax:
133
135
 
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, CommentsRules } from '../types';
2
+ import type { CommentsRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * eslint comments configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, CommentsRules } from '../types';
2
+ import type { CommentsRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * eslint comments configuration options
5
5
  */
@@ -0,0 +1,21 @@
1
+ import type { Linter } from 'eslint';
2
+ import type { ImportsRules, OverridesOptions } from '../types/index.ts';
3
+ /**
4
+ * imports configuration options
5
+ */
6
+ export interface ImportsOptions {
7
+ /**
8
+ * use typescript
9
+ * @default false
10
+ */
11
+ typescript?: boolean;
12
+ }
13
+ /**
14
+ * `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
15
+ * @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
16
+ * @param {ImportsOptions & OverridesOptions} options
17
+ * import configuration options
18
+ * @returns {Promise<Linter.Config[]>}
19
+ * eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
20
+ */
21
+ export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
@@ -0,0 +1,21 @@
1
+ import type { Linter } from 'eslint';
2
+ import type { ImportsRules, OverridesOptions } from '../types/index.ts';
3
+ /**
4
+ * imports configuration options
5
+ */
6
+ export interface ImportsOptions {
7
+ /**
8
+ * use typescript
9
+ * @default false
10
+ */
11
+ typescript?: boolean;
12
+ }
13
+ /**
14
+ * `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
15
+ * @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
16
+ * @param {ImportsOptions & OverridesOptions} options
17
+ * import configuration options
18
+ * @returns {Promise<Linter.Config[]>}
19
+ * eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
20
+ */
21
+ export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
@@ -1,15 +1,16 @@
1
- export * from './javascript';
2
- export * from './comments';
3
- export * from './typescript';
4
- export * from './jsdoc';
5
- export * from './promise';
6
- export * from './regexp';
7
- export * from './toml';
8
- export * from './unicorn';
9
- export * from './prettier';
10
- export * from './jsonc';
11
- export * from './yml';
12
- export * from './vue';
13
- export * from './react';
14
- export * from './svelte';
15
- export * from './vitest';
1
+ export * from './comments.ts';
2
+ export * from './imports.ts';
3
+ export * from './javascript.ts';
4
+ export * from './jsdoc.ts';
5
+ export * from './jsonc.ts';
6
+ export * from './prettier.ts';
7
+ export * from './promise.ts';
8
+ export * from './react.ts';
9
+ export * from './regexp.ts';
10
+ export * from './svelte.ts';
11
+ export * from './toml.ts';
12
+ export * from './typescript.ts';
13
+ export * from './unicorn.ts';
14
+ export * from './vitest.ts';
15
+ export * from './vue.ts';
16
+ export * from './yml.ts';
@@ -1,15 +1,16 @@
1
- export * from './javascript';
2
- export * from './comments';
3
- export * from './typescript';
4
- export * from './jsdoc';
5
- export * from './promise';
6
- export * from './regexp';
7
- export * from './toml';
8
- export * from './unicorn';
9
- export * from './prettier';
10
- export * from './jsonc';
11
- export * from './yml';
12
- export * from './vue';
13
- export * from './react';
14
- export * from './svelte';
15
- export * from './vitest';
1
+ export * from './comments.ts';
2
+ export * from './imports.ts';
3
+ export * from './javascript.ts';
4
+ export * from './jsdoc.ts';
5
+ export * from './jsonc.ts';
6
+ export * from './prettier.ts';
7
+ export * from './promise.ts';
8
+ export * from './react.ts';
9
+ export * from './regexp.ts';
10
+ export * from './svelte.ts';
11
+ export * from './toml.ts';
12
+ export * from './typescript.ts';
13
+ export * from './unicorn.ts';
14
+ export * from './vitest.ts';
15
+ export * from './vue.ts';
16
+ export * from './yml.ts';
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JavascriptRules } from '../types';
2
+ import type { JavascriptRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * JavaScript configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JavascriptRules } from '../types';
2
+ import type { JavascriptRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * JavaScript configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JsdocRules } from '../types';
2
+ import type { JsdocRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * jsdoc configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JsdocRules } from '../types';
2
+ import type { JsdocRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * jsdoc configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JsoncRules } from '../types';
2
+ import type { JsoncRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * eslint jsonc configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, JsoncRules } from '../types';
2
+ import type { JsoncRules, OverridesOptions } from '../types/index.ts';
3
3
  /**
4
4
  * eslint jsonc configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, PrettierRules } from '../types';
2
+ import type { OverridesOptions, PrettierRules } from '../types/index.ts';
3
3
  /**
4
4
  * Prettier configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, PrettierRules } from '../types';
2
+ import type { OverridesOptions, PrettierRules } from '../types/index.ts';
3
3
  /**
4
4
  * Prettier configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, PromiseRules } from '../types';
2
+ import type { OverridesOptions, PromiseRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint promise configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, PromiseRules } from '../types';
2
+ import type { OverridesOptions, PromiseRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint promise configuration options
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, ReactRules } from '../types';
2
+ import type { OverridesOptions, ReactRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * eslint react configuration options
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, ReactRules } from '../types';
2
+ import type { OverridesOptions, ReactRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * eslint react configuration options
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, RegexpRules } from '../types';
2
+ import type { OverridesOptions, RegexpRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint regexp configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, RegexpRules } from '../types';
2
+ import type { OverridesOptions, RegexpRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint regexp configuration options
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, SvelteRules } from '../types';
2
+ import type { OverridesOptions, SvelteRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * Svelte configuration options
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, SvelteRules } from '../types';
2
+ import type { OverridesOptions, SvelteRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * Svelte configuration options
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, TomlRules } from '../types';
2
+ import type { OverridesOptions, TomlRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint toml configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, TomlRules } from '../types';
2
+ import type { OverridesOptions, TomlRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint toml configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, TypescriptRules } from '../types';
2
+ import type { OverridesOptions, TypescriptRules } from '../types/index.ts';
3
3
  /**
4
4
  * TypeScript configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, TypescriptRules } from '../types';
2
+ import type { OverridesOptions, TypescriptRules } from '../types/index.ts';
3
3
  /**
4
4
  * TypeScript configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, UnicornRules } from '../types';
2
+ import type { OverridesOptions, UnicornRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint unicorn configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, UnicornRules } from '../types';
2
+ import type { OverridesOptions, UnicornRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint unicorn configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, VitestRules } from '../types';
2
+ import type { OverridesOptions, VitestRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint vitest configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, VitestRules } from '../types';
2
+ import type { OverridesOptions, VitestRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint vitest configuration options
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, VueRules } from '../types';
2
+ import type { OverridesOptions, VueRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * Vue configuration options
6
6
  */
@@ -10,12 +10,27 @@ export interface VueScriptOptions {
10
10
  * @default false
11
11
  */
12
12
  typescript?: boolean;
13
+ /**
14
+ * enable `eslint-plugin-vue-composable` rules
15
+ * @default false
16
+ */
17
+ composable?: boolean;
18
+ /**
19
+ * enable `eslint-plugin-vue-scoped-css` rules
20
+ * @default false
21
+ */
22
+ scopedCss?: boolean;
23
+ /**
24
+ * enable `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` rules
25
+ * @default false
26
+ */
27
+ a11y?: boolean;
13
28
  }
14
29
  /**
15
- * `eslint-plugin-vue` and overrides configuration options
30
+ * `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides configuration options
16
31
  * @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
17
32
  * eslint configuration options for Vue
18
33
  * @returns {Promise<Linter.Config[]>}
19
- * eslint flat configurations with `eslint-plugin-vue` and overrides
34
+ * eslint flat configurations with `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides
20
35
  */
21
36
  export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.Config[]>;
@@ -1,6 +1,6 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { TypeScriptOptions } from './typescript';
3
- import type { OverridesOptions, VueRules } from '../types';
2
+ import type { OverridesOptions, VueRules } from '../types/index.ts';
3
+ import type { TypeScriptOptions } from './typescript.ts';
4
4
  /**
5
5
  * Vue configuration options
6
6
  */
@@ -10,12 +10,27 @@ export interface VueScriptOptions {
10
10
  * @default false
11
11
  */
12
12
  typescript?: boolean;
13
+ /**
14
+ * enable `eslint-plugin-vue-composable` rules
15
+ * @default false
16
+ */
17
+ composable?: boolean;
18
+ /**
19
+ * enable `eslint-plugin-vue-scoped-css` rules
20
+ * @default false
21
+ */
22
+ scopedCss?: boolean;
23
+ /**
24
+ * enable `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` rules
25
+ * @default false
26
+ */
27
+ a11y?: boolean;
13
28
  }
14
29
  /**
15
- * `eslint-plugin-vue` and overrides configuration options
30
+ * `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides configuration options
16
31
  * @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
17
32
  * eslint configuration options for Vue
18
33
  * @returns {Promise<Linter.Config[]>}
19
- * eslint flat configurations with `eslint-plugin-vue` and overrides
34
+ * eslint flat configurations with `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides
20
35
  */
21
36
  export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.Config[]>;
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, YmlRules } from '../types';
2
+ import type { OverridesOptions, YmlRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint yml configuration options
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from 'eslint';
2
- import type { OverridesOptions, YmlRules } from '../types';
2
+ import type { OverridesOptions, YmlRules } from '../types/index.ts';
3
3
  /**
4
4
  * eslint yml configuration options
5
5
  */