This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
forked from LibertyDSNP/example-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"globals": {
"JSX": true
},
"plugins": ["jest", "prettier", "react-hooks"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-var": "error",
"no-console": "off",
"quotes": ["error", "double"],
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// note you must disable the base rule as it can report incorrect errors
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": [
"warn",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-var-requires": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-ts-ignore": "off",
// disable the rule for all files, then re-enable for ts files
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off"
},
"overrides": [
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": ["error"]
}
}
],
"extends": [
"plugin:@typescript-eslint/recommended",
"react-app",
"eslint:recommended",
"plugin:jest/recommended",
"prettier"
]
}