-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
54 lines (42 loc) · 954 Bytes
/
eslint.config.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
/*!
* V4Fire DevTools
* https://github.com/V4Fire/DevTools
*
* Released under the MIT license
* https://github.com/V4Fire/DevTools/blob/main/LICENSE
*/
'use strict';
const
headerPlugin = require('eslint-plugin-header');
const
base = require('@v4fire/linters/eslint.config');
const copyrightTemplate = [
'!',
' * V4Fire DevTools',
' * https://github.com/V4Fire/DevTools',
' *',
' * Released under the MIT license',
' * https://github.com/V4Fire/DevTools/blob/main/LICENSE',
' '
];
const ignore = [
'**/src/**/@(i-|b-|p-|g-|v-)*/index.js',
'**/src/**/test/**/*.js',
'**/assets/**',
'**/src/assets/**',
'**/tmp/**',
'**/src/entries/tmp/**',
'**/docs/**',
'**/dist/**',
'**/node_modules/**'
];
base.forEach((item) => {
item.ignores = ignore;
if (item.plugins) {
item.plugins['header'] = headerPlugin;
}
if (item.rules) {
item.rules['header/header'] = [2, 'block', copyrightTemplate];
}
});
module.exports = base;