Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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