-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
42 lines (41 loc) · 944 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
33
34
35
36
37
38
39
40
41
42
const copyright = [
'',
' * This file is part of the ZombieBox package.',
' *',
` * Copyright © 2012-${(new Date).getFullYear()}, Interfaced`,
' *',
' * For the full copyright and license information, please view the LICENSE',
' * file that was distributed with this source code.',
' '
];
module.exports = {
extends: 'interfaced',
plugins: ['header'],
overrides: [{
files: ['lib/**/*.js', 'test/components/**/*.js'],
extends: 'interfaced/esm',
rules: {
'import/extensions': ['error', 'never', {jst: 'always'}]
},
settings: {
'import/resolver': 'zombiebox',
}
}, {
files: ['lib/**/*.js'],
rules: {
'header/header': ['error', 'block', copyright]
}
}, {
files: ['test/karma.*.conf.js', 'index.js'],
extends: 'interfaced/node',
}, {
files: ['test/components/**/*.js'],
extends: 'interfaced/mocha-chai',
rules: {
'import/no-unused-modules': 'off',
},
globals: {
sinon: true
}
}],
};