Lint dist files with eslint-plugin-compat (#11245)
This commit is contained in:
1 parent
43124add3e
commit
051e20591a
6 files changed
+79
-11
No files matched your search
@@ -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",
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user