Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set 'no-unused-vars' prop value 'error' but doesn't work #291

Open
Span134 opened this issue Aug 11, 2022 · 0 comments
Open

set 'no-unused-vars' prop value 'error' but doesn't work #291

Span134 opened this issue Aug 11, 2022 · 0 comments

Comments

@Span134
Copy link

Span134 commented Aug 11, 2022

Expected results

show error 'someValue is assigned but never used' and project failed.

What happened?
only warn tip and project still run sucessed.

Steps to reproduce

  1. npx react-native init AwesomeTSProject --template react-native-template-typescript
  2. edit App.js add 'const someValue = 1'
  3. edit eslintrc.js 'rules: {
    "no-unused-vars": "error",
    "@typescript-eslint/no-unused-vars": ["error"]
    }'
  4. yarn android
  5. project still run successed! It is not my expected results ! I want it show error 'someValue is assigned but never used' and project run failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant