Skip to content

Commit ebd581e

Browse files
committed
feat: 新增 ESLint 预设模块,整合 nest、next、nextJs、normal 和 tailwind 配置,同时移除 next-ts 预设
1 parent da6e009 commit ebd581e

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

src/eslint/preset/index.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export { default as nest } from './nest.mjs'
2+
export { default as next } from './next.mjs'
3+
export { default as nextJs } from './next-js.mjs'
4+
export { default as normal } from './normal.mjs'
5+
export { default as tailwind } from './umi.mjs'

src/eslint/preset/nest.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import typescriptStrict from '../typescript-strict.mjs'
2+
import normal from './normal.mjs'
3+
4+
export default [
5+
...normal,
6+
...typescriptStrict,
7+
]

src/eslint/preset/next-js.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import next from 'prefer-code-style/eslint/next'
2-
import tailwind from 'prefer-code-style/eslint/tailwindcss'
3-
1+
import tailwind from '../tailwindcss.mjs'
2+
import next from './next.mjs'
43
import normal from './normal.mjs'
54

65
export default [

src/eslint/preset/next-ts.mjs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)