-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1015 Bytes
/
.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
module.exports = {
root: true,
extends: ["@react-native", "prettier"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier", "jest"],
env: {
"jest/globals": true, // <-- Add this
},
rules: {
"@typescript-eslint/no-shadow": ["error"],
"no-shadow": "off",
"no-undef": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
quotes: [1, "double", {avoidEscape: true}],
semi: 0,
"object-curly-spacing": "off",
"max-lines": [
"error",
{
max: 400,
skipBlankLines: true,
skipComments: true,
},
],
"prettier/prettier": [
"error",
{
printWidth: 200,
singleQuote: false,
arrowParens: "avoid",
},
],
"react-hooks/exhaustive-deps": "off",
},
overrides: [
{
files: ["*.ts", "*.tsx"],
},
],
}