This repository has been archived by the owner on Jan 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
62 lines (62 loc) · 1.68 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
61
62
{
"env": {
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "import", "react-hooks"],
"extends": [
"airbnb",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/indent": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-unused-vars": [
"warning",
{
"argsIgnorePattern": "^_",
"caughtErrors": "none"
}
],
"class-methods-use-this": "off",
"no-else-return": "off",
"indent": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"func-names": "off",
"no-return-await": "off",
"prettier/prettier": "error",
"require-jsdoc": "off",
"valid-jsdoc": "off",
"no-param-reassign": "off",
"global-require": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/jsx-wrap-multilines": [
"warn",
{
"prop": "ignore"
}
],
"react/jsx-indent": "off",
"react/jsx-one-expression-per-line": "off",
"react/prop-types": "off",
"react/prefer-stateless-function": "off",
"react/jsx-wrap-multilines": ["warn", { "prop": "ignore" }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}