-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
29 lines (29 loc) · 978 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
root: true,
extends: [
'@react-native',
'plugin:react/recommended',
'standard-with-typescript',
'standard-react',
'standard-jsx',
'plugin:prettier/recommended'
],
plugins: ['react', 'react-hooks', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
ignorePatterns: ['.eslintrc.js'],
rules: {
// React Hooks rules.
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
// Make TypeScript ESLint less strict.
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-var-requires': 'off',
// Bitwise operations are necessary in this project.
'no-bitwise': 'off'
}
}