Skip to content

Instantly share code, notes, and snippets.

@wouterds
Created March 24, 2020 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wouterds/2f98921a5fb6e4f840c75568084bc3f1 to your computer and use it in GitHub Desktop.
Save wouterds/2f98921a5fb6e4f840c75568084bc3f1 to your computer and use it in GitHub Desktop.
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'react',
'react-hooks',
'prettier',
],
extends: [
'@react-native-community',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/react',
'prettier/standard',
],
rules: {
'no-unused-vars': 'error',
'no-undef': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/ban-ts-ignore': 'warn',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment