-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheslint.config.mjs
36 lines (28 loc) · 931 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
32
33
34
35
36
// @ts-check
import {
assertEnvironment,
moduleExport
} from '@-xun/symbiote/assets/eslint.config.mjs';
import { createDebugLogger } from 'rejoinder';
const debug = createDebugLogger({ namespace: 'symbiote:config:eslint' });
const config = moduleExport({
derivedAliases: getEslintAliases(),
...(await assertEnvironment())
});
config.push({
/* Add custom config here, such as disabling certain rules */
});
export default config;
debug('exported config: %O', config);
function getEslintAliases() {
// ! These aliases are auto-generated by symbiote. Instead of modifying them
// ! directly, consider regenerating aliases across the entire project with:
// ! `npx symbiote project renovate --regenerate-assets --assets-preset ...`
return [
['rootverse:*', './*'],
['universe:*', './src/*'],
['universe', './src/index.ts'],
['testverse:*', './test/*'],
['typeverse:*', './types/*']
];
}