-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnext.ts
38 lines (35 loc) · 1.19 KB
/
next.ts
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
import { fixupPluginRules } from "@eslint/compat";
// @ts-expect-error eslint-plugin-next is not typed
import eslintPluginNext from "@next/eslint-plugin-next";
import type { TSESLint } from "@typescript-eslint/utils";
const rules: TSESLint.FlatConfig.Rules = {
"@next/next/google-font-display": 1,
"@next/next/google-font-preconnect": 1,
"@next/next/inline-script-id": 2,
"@next/next/next-script-for-ga": 1,
"@next/next/no-assign-module-variable": 2,
"@next/next/no-before-interactive-script-outside-document": 2,
"@next/next/no-css-tags": 1,
"@next/next/no-document-import-in-page": 2,
"@next/next/no-duplicate-head": 2,
"@next/next/no-head-import-in-document": 2,
"@next/next/no-html-link-for-pages": 0,
"@next/next/no-img-element": 1,
"@next/next/no-page-custom-font": 1,
"@next/next/no-script-component-in-head": 2,
"@next/next/no-styled-jsx-in-document": 2,
"@next/next/no-sync-scripts": 2,
"@next/next/no-title-in-document-head": 2,
"@next/next/no-typos": 2,
"@next/next/no-unwanted-polyfillio": 2,
"import-x/extensions": 0,
};
const config: TSESLint.FlatConfig.ConfigArray = [
{
plugins: {
"@next/next": fixupPluginRules(eslintPluginNext),
},
rules,
},
];
export default config;