forked from kamilkp/angular-vs-repeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 864 Bytes
/
.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
module.exports = {
parser: 'babel-eslint',
rules: {
'prefer-const': ['error', { destructuring: 'all' }],
'no-var': ['error'],
'semi-spacing': ['error', { 'before': false, 'after': true }],
'space-infix-ops': ['error'],
'keyword-spacing': ['error'],
'brace-style': ['error'],
'no-else-return': ['error'],
'semi': ['error'],
'no-useless-concat': ['error'],
'no-redeclare': ['error'],
'no-undef': ['error'],
'no-shadow': ['error'],
'comma-dangle': ['error', 'always-multiline'],
'indent': ['error', 2, {
FunctionDeclaration: { parameters: 'first' },
FunctionExpression: { parameters: 'first' },
SwitchCase: 1,
MemberExpression: 'off',
}],
},
globals: {
angular: false,
document: false,
window: false,
expect: false,
it: false,
describe: false,
}
};