-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.eslintrc.json
More file actions
29 lines (29 loc) · 853 Bytes
/
.eslintrc.json
File metadata and controls
29 lines (29 loc) · 853 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
26
27
28
29
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["react", "@typescript-eslint", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"jsx": true
},
"rules": {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off", // Required for React 17+,
"@typescript-eslint/explicit-module-boundary-types": "off", // Adjust if needed
"@typescript-eslint/no-explicit-any": "warn", // Prefer avoiding `any`
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-unused-vars": "off" // TypeScript handles this
},
"settings": {
"react": {
"version": "detect"
}
}
}