amilajack / amilajack/eslint-plugin-compat
Config eslintrc file to compatible with IE9
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
I want to use this plugin to check if my code is compatible with IE9. But I can't see any errors even if I put some arrow function in the code, see below example
Define `"browserslist": ["ie 9"]` in file `package.json`, and run command `npx eslint index.js` with below files
Config file `.eslintrc.json`
```
{
"env": {
"browser": true,
"es6": true
},
"plugins": ["compat"],
"rules": {
"compat/compat": "error"
}
}
```
Code file `index.js`:
```
var bar = () => {
return "hello arrow function";
};
```
I can't see any error or warning from console, did I config something wrong? Please give me some advise.
Thanks a lot~
Contributor guide
Assessment
This issue has not been assessed yet.