Skip to content

Commit 0bbe102

Browse files
scagoodaladdin-add
andauthored
Apply suggestions from code review
chore: Clean up config migrations Co-authored-by: 唯然 <[email protected]>
1 parent 4b56d12 commit 0bbe102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/rule-tester.js

+2
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)