-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
46 lines (46 loc) · 1.33 KB
/
.eslintrc
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
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": ["tsconfig.json"] },
"plugins": ["react", "@typescript-eslint", "import"],
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"react/react-in-jsx-scope": "off",
"react/require-default-props": [1, { "ignoreFunctionalComponents": true }],
"brace-style": ["error", "1tbs"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
]
},
"settings": {
"import/resolver": {
"typescript": {
"project": ["tsconfig.json"]
}
}
},
"ignorePatterns": ["src/_generated/*.ts", "jest.config.js"]
}