This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
[no-unused-vars] with React #112
Labels
Comments
From what I can tell, It doesn't look like your
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parser": "typescript-eslint-parser",
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
+ "react",
+ "typescript"
],
"overrides": {
"files": [
"**/*.ts",
"**/*.tsx"
],
"parser": "typescript-eslint-parser",
"rules": {
"no-undef": "off"
}
},
"rules": {
"no-undef": "warn",
- "no-unused-vars": "warn",
+ "typescript/no-unused-vars": "warn",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
}
} |
I've reproduced this issue. disabling "no-unused-vars" causes "typescript/no-unused-vars" to not check anything at all. |
bradzacher
added
bug/incomplete rule
requires investigation
bug that require more investigation
labels
Nov 16, 2018
bradzacher
added
unable to reproduce
bugs that are unable to reproduce in master
and removed
requires investigation
bug that require more investigation
labels
Nov 19, 2018
cannot reproduce against v0.13.0. used the following test code:
|
@bradzacher Do you want to install something like |
Closing due to no response. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Hello,
I have several false positive no-unused-vars. I saw several issues related to no-unised-var but I am not sure that it is related.
Did I missed something in my configuration ?
Best regards
package.json
Dashboard.tsx
.eslintrc.json
Linter result
The text was updated successfully, but these errors were encountered: