-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheslintrc.yml
84 lines (78 loc) · 1.99 KB
/
eslintrc.yml
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
root: true
parserOptions:
ecmaVersion: 5
sourceType: "script"
env:
browser: true
extends:
# https://github.com/google/eslint-config-google/blob/master/index.js
- "eslint:recommended"
- "google"
rules:
# Possible Errors
no-unsafe-negation: "error"
# Best Practices
accessor-pairs: "error"
array-callback-return: "error"
complexity: "error"
consistent-return: "error"
curly: ["error", "all"]
dot-location: ["error", "property"]
dot-notation: "error"
eqeqeq: "error"
no-alert: "error"
no-div-regex: "error"
no-eq-null: "error"
no-eval: "error"
no-extra-label: "error"
no-floating-decimal: "error"
no-global-assign: "error"
no-implicit-coercion: "error"
no-implied-eval: "error"
no-iterator: "error"
no-labels: "error"
no-lone-blocks: "error"
no-new-func: "error"
no-new: "error"
no-octal-escape: "error"
no-param-reassign: "error"
no-proto: "error"
no-return-assign: "error"
no-return-await: "error"
no-script-url: "error"
no-self-compare: "error"
no-sequences: "error"
no-unmodified-loop-condition: "error"
no-unused-expressions: "error"
no-useless-call: "error"
no-useless-concat: "error"
no-useless-escape: "error"
no-useless-return: "error"
no-void: "error"
no-warning-comments: "warn"
prefer-promise-reject-errors: "error"
radix: "error"
require-await: "error"
wrap-iife: ["error", "inside"]
# Variables
no-catch-shadow: "error"
no-label-var: "error"
no-shadow-restricted-names: "error"
no-shadow: "error"
no-undef-init: "error"
no-undefined: "error"
no-use-before-define: ["error", { "functions": false }]
# Stylistic Issues
block-spacing: "error"
consistent-this: ["error", "self"]
indent: ["error", 2, { SwitchCase: 1 }]
keyword-spacing: "error"
new-parens: "error"
no-unneeded-ternary: "error"
no-whitespace-before-property: "error"
operator-linebreak: ["error", "after"]
space-in-parens: "error"
space-infix-ops: "error"
space-unary-ops: "error"
# ECMAScript 6
no-var: "off"