-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
37 lines (36 loc) · 943 Bytes
/
eslint.config.js
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
import reactRefresh from 'eslint-plugin-react-refresh';
import reactHooks from 'eslint-plugin-react-hooks';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
export default [
eslintJs.configs.recommended,
eslintPluginPrettierRecommended,
tseslint.configs.eslintRecommended,
{
ignores: [
'**/dist',
'.prettierrc.js',
'**/routeTree.gen.ts',
'**/openapi-types/**',
],
},
{
plugins: {
'react-refresh': reactRefresh,
'react-hooks': reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules, // https://github.com/facebook/react/issues/28313
'no-unused-vars': 'off',
},
languageOptions: {
parser: tseslint.parser,
globals: {
...globals.browser,
...globals.node,
},
},
},
];