-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy patheslint.config.mjs
More file actions
38 lines (30 loc) · 1017 Bytes
/
eslint.config.mjs
File metadata and controls
38 lines (30 loc) · 1017 Bytes
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
// @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 = await moduleExport({
derivedAliases: getEslintAliases(),
...(await assertEnvironment())
});
config.push({
/* Add custom config here, such as disabling certain rules */
name: 'babel-plugin-tester/custom',
ignores: ['test/integration/assets/**']
});
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/*']
];
}