-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.52 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
53
{
"root": true,
"env": {
"browser": true,
"react-native/react-native": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": ["airbnb", "airbnb/hooks", "plugin:prettier/recommended", "plugin:react-hooks/recommended"],
"plugins": ["react", "react-native", "prettier", "simple-import-sort", "react-hooks"],
"rules": {
"prettier/prettier": "warn",
"consistent-return": "off",
"react/jsx-filename-extension": "off",
"react/react-in-jsx-scope": "off",
"no-use-before-define": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/jsx-props-no-spreading": "off",
"no-console": "off",
"no-else-return": "off",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"react/no-unstable-nested-components": ["error", { "allowAsProps": true }],
"no-nested-ternary": "off",
"no-plusplus": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"import/no-relative-packages": "off",
"no-underscore-dangle": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"no-param-reassign": "off",
"no-multi-assign": "off",
"no-continue": "off",
"array-callback-return": "off",
"class-methods-use-this": "off"
},
"globals": {
"chrome": true
}
}