-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy patheslintrc.js
31 lines (31 loc) · 854 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
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
// ESLint will now know that `document`/`window`/etc exist
// https://eslint.org/docs/user-guide/configuring#specifying-environments
env: { browser: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
// Don't complain about things that Prettier will fix
"prettier/@typescript-eslint",
// React
"plugin:react/recommended",
// Enforce the Rules of React Hooks
"plugin:react-hooks/recommended",
],
rules: {
// Typescript handles the types
"react/prop-types": "off",
"no-console": "error",
"array-callback-return": "error",
"no-sequences": "error",
},
settings: {
react: {
version: "detect",
}
}
};