-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintconfig.es6.json
44 lines (42 loc) · 1.3 KB
/
.eslintconfig.es6.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
{
"extends": "@vimeo/eslint-config-player",
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"no-restricted-syntax": ["error", "YieldExpression"],
"no-template-curly-in-string": "warn",
"arrow-parens": "error",
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"constructor-super": "error",
"no-class-assign": "error",
"no-confusing-arrow": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": ["error", {
"includeExports": true
}],
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": ["error", "never"],
"symbol-description": "error",
"template-curly-spacing": ["error", "never"]
}
}