-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
41 lines (40 loc) · 1007 Bytes
/
eslint.config.js
File metadata and controls
41 lines (40 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import pluginJs from '@eslint/js';
import pluginReact from 'eslint-plugin-react';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default [
{
ignores: [
'dist/**',
'public/assets/**',
'node_modules/**',
'build/**',
'*.config.js',
'*.config.ts',
'src/utils/test.js',
'src/utils/worker/**',
'src/utils/wasm/**',
],
},
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/react-in-jsx-scope': 0,
'react/prefer-stateless-function': 0,
'react/jsx-filename-extension': 0,
'react/jsx-one-expression-per-line': 0,
'no-nested-ternary': 0,
'react/prop-types': 0,
'@typescript-eslint/no-explicit-any': 'warn',
},
},
];