Skip to content

Commit de35b80

Browse files
scagoodaladdin-add
andcommitted
Apply suggestions from code review
chore: Clean up config migrations Co-authored-by: 唯然 <[email protected]>
1 parent 5fa293a commit de35b80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/rule-tester.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ function convertConfig(config) {
2020

2121
if (config.parserOptions) {
2222
Object.assign(config.languageOptions, config.parserOptions)
23+
delete config.parserOptions
2324
}
2425

2526
if (typeof config.parser === 'string') {
2627
config.languageOptions.parser = require(config.parser)
28+
delete config.parser
2729
}
2830

2931
if (config.globals instanceof Object) {

0 commit comments

Comments
 (0)