-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
36 lines (29 loc) · 1.06 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
extends: standard
plugins:
- no-console-log
# Rule details at http://eslint.org/docs/rules/
# Specific rules usually http://eslint.org/docs/rules/<rule-name>
# First argument to a rule is always one of:
# - 0: disable rule
# - 1: generate warning
# - 2: generate error
rules:
linebreak-style:
- 2
- unix # only allow LF
# Enforced max line length. Temporarily disable in the rare cases that
# a long line is more readable (e.g. URLs), using
# /* eslint-disable max-len */
# Your legitimately long lines here...
# /* eslint-enable max-len */
max-len:
- 2 # error to enforce compliance, disable when needed
- 80 # line length
- 2 # count tabs as 2 characters (required, but we don't allow tabs)
# No logging to console, so debugging lines are not left in by mistake.
no-console-log/no-console-log:
- 1 # Just a warning, do not want to stop build during development
# Do not use variables before they are defined.
no-use-before-define:
- 2
- nofunc # allow use of hoisted functions before their definition