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"
}
}
// .browserslistrc
Chrome >= 64
Firefox >= 58
For example usage, see sibling directory: eslint-plugin-ecmascript-compat-example
➡ For more information, see the main readme.