-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
61 lines (54 loc) · 1.68 KB
/
Copy pathindex.js
File metadata and controls
61 lines (54 loc) · 1.68 KB
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
54
55
56
57
58
59
60
61
module.exports = {
extends: [
"eslint:recommended",
"@react-native-community/eslint-config",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-native-a11y/all",
"prettier",
"prettier/react"
],
plugins: ["import", "import-order-alphabetical", "react-native-a11y"],
rules: {
// eslint-plugin-import
"import/first": 1,
"import/newline-after-import": 1,
"import/no-cycle": 2,
"import/no-duplicates": 1,
"import/no-unresolved": 2,
// eslint-plugin-import-order-alphabetical
"import-order-alphabetical/order": 1,
// eslint-plugin-prettier
"prettier/prettier": 0,
// eslint-plugin-react
"react/prop-types": 0,
// eslint-plugin-react-native
"react-native/no-color-literals": 1,
"react-native/no-inline-styles": 1,
"react-native/no-single-element-style-arrays": 1,
"react-native/no-unused-styles": 1
},
overrides: [
{
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint/eslint-plugin"],
rules: {
"@typescript-eslint/explicit-function-return-type": [
1,
{ allowExpressions: true, allowTypedFunctionExpressions: true }
],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-interface": 1,
"@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-use-before-define": 0,
"no-unused-vars": 0
}
}
]
};