forked from alexkatz/react-tiny-popover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.17 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["react-hooks", "prettier"],
"extends": ["react-app", "airbnb-typescript", "plugin:prettier/recommended"],
"rules": {
"object-curly-spacing": ["warn", "always"],
"@typescript-eslint/indent": 0,
"@typescript-eslint/no-shadow": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"no-debugger": 0,
"no-console": 0,
"no-shadow": 0,
"no-undefined": 0,
"no-param-reassign": 0,
"no-return-assign": 0,
"class-methods-use-this": 0,
"no-constant-condition": ["error"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"import/prefer-default-export": 0,
"import/no-default-export": 1,
"import/extensions": 0,
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"react/jsx-curly-newline": 0,
"react/jsx-props-no-spreading": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/static-property-placement": 0,
"react/react-in-jsx-scope": 0
}
}