Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
chore: Clean up config migrations

Co-authored-by: 唯然 <[email protected]>
  • Loading branch information
scagood and aladdin-add authored May 16, 2024
1 parent 4b56d12 commit 0bbe102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ function convertConfig(config) {

if (config.parserOptions) {
Object.assign(config.languageOptions, config.parserOptions)
delete config.parserOptions
}

if (typeof config.parser === 'string') {
config.languageOptions.parser = require(config.parser)
delete config.parser
}

if (config.globals instanceof Object) {
Expand Down

0 comments on commit 0bbe102

Please sign in to comment.