forked from musehq/ghostdevelopment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.24 KB
/
.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
35
36
37
38
39
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
rules: {
// sometimes required for workarounds, perhaps change both of these to warn in the future
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
// type inference is generally good enough
"@typescript-eslint/explicit-function-return-type": "off",
// issue with eslint-plugin-react https://github.com/yannickcr/eslint-plugin-react/issues/2353
"react/prop-types": "off",
// display names seem to work, we don't need this validation for now
"react/display-name": "off",
// Next.js adds React to scope by default, though we'll probably import it in every file anyway
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
settings: {
react: {
version: "detect",
},
},
overrides: [
{
files: [".eslintrc.js", "next.config.js"],
env: {
node: true,
},
},
],
};