-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
34 lines (34 loc) · 992 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
34
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "prettier"],
ignorePatterns: ["node_modules/**/*", "output/**/*"],
rules: {
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
"no-undef": "off",
"no-unused-vars": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
ignoreRestSiblings: true,
args: "after-used",
varsIgnorePattern: "^_.",
},
],
"react/display-name": "off",
"react/prop-types": "off",
},
};