1
1
module . exports = {
2
2
env : {
3
- browser : true ,
4
- es2021 : true ,
3
+ browser : true ,
4
+ es2021 : true ,
5
5
} ,
6
- parser : " @typescript-eslint/parser" , // Specifies the ESLint parser
6
+ parser : ' @typescript-eslint/parser' , // Specifies the ESLint parser
7
7
parserOptions : {
8
- ecmaVersion : 2020 , // Allows for the parsing of modern ECMAScript features
9
- sourceType : " module" , // Allows for the use of imports
10
- ecmaFeatures : {
11
- jsx : true // Allows for the parsing of JSX
12
- }
8
+ ecmaVersion : 2020 , // Allows for the parsing of modern ECMAScript features
9
+ sourceType : ' module' , // Allows for the use of imports
10
+ ecmaFeatures : {
11
+ jsx : true , // Allows for the parsing of JSX
12
+ } ,
13
13
} ,
14
14
settings : {
15
- react : {
16
- version : " detect" // Tells eslint-plugin-react to automatically detect the version of React to use
17
- }
15
+ react : {
16
+ version : ' detect' , // Tells eslint-plugin-react to automatically detect the version of React to use
17
+ } ,
18
18
} ,
19
19
extends : [
20
- "plugin:react/recommended" ,
21
- "airbnb-typescript" ,
22
- "plugin:@typescript-eslint/recommended" ,
23
- "prettier/@typescript-eslint" ,
24
- "plugin:prettier/recommended" ,
25
- "plugin:storybook/recommended"
20
+ 'eslint:recommended' ,
21
+ 'plugin:react/recommended' ,
22
+ 'airbnb-typescript' ,
23
+ 'plugin:@typescript-eslint/recommended' ,
24
+ 'plugin:prettier/recommended' ,
25
+ 'plugin:storybook/recommended' ,
26
+ 'prettier' ,
27
+ 'prettier/@typescript-eslint' ,
28
+ 'prettier/react' ,
26
29
] ,
27
30
rules : {
28
- // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
29
- // e.g. "@typescript-eslint/explicit-function-return-type": "off",
31
+ // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
32
+ // e.g. "@typescript-eslint/explicit-function-return-type": "off",
30
33
} ,
31
34
plugins : [ 'react' , '@typescript-eslint' , 'prettier' ] ,
32
35
rules : {
33
- 'prettier/prettier' : 'error' ,
36
+ 'prettier/prettier' : 'error' ,
34
37
} ,
35
- } ;
38
+ } ;
0 commit comments