-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.eslintrc.js
More file actions
39 lines (39 loc) · 962 Bytes
/
.eslintrc.js
File metadata and controls
39 lines (39 loc) · 962 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
32
33
34
35
36
37
38
39
/* eslint-disable */
module.exports = {
env: {
browser: true,
es2021: true,
node: true, // Add this line to recognize Node.js globals
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb',
'plugin:react-native/all',
'plugin:prettier/recommended',
'prettier',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', 'react-native', 'prettier'],
settings: {
react: {
version: 'detect', // Specify the exact version of React
},
},
rules: {
'prettier/prettier': 'error',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react-native/no-unused-styles': 2,
'react-native/split-platform-components': 2,
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 2,
'react-native/no-raw-text': 2,
'react/no-unescaped-entities': 0,
},
};