@kazupon/eslint-config 0.12.0 → 0.13.1

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.
@@ -12,5 +12,6 @@ export * from './gens/vue';
12
12
  export * from './gens/svelte';
13
13
  export * from './gens/jsonc';
14
14
  export * from './gens/yml';
15
+ export * from './gens/react';
15
16
  export * from './gens/toml';
16
17
  export * from './gens/eslint';
@@ -12,5 +12,6 @@ export * from './gens/vue';
12
12
  export * from './gens/svelte';
13
13
  export * from './gens/jsonc';
14
14
  export * from './gens/yml';
15
+ export * from './gens/react';
15
16
  export * from './gens/toml';
16
17
  export * from './gens/eslint';
@@ -3,4 +3,5 @@ export interface OverridesOptions<Rules = Linter.Config['rules']> {
3
3
  files?: Linter.Config['files'];
4
4
  rules?: Rules;
5
5
  parserOptions?: ESLint.Environment['parserOptions'];
6
+ settings?: Linter.Config['settings'];
6
7
  }
@@ -3,4 +3,5 @@ export interface OverridesOptions<Rules = Linter.Config['rules']> {
3
3
  files?: Linter.Config['files'];
4
4
  rules?: Rules;
5
5
  parserOptions?: ESLint.Environment['parserOptions'];
6
+ settings?: Linter.Config['settings'];
6
7
  }
package/dist/utils.d.cts CHANGED
@@ -23,3 +23,9 @@ export declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropMod
23
23
  * @returns {Promise<T>} loaded plugin
24
24
  */
25
25
  export declare function loadPlugin<T = unknown>(name: string): Promise<T>;
26
+ /**
27
+ * get TypeScript parser
28
+ * @description get the parser, which is `typescript-eslint` parser
29
+ * @returns {Promise<typeof import('typescript-eslint')['parser']>} TypeScript parser
30
+ */
31
+ export declare function getTypeScriptParser(): Promise<(typeof import('typescript-eslint'))['parser']>;
package/dist/utils.d.ts CHANGED
@@ -23,3 +23,9 @@ export declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropMod
23
23
  * @returns {Promise<T>} loaded plugin
24
24
  */
25
25
  export declare function loadPlugin<T = unknown>(name: string): Promise<T>;
26
+ /**
27
+ * get TypeScript parser
28
+ * @description get the parser, which is `typescript-eslint` parser
29
+ * @returns {Promise<typeof import('typescript-eslint')['parser']>} TypeScript parser
30
+ */
31
+ export declare function getTypeScriptParser(): Promise<(typeof import('typescript-eslint'))['parser']>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kazupon/eslint-config",
3
3
  "description": "ESLint config for @kazupon",
4
- "version": "0.12.0",
4
+ "version": "0.13.1",
5
5
  "author": {
6
6
  "email": "kawakazu80@gmail.com",
7
7
  "name": "kazuya kawaguchi"
@@ -51,6 +51,9 @@
51
51
  "eslint-plugin-jsdoc": ">=48.5.0",
52
52
  "eslint-plugin-jsonc": ">=2.16.0",
53
53
  "eslint-plugin-promise": ">=6.4.0",
54
+ "eslint-plugin-react": ">=7.35.0",
55
+ "eslint-plugin-react-hooks": ">=4.6.0",
56
+ "eslint-plugin-react-refresh": ">=0.4.0",
54
57
  "eslint-plugin-regexp": ">=2.6.0",
55
58
  "eslint-plugin-svelte": ">=2.43.0",
56
59
  "eslint-plugin-toml": ">=0.11.0",
@@ -73,6 +76,15 @@
73
76
  "eslint-plugin-promise": {
74
77
  "optional": true
75
78
  },
79
+ "eslint-plugin-react": {
80
+ "optional": true
81
+ },
82
+ "eslint-plugin-react-hooks": {
83
+ "optional": true
84
+ },
85
+ "eslint-plugin-react-refresh": {
86
+ "optional": true
87
+ },
76
88
  "eslint-plugin-regexp": {
77
89
  "optional": true
78
90
  },
@@ -108,6 +120,9 @@
108
120
  "eslint-plugin-jsdoc": "^48.5.2",
109
121
  "eslint-plugin-jsonc": "^2.16.0",
110
122
  "eslint-plugin-promise": "^7.0.0",
123
+ "eslint-plugin-react": "^7.35.0",
124
+ "eslint-plugin-react-hooks": "^4.6.2",
125
+ "eslint-plugin-react-refresh": "^0.4.9",
111
126
  "eslint-plugin-regexp": "^2.6.0",
112
127
  "eslint-plugin-svelte": "^2.43.0",
113
128
  "eslint-plugin-toml": "^0.11.0",