Lint dist files with eslint-plugin-compat (#11245)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-08-16 15:08:19 +08:00
1 parent 43124add3e
commit 051e20591a
6 files changed
+79 -11

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
"use strict";
const targets = require("../package.json").browserslist;
module.exports = {
root: true,
env: {
browser: true,
},
parserOptions: {
ecmaVersion: "latest",
},
settings: {
targets,
lintAllEsApis: true,
polyfills: [
// These are not really polyfilled, but seems safe to use in target browsers
"BigInt",
"Symbol.asyncIterator",
],
},
plugins: ["compat"],
rules: {
"compat/compat": "error",
},
};