refactor: lint

This commit is contained in:
Kevin Deng
2025-11-26 17:12:35 +08:00
parent 620450b5ba
commit 5279b2eb69
33 changed files with 2271 additions and 449 deletions

View File

@@ -1,5 +1,5 @@
import { defineConfig } from 'vitest/config'
import { babel } from '@rollup/plugin-babel'
import { defineConfig } from 'vitest/config'
import Jsx from './packages/babel-plugin-jsx/src'
export default defineConfig({
@@ -16,7 +16,10 @@ export default defineConfig({
plugins: [
[
Jsx,
{ optimize: true, isCustomElement: (tag: string) => /^x-/.test(tag) },
{
optimize: true,
isCustomElement: (tag: string) => tag.startsWith('x-'),
},
],
],
}),