Switch to the new ESLint config (#15869)

This commit is contained in:
fisker Cheung authored and GitHub committed 2024-01-08 14:48:45 +08:00
1 parent 6432f9b931
commit d3dca92292
8 files changed
+628 -587

No files matched your search

@@ -164,9 +164,7 @@ module.exports = {
fixable: "code",
},
create(context) {
const { ignoreSingleType, onlyTopLevelFunctions } = {
ignoreSingleType: false,
onlyTopLevelFunctions: false,
const { ignoreSingleType = false, onlyTopLevelFunctions = false } = {
...context.options[0],
};
const sourceCode = context.getSourceCode();