File tree 1 file changed +69
-0
lines changed
1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Disable the default formatter, use eslint instead
3
+ "prettier.enable" : false ,
4
+ "editor.formatOnSave" : false ,
5
+ // Auto fix
6
+ "editor.codeActionsOnSave" : {
7
+ "source.fixAll.eslint" : " explicit" ,
8
+ "source.organizeImports" : " never"
9
+ },
10
+ // Silent the stylistic rules in you IDE, but still auto fix them
11
+ "eslint.rules.customizations" : [
12
+ {
13
+ "rule" : " style/*" ,
14
+ "severity" : " off"
15
+ },
16
+ {
17
+ "rule" : " format/*" ,
18
+ "severity" : " off"
19
+ },
20
+ {
21
+ "rule" : " *-indent" ,
22
+ "severity" : " off"
23
+ },
24
+ {
25
+ "rule" : " *-spacing" ,
26
+ "severity" : " off"
27
+ },
28
+ {
29
+ "rule" : " *-spaces" ,
30
+ "severity" : " off"
31
+ },
32
+ {
33
+ "rule" : " *-order" ,
34
+ "severity" : " off"
35
+ },
36
+ {
37
+ "rule" : " *-dangle" ,
38
+ "severity" : " off"
39
+ },
40
+ {
41
+ "rule" : " *-newline" ,
42
+ "severity" : " off"
43
+ },
44
+ {
45
+ "rule" : " *quotes" ,
46
+ "severity" : " off"
47
+ },
48
+ {
49
+ "rule" : " *semi" ,
50
+ "severity" : " off"
51
+ }
52
+ ],
53
+ // Enable eslint for all supported languages
54
+ "eslint.validate" : [
55
+ " javascript" ,
56
+ " javascriptreact" ,
57
+ " typescript" ,
58
+ " typescriptreact" ,
59
+ " vue" ,
60
+ " html" ,
61
+ " markdown" ,
62
+ " json" ,
63
+ " jsonc" ,
64
+ " yaml" ,
65
+ " toml" ,
66
+ " gql" ,
67
+ " graphql"
68
+ ],
69
+ }
You can’t perform that action at this time.
0 commit comments