-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
42 lines (42 loc) · 1.05 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
env:
amd: true
browser: true
es6: true
mocha: true
globals:
ko: true
parserOptions:
ecmaVersion: 2017
sourceType: module
extends: eslint:recommended
rules:
# possible errors
no-cond-assign: off
no-console: off
valid-jsdoc: error
# best practices
complexity: [error, 10]
dot-location: [error, property]
eqeqeq: [error, always]
no-multi-spaces: error
vars-on-top: error
# variables
no-unused-vars: [error, { argsIgnorePattern: "^_" }]
# stylistic issues
array-bracket-spacing: [error, never]
block-spacing: [error, always]
camelcase: [error, { properties: always }]
comma-dangle: [error, { objects: always-multiline }]
comma-spacing: [error, { before: false, after: true }]
comma-style: [error, last]
eol-last: error
func-call-spacing: error
indent: [error, 2]
key-spacing: [error, { mode: strict }]
keyword-spacing: error
no-trailing-spaces: error
object-curly-spacing: [error, always]
semi: [error, always]
semi-spacing: [error, { before: false, after: true }]
# ecmascript 6
arrow-spacing: error