Commit 4cf1353
committed
`RuleTester` use `languageOptions.sourceType` in config / test case definition to determine whether to parse a file as script or module.
* In standard mode, `sourceType: "unambiguous"` is also supported.
* In ESLint-compat mode, `sourceType: "commonjs"` is also supported (treated the same as `"script"`).
This fixes ~300 conformance tests.
1 parent 973a1ba commit 4cf1353
File tree
2 files changed
+7593
-9968
lines changed- apps/oxlint
- conformance
- src-js/package
2 files changed
+7593
-9968
lines changed
0 commit comments