This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
mirrored from https://chromium.googlesource.com/catapult
-
Notifications
You must be signed in to change notification settings - Fork 563
/
.eslintrc
149 lines (149 loc) · 4.62 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"extends": "google",
"parserOptions": {
"ecmaVersion": 2018,
},
"plugins": ["html"],
"rules": {
"accessor-pairs": "off",
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "off",
"arrow-body-style": ["error", "as-needed", {
"requireReturnForObjectLiteral": true
}],
"arrow-parens": "off",
"block-scoped-var": "off",
"brace-style": ["error", "1tbs", {
"allowSingleLine": true
}],
"camelcase": "off",
"catapult-camelcase": ["error", {
"properties": "never"
}],
"comma-dangle": "off",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-this": ["error", "void"],
"constructor-super": "error",
"curly": ["error", "multi-line", "consistent"],
"default-case": "off",
"dot-location": "off",
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"generator-star-spacing": ["error", "after"],
"guard-for-in": "off",
"handle-callback-err": "off",
"indent": ["error", 2, {
"CallExpression": {"arguments": 2},
"FunctionDeclaration": {"parameters": 2},
"FunctionExpression": {"parameters": 2},
"MemberExpression": 2,
"SwitchCase": 1,
"VariableDeclarator": 2,
}],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"max-len": ["error", {
"ignorePattern": "((// @suppress longLineCheck)|:)$",
"ignoreUrls": true
}],
"max-nested-callbacks": "off",
"max-statements-per-line": "off",
"new-cap": "off",
"new-parens": "off",
"no-alert": "off",
"no-array-constructor": "error",
"no-caller": "error",
"no-cond-assign": "off",
"no-confusing-arrow": ["error", {
"allowParens": true
}],
"no-console": "error",
"no-constant-condition": "off",
"no-control-regex": "off",
"no-dupe-keys": "off",
"no-else-return": "error",
"no-eq-null": "off",
"no-extend-native": "error",
"no-extra-bind": "off",
"no-extra-boolean-cast": "off",
"no-extra-semi": "error",
"no-floating-decimal": "off",
"no-func-assign": "off",
"no-implicit-coercion": "off",
"no-irregular-whitespace": "error",
"no-inner-declarations": "off",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": ["error", {
"ignoreEOLComments": true,
}],
"no-multi-str": "error",
"no-multiple-empty-lines": ["error", {max: 2}],
"no-negated-condition": "off",
"no-new": "off",
"no-new-func": "off",
"no-new-object": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-proto": "off",
"no-redeclare": "off",
"no-regex-spaces": "off",
"no-restricted-globals": "off",
"no-return-assign": "off",
"no-sequences": "off",
"no-spaced-func": "off",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef": "off",
"no-undef-init": "off",
"no-unexpected-multiline": "error",
"no-unneeded-ternary": "off",
"no-unreachable": "error",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-concat": "off",
"no-useless-escape": "off",
"no-var": "error",
"prefer-const": "error",
"no-warning-comments": "off",
"no-whitespace-before-property": "off",
"no-with": "error",
"object-curly-spacing": "off",
"object-shorthand": ["error", "always"],
"one-var": ["error", {
var: "never",
let: "never",
const: "never",
}],
"one-var-declaration-per-line": "off",
"operator-assignment": "off",
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
"radix": "off",
"require-jsdoc": "off",
"semi": "error",
"semi-spacing": "error",
"rest-spread-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-unary-ops": "off",
"spaced-comment": ["error", "always", {
"line": {
"exceptions": ["/"],
},
}],
"valid-jsdoc": "off",
"wrap-iife": "off",
"yield-star-spacing": ["error", "after"],
"yoda": "off"
}
}