This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
47 lines (47 loc) · 1.66 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
{
"env": { "browser": true },
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"createDefaultProgram": true,
"ecmaFeatures": { "jsx": true },
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier", "react-hooks"],
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{ "format": ["PascalCase"], "selector": "typeLike" },
{ "format": ["PascalCase"], "selector": "enumMember" }
],
"@typescript-eslint/no-empty-function": ["warn", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "args": "after-used", "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"linebreak-style": ["error", "unix"],
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"prettier/prettier": "off",
"quotes": ["error", "double", { "allowTemplateLiterals": true, "avoidEscape": true }],
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "warn",
"react/jsx-curly-brace-presence": "warn",
"react/jsx-uses-react": "off",
"react/no-array-index-key": "warn",
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
"react/prefer-stateless-function": ["error", { "ignorePureComponents": false }],
"react/react-in-jsx-scope": "off",
"semi": ["error", "never"],
"spaced-comment": "warn"
},
"settings": {
"react": { "version": "detect" }
}
}