-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.js
36 lines (35 loc) · 1.34 KB
/
next.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
import eslintPluginNext from "@next/eslint-plugin-next";
import tseslint from "typescript-eslint";
import {files} from "../files.js";
export default tseslint.config(
{
files,
plugins: {
"@next/next": eslintPluginNext,
},
rules: {
"@next/next/google-font-display": "error",
"@next/next/google-font-preconnect": "error",
"@next/next/inline-script-id": "error",
"@next/next/next-script-for-ga": "error",
"@next/next/no-assign-module-variable": "error",
"@next/next/no-async-client-component": "error",
"@next/next/no-before-interactive-script-outside-document": "error",
"@next/next/no-css-tags": "error",
"@next/next/no-document-import-in-page": "error",
"@next/next/no-duplicate-head": "error",
"@next/next/no-head-element": "error",
"@next/next/no-head-import-in-document": "error",
"@next/next/no-img-element": "error",
"@next/next/no-page-custom-font": "error",
"@next/next/no-script-component-in-head": "error",
"@next/next/no-styled-jsx-in-document": "error",
"@next/next/no-sync-scripts": "error",
"@next/next/no-title-in-document-head": "error",
"@next/next/no-typos": "error",
"@next/next/no-unwanted-polyfillio": "error",
// Reason: I don't use Pages Router and this rule outputs warnings when it can't find the pages directory
"@next/next/no-html-link-for-pages": "off",
},
}
);