generated from lucasgdb/relay-graphql-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
93 lines (90 loc) · 2.4 KB
/
.eslintrc
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"plugins": ["react", "prettier", "import"],
"extends": [
"prettier",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": ["error", "always"],
"curly": ["error", "all"],
"camelcase": "off",
"no-useless-return": "error",
"import/no-named-as-default-member": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["off", { "extensions": [".js", ".jsx"] }],
"react/prop-types": "off",
"react/require-default-props": "off",
"react/display-name": "off",
"arrow-body-style": "off",
"require-await": "error",
"no-console": ["warn", { "allow": ["warn", "info", "error"] }],
"import/prefer-default-export": "off",
"import/no-import-module-exports": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"": "never"
}
]
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off"
}
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["packages/*/tsconfig.json", "apps/*/tsconfig.json", "*/tsconfig.base.json"]
},
"babel-module": {},
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["packages/*/src", "apps/*/src"]
}
},
"react": {
"version": "detect"
}
}
}