8
8
module . exports = {
9
9
root : true ,
10
10
parserOptions : {
11
- ecmaVersion : " latest" ,
12
- sourceType : " module" ,
11
+ ecmaVersion : ' latest' ,
12
+ sourceType : ' module' ,
13
13
ecmaFeatures : {
14
14
jsx : true ,
15
15
} ,
@@ -21,60 +21,56 @@ module.exports = {
21
21
} ,
22
22
23
23
// Base config
24
- extends : [ " eslint:recommended" ] ,
24
+ extends : [ ' eslint:recommended' ] ,
25
25
26
26
overrides : [
27
27
// React
28
28
{
29
- files : [ " **/*.{js,jsx,ts,tsx}" ] ,
30
- plugins : [ " react" , " jsx-a11y" ] ,
29
+ files : [ ' **/*.{js,jsx,ts,tsx}' ] ,
30
+ plugins : [ ' react' , ' jsx-a11y' ] ,
31
31
extends : [
32
- " plugin:react/recommended" ,
33
- " plugin:react/jsx-runtime" ,
34
- " plugin:react-hooks/recommended" ,
35
- " plugin:jsx-a11y/recommended" ,
32
+ ' plugin:react/recommended' ,
33
+ ' plugin:react/jsx-runtime' ,
34
+ ' plugin:react-hooks/recommended' ,
35
+ ' plugin:jsx-a11y/recommended' ,
36
36
] ,
37
37
settings : {
38
38
react : {
39
- version : " detect" ,
39
+ version : ' detect' ,
40
40
} ,
41
- formComponents : [ " Form" ] ,
41
+ formComponents : [ ' Form' ] ,
42
42
linkComponents : [
43
- { name : " Link" , linkAttribute : "to" } ,
44
- { name : " NavLink" , linkAttribute : "to" } ,
43
+ { name : ' Link' , linkAttribute : 'to' } ,
44
+ { name : ' NavLink' , linkAttribute : 'to' } ,
45
45
] ,
46
- " import/resolver" : {
46
+ ' import/resolver' : {
47
47
typescript : { } ,
48
48
} ,
49
49
} ,
50
50
} ,
51
51
52
52
// Typescript
53
53
{
54
- files : [ " **/*.{ts,tsx}" ] ,
55
- plugins : [ " @typescript-eslint" , " import" ] ,
56
- parser : " @typescript-eslint/parser" ,
54
+ files : [ ' **/*.{ts,tsx}' ] ,
55
+ plugins : [ ' @typescript-eslint' , ' import' ] ,
56
+ parser : ' @typescript-eslint/parser' ,
57
57
settings : {
58
- " import/internal-regex" : " ^~/" ,
59
- " import/resolver" : {
58
+ ' import/internal-regex' : ' ^~/' ,
59
+ ' import/resolver' : {
60
60
node : {
61
- extensions : [ " .ts" , " .tsx" ] ,
61
+ extensions : [ ' .ts' , ' .tsx' ] ,
62
62
} ,
63
63
typescript : {
64
64
alwaysTryTypes : true ,
65
65
} ,
66
66
} ,
67
67
} ,
68
- extends : [
69
- "plugin:@typescript-eslint/recommended" ,
70
- "plugin:import/recommended" ,
71
- "plugin:import/typescript" ,
72
- ] ,
68
+ extends : [ 'plugin:@typescript-eslint/recommended' , 'plugin:import/recommended' , 'plugin:import/typescript' ] ,
73
69
} ,
74
70
75
71
// Node
76
72
{
77
- files : [ " .eslintrc.cjs" , " server.js" ] ,
73
+ files : [ ' .eslintrc.cjs' , ' server.js' ] ,
78
74
env : {
79
75
node : true ,
80
76
} ,
0 commit comments