-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.js
66 lines (63 loc) · 1.41 KB
/
rc.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
/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
'use strict';
const {join} = require('path');
// Could make a simpler, more generic version for own repo
module.exports = {
overrides: [
{
files: [
'**/scripts/**/*',
'.babelrc.js',
'.eslintrc.js',
'.eslintrc.cjs',
'.mocharc.js',
'.mocharc.cjs',
'.ncurc.js',
'.ncurc.cjs',
'.3rdparty-eslintrc.js',
'**/jsdoc-config.js',
'webpack.config.js',
'**/.vuepress/config.js',
'*.webpack.config.js',
'web-ext-config.js',
'web-ext-config.cjs'
],
extends: [
'./rc-script.js'
]
},
{
files: [
'**/scripts/rollup-plugin/**/*',
'rollup.config.js',
'*.rollup.config.js'
],
extends: [
'./rc-module.js'
]
},
{
files: '**/*.{md,mkdn,mdown,markdown}',
processor: 'markdown/markdown'
},
{
files: '**/*.md/*.js',
rules: {
'n/no-missing-require': ['error', {allowModules: [
// eslint-disable-next-line n/global-require, import/no-dynamic-require -- Meant to be flexible
require(join(process.cwd(), 'package.json')).name
]}]
}
},
{
files: 'build/**',
rules: {
'compat/compat': 'off',
'n/no-unpublished-import': 'off'
}
}
]
};