-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.prettier.json
47 lines (47 loc) · 1.47 KB
/
.eslintrc.prettier.json
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
{
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
"extends": [
".eslintrc.config.json",
// https://www.npmjs.com/package/eslint-config-prettier
// https://github.com/prettier/eslint-config-prettier/blob/master/index.js#L14
"prettier",
// https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
// @TODO
// "prettier/flowtype",
// https://github.com/prettier/eslint-config-prettier/blob/master/react.js
"prettier/react"
],
"rules": {
// https://github.com/prettier/eslint-config-prettier#curly
"curly": "error",
// https://github.com/prettier/eslint-config-prettier#max-len
"max-len": [
"error",
{
"code": 80,
"tabWidth": 4,
"ignoreComments": true,
"ignoreTrailingComments": false,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
// https://github.com/prettier/eslint-config-prettier#no-confusing-arrow
"no-confusing-arrow": "off",
// https://github.com/prettier/eslint-config-prettier#no-mixed-operators
"no-mixed-operators": "off",
// https://github.com/prettier/eslint-config-prettier#no-tabs
"no-tabs": "error",
// https://github.com/prettier/eslint-config-prettier#quotes
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
}