@lukeapage/eslint-plugin-ecmascript-compat
v3.1.0
Published
ESLint plugin for checking JavaScript code compatibility with target browsers and Node.js versions
Downloads
16
Maintainers
Readme
eslint-plugin-ecmascript-compat
ESLint plugin for checking JavaScript code compatibility with target browsers and Node.js versions
npm install --save-dev eslint-plugin-ecmascript-compat
// .eslintrc.json
{
"extends": ["plugin:ecmascript-compat/recommended"]
}
// Alternatively
{
"plugins": ["ecmascript-compat"],
"rules": {
"ecmascript-compat/compat": [
"error",
{
// Optionally, specify provided polyfills
"polyfills": [
"Array.prototype.includes"
]
}
]
}
}
// .browserslistrc
Chrome >= 64
Firefox >= 58