forked from ember-learn/ember-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (59 loc) · 1.27 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
'browser': true
},
globals: {
'heimdall': true
},
rules: {
'no-unused-vars': ['error', {
'args': 'none',
}],
// from JSHint
'no-cond-assign': ['error', 'except-parens'],
'eqeqeq': 'error',
'no-eval': 'error',
'new-cap': ['error', {
'capIsNew': false,
}],
'no-caller': 'error',
'no-irregular-whitespace': 'error',
'no-undef': 'error',
'no-eq-null': 'error',
// from JSCS
'array-bracket-spacing': ['error', 'never'],
'comma-style': ['error', 'last'],
'brace-style': ['error', '1tbs', {
'allowSingleLine': true,
}],
'no-spaced-func': 'error',
'no-empty': 'error',
'curly': ['error', 'all'],
'eol-last': 'error',
'no-trailing-spaces': 'error',
'comma-dangle': ['error', 'never'],
'space-before-blocks': ['error', 'always'],
'indent': ['error', 2, {
'SwitchCase': 1,
}],
'keyword-spacing': ['error', {
'overrides': {
'else': {
'before': true,
},
'while': {
'before': true,
},
'catch': {
'before': true,
},
},
}],
}
};