-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
42 lines (42 loc) · 953 Bytes
/
.eslintrc.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
{
"parser": "@babel/eslint-parser",
"extends": ["google", "eslint:recommended", "prettier"],
"plugins": ["prettier", "filenames"],
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"globals": {
"before": true,
"spyOn": true,
"__PATH_PREFIX__": true,
"__BASE_PATH__": true,
"__ASSET_PREFIX__": true
},
"rules": {
"arrow-body-style": [
"error",
"as-needed",
{ "requireReturnForObjectLiteral": true }
],
"no-unused-expressions": [
"error",
{
"allowTaggedTemplates": true
}
],
"consistent-return": ["error"],
"filenames/match-regex": ["error", "^[a-z-\\d\\.]+$", true],
"no-console": "off",
"no-inner-declarations": "off",
"prettier/prettier": "error",
"quotes": ["error", "backtick"],
"require-jsdoc": "off",
"valid-jsdoc": "off"
}
}