-
Notifications
You must be signed in to change notification settings - Fork 45
/
.eslintrc.yaml
97 lines (78 loc) · 2.14 KB
/
.eslintrc.yaml
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
# This is a modified set of rules based on the baseline defined in mofo-style v 2.3.0.
# This project was started with a much older version of mofo-style, using jshint, and this is an
# effort to tranistion the project to use the latest version, which is intended for usage in any ES6-based project.
# The main changes in the file are as follows:
# Eliminated rules:
# - valid-jsdoc
# - newline-after-var
# - prefer-arrow-callback
# Modified rules:
# - arrowFunctions: false // instead of true
# - quotes: [2, "single"] // instead of "backtick"
# - no-use-before-define: [2, "nofunc"] // instead of defaulting to none
#
# The specific environment(s) needed are configured in this file directly.
---
rules: # http://eslint.org/docs/rules
# Possible Errors
# Best Practices
curly: [2]
dot-notation: [2]
eqeqeq: [2]
guard-for-in: [2]
no-div-regex: [2]
no-eval: [2]
no-extend-native: [2]
no-floating-decimal: [2]
no-implied-eval: [2]
no-labels: [2]
no-lone-blocks: [2]
no-loop-func: [2]
no-multi-spaces: [2]
no-native-reassign: [2]
no-new-wrappers: [2]
no-new: [2]
no-redeclare: [2]
no-return-assign: [2]
no-self-compare: [2]
radix: [2]
wrap-iife: [2, "inside"]
yoda: [2, "never"]
# Strict Mode
strict: [2, "global"]
# Variables
no-shadow: [2]
no-use-before-define: [2, "nofunc"]
# Stylistic Issues
block-spacing: [2, "always"]
brace-style: [2, "1tbs", allowSingleLine: true]
camelcase: [2, properties: "always"]
comma-style: [2, "last"]
consistent-this: [2, "self"]
eol-last: [2]
indent: [2, 2, {"VariableDeclarator": { "var": 2, "let": 2, "const": 3}}]
linebreak-style: [2, "unix"]
no-lonely-if: [2]
no-trailing-spaces: [2]
no-unneeded-ternary: [2]
quotes: [2, "single"]
semi: [2, "always"]
spaced-comment: [2, "always"]
wrap-regex: [2]
# ES6
# Overrides to `eslint:recommended` rule set
no-console: [0]
extends: "eslint:recommended"
ecmaFeatures:
arrowFunctions: false
blockBindings: true
defaultParams: true
destructuring: true
forOf: true
spread: true
templateStrings: true
# Environments
env:
browser: true
node: true
mocha: true