forked from micromatch/micromatch
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
31 lines (26 loc) · 1007 Bytes
/
eslint.config.mjs
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
/**
* ESLint config file.
*
* VS Code is aware of this config file's location.
*
* @note CUSTOM EDITS ONLY PLEASE!
* @note In the future this file will be updated automatically.
* @note Only `<custom:start.../custom:end>` will be preserved below.
*/
import baseConfig from './dev/.files/eslint/config.mjs';
import { $obj } from './node_modules/@clevercanyon/utilities/dist/index.js';
/*
* Customizations.
* <custom:start> */
import extensions from './dev/.files/bin/includes/extensions.mjs';
export default await (async () => {
return $obj.mergeDeep({}, await baseConfig(), {
$concat: {
'config[0].ignores': [
'index{,.d}.' + extensions.asBracedGlob([...extensions.byDevGroup.allJavaScript, ...extensions.byDevGroup.allTypeScript]), //
'{lib,src,tests}/**/*.' + extensions.asBracedGlob([...extensions.byDevGroup.allJavaScript, ...extensions.byDevGroup.allTypeScript]),
],
},
}).config;
})();
/* </custom:end> */