forked from ampproject/amp-github-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1.13 KB
/
.eslintrc
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
{
"root": true,
"extends": ["eslint:recommended", "google"],
"plugins": [
"jsdoc"
],
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"jest": true,
"node": true
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"returns": "return",
"constant": "const",
"class": "constructor"
},
"additionalTagNames": {
"customTags": [
"deprecated",
"export",
"final",
"package",
"restricted",
"suppress",
"template",
"visibleForTesting"
]
},
"allowOverrideWithoutParam" : true
}
},
"rules": {
"arrow-parens": [2, "as-needed"],
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2, "MemberExpression": 2, "ObjectExpression": 1, "CallExpression": { "arguments": 2 } }],
"jsdoc/check-param-names": 2,
"jsdoc/check-tag-names": 2,
"jsdoc/check-types": 2,
"jsdoc/require-param": 2,
"jsdoc/require-param-name": 2,
"jsdoc/require-param-type": 2,
"jsdoc/require-returns-type": 2,
"require-atomic-updates": 1
}
}