This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
forked from ember-cli-code-coverage/ember-cli-code-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
100 lines (75 loc) · 1.9 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
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
98
99
100
/* jshint ignore:start */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6
},
extends: 'eslint:recommended',
env: {
browser: true,
node: true
},
rules: {
// JSHint "expr"
'no-unused-expressions': [2, {
allowShortCircuit: true,
allowTernary: true,
}],
// JSHint "proto", disabled due to warnings
'no-proto': 0,
// JSHint "strict"
'strict': [2, 'global'],
// JSHint "indent", disabled due to warnings
'indent': [2, 2, {
'SwitchCase': 1,
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 }
}],
// JSHint "camelcase"
camelcase: 2,
// JSHint "boss"
'no-cond-assign': [2, 'except-parens'],
// JSHint "curly"
curly: 2,
// JSHint "latedef"
'no-use-before-define': [2, 'nofunc'],
// JSHint "debug", disabled already in .jshintrc
'no-debugger': 0,
// JSHint "eqeqeq"
eqeqeq: 2,
// JSHint "evil"
'no-eval': 2,
// JSHint "forin", disabled already in .jshintrc
'guard-for-in': 0,
// JSHint "immed", disabled already in .jshintrc
'wrap-iife': 0,
// JSHint "laxbreak"
'linebreak-style': [2, 'unix'],
// JSHint "newcap
'new-cap': [2, {
properties: false,
}],
// JSHint "noarg"
'no-caller': 2,
// JSHint "noempty", JSCS "disallowEmptyBlocks"
'no-empty': 2,
// JSHint "quotmark", disabled due to warnings
quotes: [0, 'single'],
// JSHint "nonew", disabled already in .jshintrc
'no-new': 0,
// JSHint "plusplus", disabled already in .jshintrc
'no-plusplus': 0,
// JSHint "undef"
'no-undef': 2,
// JSHint "unused"
'no-unused-vars': 2,
// JSHint "sub", disabled due to warnings
'dot-notation': 0,
// JSHint "trailing"
'no-trailing-spaces': 2,
// JSHint "eqnull"
'no-eq-null': 2,
'no-console': 0,
'comma-dangle': 0,
},
};
/* jshint ignore:end */