-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.56 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
env: {
jest: true,
},
extends: [
'@react-native-community',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:react/jsx-runtime',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
plugins: ['@typescript-eslint', 'react', 'import', 'prettier', 'jsx-a11y'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
'import/no-extraneous-dependencies': 'off',
'react/no-unused-prop-types': [2, { ignore: ['testID'] }],
'react/require-default-props': 'off',
'react/style-prop-object': 'off',
'react/function-component-definition': 'off',
'global-require': 'off',
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'react/jsx-filename-extension': [
'warn',
{
extensions: ['.ts', '.tsx'],
},
],
'prettier/prettier': 'error',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'import/extensions': ['error', 'never'],
'react/prop-types': 'off',
'react/no-unused-prop-types': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/no-namespace': 'off',
'react/jsx-props-no-spreading': 'off',
'react/destructuring-assignment': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
};