-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (39 loc) · 879 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
36
37
38
39
40
const prettierOptions = require('./.prettierrc.js');
module.exports = {
root: true,
env: {
es6: true,
jest: true,
},
extends: ['@react-native-community', 'prettier', 'prettier/react'],
plugins: ['prettier', 'import', 'jsx-a11y'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'prettier/prettier': [ 'error', prettierOptions ],
'react/jsx-closing-bracket-location': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.tsx'],
},
],
'import/prefer-default-export': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};