-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
43 lines (41 loc) · 965 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
38
39
40
41
42
43
import globals from 'globals';
import customJS from 'eslint-config-dafi/flat/javascript/index.mjs';
import customTypescript from 'eslint-config-dafi/flat/typescript/index.mjs';
import customReact from 'eslint-config-dafi/flat/reactjs/index.mjs';
import customStylistic from 'eslint-config-dafi/flat/stylistic/index.mjs';
import tsParser from '@typescript-eslint/parser';
import reactCompiler from 'eslint-plugin-react-compiler';
export default [
{
ignores: [
'eslint.config.js',
'vite.config.ts',
'dist/'
],
},
{
languageOptions: {
globals: {
...globals.browser,
},
parser: tsParser,
parserOptions: {
project: [
'tsconfig.json'
],
}
},
},
...customJS,
...customTypescript,
...customReact,
...customStylistic,
{
plugins: {
'react-compiler': reactCompiler,
},
rules: {
'react-compiler/react-compiler': 'error',
},
}
];