diff --git a/.eslintrc b/.eslintrc index 38d51b3..8cd731a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,8 @@ { "extends": "@antfu", + "rules": { + "react/no-unknown-property": "off", + }, "overrides": [ { "files": "test/**/*.*", diff --git a/.gitignore b/.gitignore index d1c2ce0..d5b0798 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ yarn-error.log .idea/ .history/ .vscode +temp diff --git a/playground/TestJsx.tsx b/playground/TestJsx.tsx index cf51980..d098cc4 100644 --- a/playground/TestJsx.tsx +++ b/playground/TestJsx.tsx @@ -2,6 +2,6 @@ const word = 'JSX works!' export default { render() { - return
{word}
+ return
{word}
}, } diff --git a/playground/TestJsxSFC.vue b/playground/TestJsxSFC.vue index e0dfb5e..ca33a87 100644 --- a/playground/TestJsxSFC.vue +++ b/playground/TestJsxSFC.vue @@ -3,7 +3,7 @@ const word = 'JSX & SFC works!' export default { render() { - return
{word}
+ return
{word}
}, } diff --git a/test/util.ts b/test/util.ts index c730f59..f6e9b48 100644 --- a/test/util.ts +++ b/test/util.ts @@ -16,9 +16,7 @@ export async function preTest() { await fs.remove(tempDir) } catch (e) {} - await fs.copy(fixtureDir, tempDir, { - filter: file => !/dist|node_modules/.test(file), - }) + await fs.copy(fixtureDir, tempDir) binPath = path.resolve(tempDir, './node_modules/vite/bin/vite.js') await build() @@ -50,7 +48,7 @@ export async function startServer(isBuild: boolean) { args: ['--no-sandbox', '--disable-setuid-sandbox'], // Enable if puppeteer can't detect chrome's path on MacOS // executablePath: - // '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', + // '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', }) await new Promise((resolve) => {