dev-yakuza / dev-yakuza.github.io

8 stars 9 forks source link

Use ESLint, Prettier like Pro on React Native - Let's see how to use ESLint and Prettier on React Native project, and Let's see how to use Husky and lint-staged to use ESLint and Prettier like Pro. #24

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Use ESLint, Prettier like Pro on React Native - Let's see how to use ESLint and Prettier on React Native project, and Let's see how to use Husky and lint-staged to use ESLint and Prettier like Pro.

Let's see how to use ESLint and Prettier on React Native project, and Let's see how to use Husky and lint-staged to use ESLint and Prettier like Pro.

https://dev-yakuza.posstree.com/en/react-native/eslint-prettier-husky-lint-staged/

UnnamedXAer commented 3 years ago

Your config does not check hooks for missing dependencies.

Adding these lines fixed it for me.

 "rules": {
...
    "react-hooks/rules-of-hooks": 'error',
    "react-hooks/exhaustive-deps": 'warn'
  }
dev-yakuza commented 3 years ago

@UnnamedXAer Thanks for your feedback. I will check it and modify it!