-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
36 lines (36 loc) · 910 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
{
"env": {
"es6": true,
"es2017": true,
"browser": true
},
"root": true,
"extends": ["eslint:recommended", "plugin:json/recommended", "plugin:prettier/recommended"],
"globals": {},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier", "json", "googleappsscript"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "always"],
"prefer-arrow-callback": "error",
"no-console": "off",
"prettier/prettier": ["error"],
"curly": ["error", "all"],
"dot-location": ["error", "property"]
},
"overrides": [
{
"files": ["src/*.js"],
"env": {
"googleappsscript/googleappsscript": true,
"jquery": false
},
"globals": {"AWS": "readonly"}
}
]
}