-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.json
47 lines (41 loc) · 1.79 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
46
47
{
"root": true,
"extends": ["plugin:@typescript-eslint/recommended", "prettier", "plugin:relay/strict"],
"plugins": ["@typescript-eslint", "simple-import-sort", "relay"],
"ignorePatterns": ["*.graphql.ts", "**/operations.ts"],
"rules": {
"no-implicit-coercion": "error",
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
// Typescript Specific Rules
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/object-curly-spacing": ["error", "always"],
"@typescript-eslint/prefer-return-this-type": "off",
"@typescript-eslint/no-unused-expressions": ["error", { "allowTernary": true }],
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/switch-exhaustiveness-check": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"@typescript-eslint/no-explicit-any": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
// Relay
"relay/graphql-syntax": "error",
"relay/compat-uses-vars": "warn",
"relay/graphql-naming": "error",
"relay/generated-flow-types": "off",
"relay/must-colocate-fragment-spreads": "error",
"relay/no-future-added-value": "error",
"relay/unused-fields": "warn",
// Typescript does this for us
"relay/function-required-argument": "off",
// Typescript does this for us
"relay/hook-required-argument": "off"
}
}