-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (43 loc) · 1.07 KB
/
Copy path.eslintrc.js
File metadata and controls
43 lines (43 loc) · 1.07 KB
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
module.exports = {
root: true,
settings: {
react: {
version: `detect`,
},
},
parser: `@typescript-eslint/parser`,
plugins: [`react`, `react-hooks`, `prettier`, `@typescript-eslint`],
extends: [
`react-app`,
`react-app/jest`,
`eslint:recommended`,
`plugin:@typescript-eslint/eslint-recommended`,
`plugin:@typescript-eslint/recommended`,
`plugin:react/recommended`,
`plugin:react-hooks/recommended`,
`prettier`,
],
rules: {
'prettier/prettier': [
1,
{
arrowParens: `always`,
bracketSpacing: true,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: `all`,
printWidth: 120,
},
],
'arrow-body-style': [1, `as-needed`],
quotes: [1, `backtick`],
'react/react-in-jsx-scope': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/explicit-module-boundary-types': 1,
'@typescript-eslint/no-empty-interface': 0,
'import/order': 1,
'no-console': [1, { allow: [`error`] }],
'object-shorthand': 1,
},
}