@@ -4,40 +4,38 @@ import globals from 'globals';
44import tseslint from 'typescript-eslint' ;
55
66export default [
7+ {
8+ ignores : [
9+ 'dist/**' ,
10+ 'public/assets/**' ,
11+ 'node_modules/**' ,
12+ 'build/**' ,
13+ '*.config.js' ,
14+ '*.config.ts' ,
15+ 'src/utils/test.js' ,
16+ 'src/utils/worker/**' ,
17+ 'src/utils/wasm/**' ,
18+ ] ,
19+ } ,
720 { files : [ '**/*.{js,mjs,cjs,ts,jsx,tsx}' ] } ,
821 { languageOptions : { globals : globals . browser } } ,
22+ pluginJs . configs . recommended ,
23+ ...tseslint . configs . recommended ,
24+ pluginReact . configs . flat . recommended ,
925 {
10- 'jsx-runtime' : {
11- env : {
12- browser : true ,
13- es6 : true ,
14- node : true ,
15- } ,
16- plugins : [ '@typescript-eslint' , 'react' , 'prettier' ] ,
17- extends : [
18- 'prettier' ,
19- 'eslint:recommended' ,
20- 'plugin:react/recommended' ,
21- 'plugin:prettier/recommended' ,
22- 'plugin:@typescript-eslint/recommended' ,
23- ] ,
24- parser : '@typescript-eslint/parser' ,
25- parserOptions : {
26- ecmaVersion : 'latest' ,
27- sourceType : 'module' ,
28- project : './tsconfig.json' ,
29- } ,
30- rules : {
31- 'prettier/prettier' : 'error' ,
32- 'react/react-in-jsx-scope' : 0 ,
33- 'react/prefer-stateless-function' : 0 ,
34- 'react/jsx-filename-extension' : 0 ,
35- 'react/jsx-one-expression-per-line' : 0 ,
36- 'no-nested-ternary' : 0 ,
26+ settings : {
27+ react : {
28+ version : 'detect' ,
3729 } ,
3830 } ,
31+ rules : {
32+ 'react/react-in-jsx-scope' : 0 ,
33+ 'react/prefer-stateless-function' : 0 ,
34+ 'react/jsx-filename-extension' : 0 ,
35+ 'react/jsx-one-expression-per-line' : 0 ,
36+ 'no-nested-ternary' : 0 ,
37+ 'react/prop-types' : 0 ,
38+ '@typescript-eslint/no-explicit-any' : 'warn' ,
39+ } ,
3940 } ,
40- pluginJs . configs . recommended ,
41- ...tseslint . configs . recommended ,
42- pluginReact . configs . flat . recommended ,
4341] ;
0 commit comments