react-native-template-typescript
react-native-template-typescript copied to clipboard
set 'no-unused-vars' prop value 'error' but doesn't work
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
- npx react-native init AwesomeTSProject --template react-native-template-typescript
- edit App.js add 'const someValue = 1'
- edit eslintrc.js 'rules: { "no-unused-vars": "error", "@typescript-eslint/no-unused-vars": ["error"] }'
- yarn android
- 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.