@bfra.me/eslint-config 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +4051 -0
- package/lib/index.js +534 -0
- package/package.json +100 -0
- package/readme.md +37 -0
- package/src/configs/command.ts +11 -0
- package/src/configs/epilogue.ts +16 -0
- package/src/configs/eslint-comments.ts +19 -0
- package/src/configs/ignores.ts +11 -0
- package/src/configs/imports.ts +22 -0
- package/src/configs/index.ts +10 -0
- package/src/configs/javascript.ts +61 -0
- package/src/configs/jsdoc.ts +27 -0
- package/src/configs/perfectionist.ts +21 -0
- package/src/configs/typescript.ts +139 -0
- package/src/configs/vitest.ts +46 -0
- package/src/define-config.ts +227 -0
- package/src/env.ts +36 -0
- package/src/globs.ts +48 -0
- package/src/index.ts +9 -0
- package/src/plugins.ts +16 -0
- package/src/types.d.ts +3903 -0
package/src/plugins.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type {Awaitable} from './types'
|
|
2
|
+
|
|
3
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
4
|
+
export async function interopDefault<T>(
|
|
5
|
+
m: Awaitable<T>,
|
|
6
|
+
): Promise<T extends {default: infer U} ? U : T> {
|
|
7
|
+
const resolved = await m
|
|
8
|
+
return (resolved as any).default || resolved
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// @ts-expect-error - No types
|
|
12
|
+
export {default as eslintComments} from '@eslint-community/eslint-plugin-eslint-comments'
|
|
13
|
+
export {default as importX} from 'eslint-plugin-import-x'
|
|
14
|
+
export {default as jsdoc} from 'eslint-plugin-jsdoc'
|
|
15
|
+
export {default as perfectionist} from 'eslint-plugin-perfectionist'
|
|
16
|
+
export {default as unusedImports} from 'eslint-plugin-unused-imports'
|