forked from mydoge-com/mydogemask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.19 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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"react-native/react-native": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": ["airbnb", "airbnb/hooks", "plugin:prettier/recommended"],
"plugins": ["react", "react-native", "prettier", "simple-import-sort"],
"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"
},
"globals": {
"chrome": true
}
}