-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
31 lines (31 loc) · 937 Bytes
/
.eslintrc.js
File metadata and controls
31 lines (31 loc) · 937 Bytes
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react', 'react-native', 'react-hooks', '@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react-native/all',
'plugin:@typescript-eslint/recommended',
'prettier', // turn off ESLint rules that conflict with Prettier
],
rules: {
// your rules here
'react/react-in-jsx-scope': 'off', // not needed in React 17+
'react-native/no-inline-styles': 'off', // turn off if you're okay with inline styles
'@typescript-eslint/no-unused-vars': ['warn'],
},
settings: {
react: {
version: 'detect',
},
},
};