1
1
/* eslint-disable no-undef */
2
+ import { eslintrc } from "@futura-dev/eslint-config-typescript" ;
2
3
3
4
module . exports = {
5
+ // parser
4
6
parser : "@typescript-eslint/parser" ,
7
+
8
+ // extensions
9
+ plugins : [ "react-hooks" , "@typescript-eslint" , "import" ] ,
5
10
extends : [
6
11
"@futura-dev/typescript/.eslintrc.js" ,
7
12
"plugin:import/warnings" ,
8
13
"plugin:react/recommended" ,
9
- "plugin:jsx-a11y/recommended"
14
+ "plugin:jsx-a11y/recommended" ,
10
15
] ,
11
- plugins : [ "react-hooks" , "@typescript-eslint" , "import" ] ,
16
+
17
+ // rules
12
18
rules : {
13
19
"react/react-in-jsx-scope" : "off" ,
14
20
"react/jsx-uses-react" : "off" ,
@@ -18,11 +24,23 @@ module.exports = {
18
24
"react/jsx-no-bind" : "warn" ,
19
25
"import/default" : "warn" ,
20
26
"import/first" : "warn" ,
21
- "import/export" : "error"
27
+ "import/export" : "error" ,
28
+
29
+ "prettier/prettier" : [
30
+ "error" ,
31
+ {
32
+ ...eslintrc . rules [ "prettier/prettier" ] [ 1 ] ,
33
+ singleAttributePerLine : true ,
34
+ bracketSameLine : false ,
35
+ htmlWhitespaceSensitivity : "css" ,
36
+ } ,
37
+ ] ,
22
38
} ,
39
+
40
+ // settings
23
41
settings : {
24
42
react : {
25
- version : ' detect'
26
- }
43
+ version : " detect" ,
44
+ } ,
27
45
} ,
28
46
} ;
0 commit comments