mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 12:48:38 +00:00
# 1. Support join('\n')
I'm trying to run `just new-rule no-unexpected-multiline`, It found
rulegen not support test code pieced together using `array.json("\n")`,
like
```js
{
code: [
"const x = aaaa<",
" test",
">/*",
"test",
"*/`foo`"
].join("\n")
}
```
I found this kind of code widely in the eslint codebase, so it will be
great if we can support this.

# 2. remove extra `,`
And I found when meet unsupported code, rulegen will generate an extra
`,`, so I added a filter at
|
||
|---|---|---|
| .. | ||
| benchmark | ||
| common | ||
| coverage | ||
| minsize | ||
| rulegen | ||
| libs.txt | ||