-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
35 lines (35 loc) · 936 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
30
31
32
33
34
35
module.exports = {
root: true,
extends: [
'airbnb-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
// 'prettier/@typescript-eslint',
'prettier',
// 'prettier/react',
// 'plugin:react-native/all',
'plugin:jest/recommended'
],
plugins: ['react-hooks'],
rules: {
'react/jsx-fragments': [1, 'syntax'],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/require-default-props': 0,
'import/prefer-default-export': 0,
'react/prop-types': 0,
// 'react-native/sort-styles': 0,
// 'react-native/no-raw-text': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/no-use-before-define': 0,
'react/jsx-props-no-spreading': 1,
'prettier/prettier/bracket-spacing': 0,
'max-classes-per-file': 0
},
parserOptions: {
jsx: true,
useJSXTextNode: true,
project: ['tsconfig.json']
}
};