Skip to content

Commit ff8fa86

Browse files
committed
fix: lint error
1 parent 316f464 commit ff8fa86

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

eslint.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import 'tsx'
22
import { createRequire } from 'node:module'
33

4-
// eslint-disable-next-line antfu/no-import-dist
5-
import { defineConfig as defineConfig2 } from './dist/index.js'
6-
74
const require = createRequire(import.meta.url)
85

9-
const { defineConfig: defineConfig1 } = require('./src/index.ts')
10-
11-
const useBuild = false
6+
const { defineConfig } = require('./src/index.ts')
127

138
/** @type {import('./src/index.ts').defineConfig} */
14-
const defineConfig = useBuild ? defineConfig2 : defineConfig1
159
export default defineConfig(
1610
{
1711
vue: true,

tsconfig.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
{
22
"compilerOptions": {
3-
"target": "es2020",
3+
"target": "ESNext",
4+
"jsx": "preserve",
5+
"jsxImportSource": "react",
6+
"lib": ["DOM", "ESNext"],
47
"baseUrl": ".",
5-
"module": "es2020",
8+
"module": "ESNext",
69
"moduleResolution": "Bundler",
10+
"paths": {
11+
"@/*": ["./src/*"]
12+
},
13+
"resolveJsonModule": true,
14+
"types": ["node"],
715
"strict": true,
16+
"strictNullChecks": true,
17+
"noUnusedLocals": true,
18+
"outDir": "./dist",
19+
"allowSyntheticDefaultImports": true,
820
"esModuleInterop": true,
21+
"forceConsistentCasingInFileNames": true,
22+
"isolatedModules": true,
923
"skipLibCheck": true
1024
},
11-
"include": [
12-
"**/*.ts"
13-
],
14-
"exclude": [
15-
"./fixtures/**/*.*"
16-
]
25+
"include": ["./**/*"],
26+
"exclude": ["node_modules", "dist"]
1727
}

tsup.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ export default defineConfig({
55
clean: true,
66
dts: true,
77
format: ['cjs', 'esm'],
8-
// external: [
9-
// '@antfu/eslint-define-config',
10-
// 'eslint-plugin-react',
11-
// 'eslint-plugin-react-hooks',
12-
// 'eslint-plugin-react-refresh',
13-
// ],
8+
external: [
9+
'@antfu/eslint-define-config',
10+
'eslint-plugin-react',
11+
'eslint-plugin-react-hooks',
12+
'eslint-plugin-react-refresh',
13+
],
1414
sourcemap: false,
15-
// target: 'node14',
15+
target: 'node14',
1616
minify: false,
1717
shims: true,
1818
})

0 commit comments

Comments
 (0)