Skip to content

Commit

Permalink
Exclude eslint v6.2.0
Browse files Browse the repository at this point in the history
if update it to v6.2.0, following code doesn't pass ESLint

```js
const list = ['a', 'b', 'c'];
for (const i in list) { // <- no-unused-vars "error 'i' is defined but never used"
  console.log(i);       // <- WE USE IT IN THIS LINE!!!!!!
}
```

See:
  https://twitter.com/fetus_hina/status/1163416507138768896
  https://twitter.com/fetus_hina/status/1163417546676039681
  https://twitter.com/fetus_hina/status/1163421886543323136
  #550
  eslint/eslint#12117
  babel/babel-eslint#791
  • Loading branch information
fetus-hina committed Aug 19, 2019
1 parent 80a2dab commit dcb1062
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 56 deletions.
166 changes: 111 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"babel-eslint": "^10.0.2",
"bowser": "^2.5.3",
"cssnano": "^4.1.10",
"eslint": "^6.1.0",
"eslint": "<6.2.0||~6.2.1",
"less": "^3.10.1",
"node-zopfli": "^2.0.3",
"optipng-bin": "^6.0.0",
Expand Down

0 comments on commit dcb1062

Please sign in to comment.