This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
49 lines (49 loc) · 1.51 KB
/
.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
43
44
45
46
47
48
49
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": true
},
"globals":{
"google": true,
"GeolocationMarker": true
},
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": "eslint:recommended",
"rules": {
"space-unary-ops": [
2, {
"words": true,
"nonwords": false
}],
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"no-alert": ["warn"],
"curly":["warn"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"valid-jsdoc":["warn",{"matchDescription": ".+", "requireParamDescription": true}],
"space-infix-ops": ["warn"],
"max-len": ["error",{ "code": 130 }],
"space-in-parens": ["warn", "never"],
"block-spacing": ["warn", "always"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"no-eval": "error",
"no-empty": "warn",
"keyword-spacing": "warn",
"no-whitespace-before-property": "error",
"no-unused-vars": ["warn", { "vars": "local", "args": "after-used", "ignoreRestSiblings": false }],
"no-case-declarations": ["warn"]
}
}