Switch to the new ESLint config (#15869)
This commit is contained in:
1 parent
6432f9b931
commit
d3dca92292
8 files changed
+628
-587
No files matched your search
+1
-3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user