-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
52 lines (51 loc) · 1.68 KB
/
.eslintrc.json
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
{
/* Dependencies
npm install -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react @react-native-community/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-react-hooks
yarn add -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react @react-native-community/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-react-hooks
*/
"root": true,
"env": {
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"@react-native-community"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".tsx", ".jsx"] }
],
"@typescript-eslint/no-unused-vars": 1,
"quotes": ["error", "double"],
"prettier/prettier": 0,
"no-var": 1,
"import/prefer-default-export": 0,
"global-require": 0,
"react-hooks/rules-of-hooks": 2,
"prefer-destructuring": 2,
"react-native/no-unused-styles": 1,
"react-native/split-platform-components": 1,
"react-native/no-inline-styles": 1,
"react-native/sort-styles": 0,
"react-native/no-color-literals": 0,
"react-native/no-raw-text": 0,
"react-native/no-single-element-style-arrays": 2,
"import/no-unresolved": 0,
"import/extensions": 0,
"no-return-assign": 0,
"react/jsx-props-no-spreading": 1,
"react/function-component-definition": 0,
"no-return-await": 0
}
}