-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 913 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
module.exports = {
extends: 'interfaced',
overrides: [
{
files: ['lib/**/*.js', 'test/lib/**/*.js'],
extends: 'interfaced/esm',
settings: {
'import/resolver': 'zombiebox'
}
},
{
files: ['lib/**/*.js'],
plugins: [
'header'
],
'rules': {
'header/header': ['error', 'block', [
'',
' * This file is part of the ZombieBox package.',
' *',
{pattern: `\\* Copyright © 2016\\-${(new Date).getFullYear()}, Interfaced`},
' *',
' * For the full copyright and license information, please view the LICENSE',
' * file that was distributed with this source code.',
' '
]]
}
},
{
files: ['generators/**/*.js', 'scripts/*.js', 'index.js', 'test/config.js'],
extends: 'interfaced/node'
},
{
files: ['test/lib/**/*.js'],
extends: 'interfaced/mocha-chai',
rules: {
'import/no-unused-modules': 'off'
}
}
]
};