amilajack / amilajack/eslint-plugin-compat
Config eslintrc file to compatible with IE9
- Lingua principale
- TypeScript
- Stelle
- 3.2k
- Fork
- 115
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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~
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.