This repository was archived by the owner on Mar 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
46 lines (46 loc) · 1.31 KB
/
.eslintrc
File metadata and controls
46 lines (46 loc) · 1.31 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
44
45
46
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"globals": {
"console": "readonly"
},
"plugins": ["react-hooks", "react-refresh", "@typescript-eslint", "react"],
"rules": {
"react-refresh/only-export-components": ["warn", { "allowConstantExport": true }],
"react/jsx-filename-extension": ["warn", { "extensions": [".jsx", ".tsx"] }],
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"object-curly-newline": [
"error",
{
"ObjectExpression": { "multiline": true, "consistent": true },
"ObjectPattern": { "multiline": true, "consistent": true },
"ImportDeclaration": { "multiline": true, "consistent": true },
"ExportDeclaration": { "multiline": true, "consistent": true }
}
]
}
}
]
}