forked from eslint-stylistic/eslint-stylistic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias.mjs
17 lines (15 loc) · 1.04 KB
/
alias.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { fileURLToPath } from 'node:url'
export const aliasVirtual = {
'#test': fileURLToPath(new URL('./packages/shared/test-utils', import.meta.url)),
'#types': fileURLToPath(new URL('./packages/shared/types', import.meta.url)),
'#utils': fileURLToPath(new URL('./packages/shared/utils', import.meta.url)),
}
export const alias = {
'@stylistic/eslint-plugin': fileURLToPath(new URL('./packages/eslint-plugin/src/index.ts', import.meta.url)),
'@stylistic/eslint-plugin-js': fileURLToPath(new URL('./packages/eslint-plugin-js/src/index.ts', import.meta.url)),
'@stylistic/eslint-plugin-jsx': fileURLToPath(new URL('./packages/eslint-plugin-jsx/src/index.ts', import.meta.url)),
'@stylistic/eslint-plugin-ts': fileURLToPath(new URL('./packages/eslint-plugin-ts/src/index.ts', import.meta.url)),
'@stylistic/eslint-plugin-plus': fileURLToPath(new URL('./packages/eslint-plugin-plus/src/index.ts', import.meta.url)),
'@eslint-stylistic/metadata': fileURLToPath(new URL('./packages/metadata/src/index.ts', import.meta.url)),
...aliasVirtual,
}