-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
33 lines (33 loc) · 978 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
extends: ["plugin:prettier/recommended", "prettier/react", "prettier/@typescript-eslint"],
plugins: ["prettier", "react", "react-hooks"],
rules: {
"prettier/prettier": ["error"],
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"react/prop-types": "off",
"react/destructuring-assignment": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-console": "off",
"jsx-a11y/accessible-emoji": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"],
"no-underscore-dangle": "off",
"no-nested-ternary": "off",
"no-restricted-syntax": "off",
"no-plusplus": "off",
},
};