-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (30 loc) · 907 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 @typescript-eslint/no-var-requires
const { readGitignoreFiles } = require("eslint-gitignore");
const gitignore = readGitignoreFiles({ cwd: __dirname });
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/@typescript-eslint",
],
plugins: ["@typescript-eslint", "react", "prettier"],
rules: {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/prop-types": "off",
"prettier/prettier": ["error", { printWidth: 150 }],
},
globals: {
React: "writable",
},
ignorePatterns: gitignore,
overrides: [
{
files: ["**/*.tsx", "**/*.ts", "**/*.js", "**/*.json"],
},
],
};