-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (38 loc) · 1.48 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
//* [Linting ESLint] https://eslint.org/
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended" /* https://github.com/typescript-eslint/typescript-eslint#readme */,
"prettier",
],
ignorePatterns: [
"next.config.js",
".eslintrc.js",
".next",
"dist/",
"node_modules/",
"jest.config.js",
"jest.setup.js",
"cypress/",
"*.d.ts",
],
rules: {
"no-console": "warn",
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/interface-name-prefix":
"off" /* https://github.com/bradzacher/eslint-plugin-typescript/blob/master/docs/rules/interface-name-prefix.md */,
"@typescript-eslint/explicit-function-return-type":
"off" /* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md */,
"@typescript-eslint/explicit-module-boundary-types":
"off" /* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md */,
"@typescript-eslint/no-explicit-any": 1 /* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md */,
"@next/next/no-img-element": "off",
},
}