diff --git a/.eslintrc.json b/.eslintrc.json index e82a3add..71a70ef7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,6 +12,7 @@ "**/types/*", "**/fixture/*", "**/fixtures/*", + "**/test/out/*", "public", "docs/.vitepress/dist", "docs/.vitepress/cache" diff --git a/internals/generators/plopfile.cjs b/internals/generators/plopfile.js similarity index 97% rename from internals/generators/plopfile.cjs rename to internals/generators/plopfile.js index b59b27a9..ed114cdc 100644 --- a/internals/generators/plopfile.cjs +++ b/internals/generators/plopfile.js @@ -1,7 +1,7 @@ /** * @param {import('plop').NodePlopAPI} plop */ -module.exports = function (plop) { +export default (plop) => { plop.setGenerator('module', { description: 'RNA ecosystem module.', prompts: [ diff --git a/package.json b/package.json index e18ef6a7..79f7d668 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "clear": "rimraf --glob 'packages/*/{types,*.tsbuildinfo}' 'packages/*/dist'", "build": "yarn workspaces foreach --topological-dev --verbose run build", "types": "rimraf --glob 'packages/*/{types,*.tsbuildinfo}' && tsc -b", - "lint": "prettier --check . && eslint 'packages/*/lib/**/*.js'", + "lint": "prettier --check . && eslint .", "test": "vitest --coverage", "new": "plop --plopfile internals/generators/plopfile.cjs module", "docs:dev": "vitepress dev docs", @@ -33,7 +33,7 @@ "chai-string": "^1.5.0", "eslint": "^8.0.0", "jsonc-parser": "^3.0.0", - "plop": "^3.1.2", + "plop": "^4.0.0", "prettier": "^3.1.1", "rimraf": "^5.0.1", "typescript": "^5.0.0", diff --git a/packages/esbuild-plugin-html/test/test.spec.js b/packages/esbuild-plugin-html/test/test.spec.js index 6f3af9f0..98d11d26 100644 --- a/packages/esbuild-plugin-html/test/test.spec.js +++ b/packages/esbuild-plugin-html/test/test.spec.js @@ -1346,7 +1346,7 @@ html { expect(css.path).endsWith(path.join(path.sep, 'out', 'index.css')); }); - it('should minify html', async () => { + test('should minify html', async () => { const { outputFiles } = await esbuild.build({ absWorkingDir: fileURLToPath(new URL('.', import.meta.url)), entryPoints: [fileURLToPath(new URL('fixture/index.iife.html', import.meta.url))], @@ -1363,8 +1363,8 @@ html { }); const [index] = outputFiles; - expect(index.text).to.be - .equal(`