forked from frontend-winter/react-admin-vite-antd5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.31 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"extends": [
],
"plugins": [
"@react-native-community"
],
"rules": {
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "error",
"import/no-named-as-default-member": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-sort-props": [
"warn",
{
"callbacksLast": true,
"shorthandFirst": true,
"ignoreCase": true,
"reservedFirst": true,
"noSortAlphabetically": true
}
]
},
"env": {
"es6": true, // enable ES2015 features.
"browser": true, // enable use of global browser variables like `windows`.
"node": true // enable use of global node variables like `process`.
},
"parserOptions": {
"project": "./tsconfig.eslint.json", // Specify where to find the root tsconfig file of your project.
"ecmaVersion": 2021, // ECMAScript version supported in the project.
"sourceType": "module", // set to `module` because we ue ECMAScript modules.
"ecmaFeatures": {
"jsx": true // enable jsx for React.
}
},
"settings": {
"react": {
"version": "detect" // auto-detect React version from package.json.
},
}
}