-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
25 lines (25 loc) · 951 Bytes
/
.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
{
"env": { "browser": true, "es2021": true, "node": true, "react-native/react-native": true },
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-native", "react-hooks", "@typescript-eslint"],
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{ "js": "never", "jsx": "never", "ts": "never", "tsx": "never" }
],
"react/jsx-filename-extension": ["error", { "extensions": [".ts", ".tsx"] }],
"react/require-default-props": [
"error",
{ "forbidDefaultForRequired": false, "ignoreFunctionalComponents": true }
],
"react/style-prop-object": ["error", { "allow": ["StatusBar"] }]
},
"settings": { "import/resolver": { "node": { "extensions": [".js", ".jsx", ".ts", ".tsx"] } } }
}