Skip to content

Commit 4cf1353

Browse files
committed
feat(linter/plugins): RuleTester support languageOptions.sourceType (#16660)
`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

2 files changed

+7593
-9968
lines changed

0 commit comments

Comments
 (0)