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

chore: update eslint + prettier rules #254

Merged
merged 18 commits into from
Oct 10, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update eslint rules
add rule to avoid warnings with:

  - @typescript-eslint/explicit-function-return-type
  - @typescript-eslint/no-explicit-any
  - react/prop-types
  • Loading branch information
ftonato committed Oct 8, 2019
commit d7007e83834377b9897baddbc7a42c43a85d4a15
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ module.exports = {
],
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
// disable the rule for all files
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': ['error', { ignore: ['navigation'] }]
ftonato marked this conversation as resolved.
Show resolved Hide resolved
},
settings: {
react: {
version: 'detect'
Expand Down