-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (41 loc) · 1.12 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
module.exports = {
parser: "@typescript-eslint/parser",
env: {
browser: true,
es2021: true,
node: true,
},
root: true,
extends: [
"next/core-web-vitals",
"plugin:react/recommended",
"standard-with-typescript",
"plugin:import/recommended",
"prettier",
],
overrides: [],
parserOptions: {
project: ["./tsconfig.json"],
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "react"],
rules: {
"react/react-in-jsx-scope": ["off"],
"@typescript-eslint/consistent-type-definitions": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/strict-boolean-expressions": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-non-null-asserted-optional-chain": ["off"],
"@next/next/no-img-element": ["off"],
"no-console": ["error", { allow: ["warn", "error", "info"] }],
"import/no-named-as-default": 0,
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
alphabetize: { order: "asc" },
},
],
},
};