This repository was 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. |
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: