-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
28 lines (28 loc) · 923 Bytes
/
.eslintrc.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
{
"parser": "@typescript-eslint/parser",
// see https://github.com/typescript-eslint/typescript-eslint/tree/v4.22.0/packages/parser#parseroptionsproject
"parserOptions": { "project": "./tsconfig.json" },
"env": { "browser": true, "es2021": true, "worker": true }, // for allowJs
"settings": { "react": { "version": "detect" } },
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": { "@typescript-eslint/explicit-module-boundary-types": "off" }
}
],
// for vscode-eslint
"ignorePatterns": ["dist", "*.config.js"]
}