This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
forked from eslint-stylistic/eslint-stylistic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stub.js
27 lines (24 loc) · 1.42 KB
/
stub.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
/**
* Stub file for `@stylistic/eslint-plugin`
* Importing this file will directly load from source,
* so no build process is needed, and it always stays up-to-date.
*/
import { fileURLToPath } from 'node:url'
import JITI from 'jiti'
const jiti = JITI(import.meta.url, {
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)),
},
})
export const pluginDefault = jiti('@stylistic/eslint-plugin').default
export const pluginJS = jiti('@stylistic/eslint-plugin-js').default
export const pluginJSX = jiti('@stylistic/eslint-plugin-jsx').default
export const pluginTS = jiti('@stylistic/eslint-plugin-ts').default
export const pluginPlus = jiti('@stylistic/eslint-plugin-plus').default
export const metadata = jiti('@eslint-stylistic/metadata').default
export default pluginDefault