This repository was archived by the owner on Apr 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
55 lines (55 loc) · 1.72 KB
/
Copy path.eslintrc.json
File metadata and controls
55 lines (55 loc) · 1.72 KB
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
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"webextensions": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/explicit-function-return-type": 2,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-floating-promises": 0,
"jsx-quotes": ["error", "prefer-single"],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/react-in-jsx-scope": 0,
"react-hooks/rules-of-hooks": 0,
"react-hooks/exhaustive-deps": 0,
"react/display-name": 0,
"no-undef": 1,
"no-console": 1,
"newline-before-return": 2,
"indent": 0,
"linebreak-style": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"],
"simple-import-sort/imports": "error"
}
}