-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc-ts.config.json
113 lines (113 loc) · 3.4 KB
/
.eslintrc-ts.config.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-formatting/recommended",
"plugin:@next/next/recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react-prefer-function-component/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import",
"jest",
"jest-formatting",
"react-prefer-function-component",
"react-hooks",
"prettier"
],
"rules": {
"import/extensions": "off",
"arrow-body-style": [
"warn",
"always"
],
"no-param-reassign": "off",
"class-methods-use-this": "off",
"no-underscore-dangle": [
"error",
{
"allow": [
"_v"
]
}
],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "warn",
"curly": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"import/order": "warn",
"@typescript-eslint/lines-between-class-members": "warn",
"array-element-newline": "off",
"import/prefer-default-export": "off",
"import/newline-after-import":"warn",
// #region Specific rules for this project
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useRecoilCallback|useRecoilTransaction_UNSTABLE)"
}
],
"react/prop-types": "off",
"react/no-danger": "off",
"react/require-default-props": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": [
"arrow-function"
],
"unnamedComponents": [
"arrow-function"
]
}
],
"prettier/prettier": [
"warn",
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"endOfLine": "lf",
"bracketSameLine": true,
"semi": true,
"jsxSingleQuote": false,
"singleAttributePerLine": true,
"plugins": [
"./node_modules/prettier-plugin-sort-json",
"./node_modules/prettier-plugin-packagejson",
"./node_modules/prettier-plugin-multiline-arrays",
"./node_modules/prettier-plugin-organize-imports",
"./node_modules/prettier-plugin-jsdoc"
]
}
],
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".tsx"
]
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"jsx-quotes": [
"warn",
"prefer-double"
]
// #endregion
}
}