Skip to content

Commit f34a1ac

Browse files
committed
added support for "ESLint Config Inspector"
1 parent ca7e102 commit f34a1ac

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,6 @@ or
183183

184184
pnpm publish
185185

186+
# ESLint Config Inspector
187+
188+
npx @eslint/config-inspector

eslint.config.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import globals from 'globals';
2+
import customJS from './flat/javascript/index.mjs';
3+
import customTypescript from './flat/typescript/index.mjs';
4+
import customReact from './flat/reactjs/index.mjs';
5+
import customStylistic from './flat/stylistic/index.mjs';
6+
7+
import tsParser from '@typescript-eslint/parser';
8+
9+
export default [
10+
{
11+
ignores: [
12+
'eslint.config.js',
13+
'vite.config.ts',
14+
'dist/'
15+
],
16+
},
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.browser,
21+
},
22+
parser: tsParser,
23+
parserOptions: {
24+
project: [
25+
'tsconfig.json'
26+
],
27+
}
28+
},
29+
},
30+
...customJS,
31+
...customTypescript,
32+
...customReact,
33+
...customStylistic,
34+
{
35+
plugins: {
36+
},
37+
rules: {
38+
},
39+
}
40+
];

0 commit comments

Comments
 (0)