forked from MaibornWolff/retro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (55 loc) · 1.72 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const { join } = require("path");
module.exports = {
env: {
browser: true,
es2021: true,
},
settings: {
react: {
version: "detect",
},
},
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
],
overrides: [{ files: ["**/*.ts", "**/*.tsx"] }],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "prettier", "@typescript-eslint", "unused-imports"],
rules: {
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{ vars: "all", varsIgnorePattern: "^_", args: "after-used", argsIgnorePattern: "^_" },
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react/display-name": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/triple-slash-reference": "off",
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"warn",
{
blankLine: "always",
prev: "*",
next: ["interface", "type", "function", "export"],
},
],
"@next/next/no-html-link-for-pages": ["error", join(__dirname, "packages/frontend/src/pages")],
"no-console": "warn",
"prettier/prettier": "warn",
},
};