-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.21 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "next/core-web-vitals", "prettier"],
rules: {
"no-console": [
"warn",
{
allow: ["info", "warn", "error"],
},
],
"no-unused-vars": "off",
"consistent-return": "off",
"import/extensions": ["error", "never"],
"import/no-unresolved": "off", // Let the typescript compiler handle module resolution
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
],
"alphabetize": { "caseInsensitive": false },
},
],
"import/prefer-default-export": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/function-component-definition": "off",
"react/jsx-filename-extension": [
"error",
{
extensions: [".jsx", ".tsx"],
ignoreFilesWithoutCode: true,
},
],
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "error",
},
};