-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.json
More file actions
25 lines (25 loc) · 698 Bytes
/
.eslintrc.json
File metadata and controls
25 lines (25 loc) · 698 Bytes
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
{
"env": { "browser": true, "es2020": true },
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": "latest", "sourceType": "module" },
"plugins": ["@typescript-eslint", "react-refresh"],
"root": true,
"ignorePatterns": ["node_modules", "dist", "package"],
"rules": {
"react-refresh/only-export-components": "warn",
"no-unused-vars": ["off", { "vars": "local" }],
"@typescript-eslint/no-unused-vars": "off",
"prefer-const": "warn"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"settings": {
"react": {
"version": "detect"
}
}
}