File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import js from '@eslint/js' ;
22import { defineConfig } from 'eslint/config' ;
3+ import { dirname } from 'node:path' ;
4+ import { fileURLToPath } from 'node:url' ;
35import prettier from 'eslint-config-prettier' ;
46import jest from 'eslint-plugin-jest' ;
57import react from 'eslint-plugin-react' ;
68import reactHooks from 'eslint-plugin-react-hooks' ;
79import globals from 'globals' ;
810import tseslint from 'typescript-eslint' ;
911
12+ const tsconfigRootDir = dirname ( fileURLToPath ( import . meta. url ) ) ;
13+
1014export default defineConfig ( [
1115 {
1216 plugins : {
@@ -15,7 +19,7 @@ export default defineConfig([
1519 } ,
1620 {
1721 linterOptions : {
18- reportUnusedDisableDirectives : 'off ' ,
22+ reportUnusedDisableDirectives : 'warn ' ,
1923 } ,
2024 } ,
2125 {
@@ -26,11 +30,11 @@ export default defineConfig([
2630 'lib/' ,
2731 'dist/' ,
2832 'docs-dist/' ,
33+ '.docs-dist/' ,
2934 '.dumi/' ,
3035 '.doc/' ,
3136 '.vercel/' ,
3237 'src/locale/*.js' ,
33- 'src/index.d.ts' ,
3438 ] ,
3539 } ,
3640 {
@@ -89,7 +93,7 @@ export default defineConfig([
8993 languageOptions : {
9094 parserOptions : {
9195 projectService : true ,
92- tsconfigRootDir : import . meta . dirname ,
96+ tsconfigRootDir,
9397 } ,
9498 } ,
9599 } ,
You can’t perform that action at this time.
0 commit comments