-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.prettierrc.json
More file actions
48 lines (48 loc) · 911 Bytes
/
Copy path.prettierrc.json
File metadata and controls
48 lines (48 loc) · 911 Bytes
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
44
45
46
47
48
{
"printWidth": 80,
"useTabs": true,
"overrides": [
{
"files": ["*.md"],
"options": {
"useTabs": false,
"tabWidth": 2
}
},
{
"files": ["**/bin/*.js"],
"options": {
"useTabs": false
}
},
{
"files": ["**/code/*.example.js"],
"options": {
"useTabs": false
}
},
{
"files": ["src/data/levels/$tests/*.js"],
"options": {
"useTabs": false
}
}
],
"arrowParens": "always",
"importOrder": [
"^react$",
"<THIRD_PARTY_MODULES>",
"^classnames$",
"^lodash$",
"^\\.\\.(?!.*\\.css).*$",
"^[./](?!.*\\.css).*$",
"bootstrap\\.min\\.css$",
"\\.css$"
],
"importOrderExplanation": {
"^\\.\\.(?!.*\\.css).*$": "any non-css local file from parent folder (ex: ../locales)",
"^[./](?!.*\\.css).*$": "any non-css local file from current folder (ex: ./Something)"
},
"importOrderSeparation": false,
"importOrderSortSpecifiers": true
}