-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc
63 lines (63 loc) · 1.46 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "react"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"es6": true
},
"settings": {
"react": { "version": "detect" }
},
"rules": {
"linebreak-style": ["error", "unix"],
"lines-around-comment": 0,
"no-constant-binary-expression": "error",
"no-confusing-arrow": 0,
"no-console": "error",
"no-unused-vars": 0,
"require-await": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/prop-types": 0,
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^__",
"varsIgnorePattern": "^__"
}
]
},
"ignorePatterns": [
"*.log",
"*.md",
"*.mdx",
"node_modules/",
"dist/",
"coverage/",
".nyc_output/",
".pnpm-store/",
"pnpm-lock.yaml",
"storybook-static/",
".next/",
"docs/storybook/src/"
]
}