Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chore: use espree.latestEcmaVersion in fuzzer (#13484)
  • Loading branch information
mdjermanovic committed Jul 13, 2020
1 parent 61097fe commit e14a645
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/code-sample-minimizer.js
Expand Up @@ -52,7 +52,7 @@ function reduceBadExampleSize({
comment: true,
eslintVisitorKeys: true,
eslintScopeManager: true,
ecmaVersion: 2018,
ecmaVersion: espree.latestEcmaVersion,
sourceType: "script"
})
},
Expand Down
5 changes: 4 additions & 1 deletion tools/eslint-fuzzer.js
Expand Up @@ -129,7 +129,10 @@ function fuzz(options) {
const text = codeGenerator({ sourceType });
const config = {
rules: lodash.mapValues(ruleConfigs, lodash.sample),
parserOptions: { sourceType, ecmaVersion: 2020 }
parserOptions: {
sourceType,
ecmaVersion: espree.latestEcmaVersion
}
};

let autofixResult;
Expand Down

0 comments on commit e14a645

Please sign in to comment.