-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.42 KB
/
.eslintrc.json
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
{
"extends": ["next/core-web-vitals", "next/typescript", "plugin:mdx/recommended", "prettier"],
"plugins": ["mdx", "prettier", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"settings": {
"mdx/code-blocks": true,
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["content/docs/**/*.mdx", "content/docs/**/*.md", "src/**/*.mdx"],
"extends": ["plugin:mdx/recommended", "prettier"],
"rules": {
"react/jsx-no-undef": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "off",
"mdx/mdast-util-mdx-jsx": "off",
"no-undef": "off",
"no-console": "off",
"@next/next/no-html-link-for-pages": "off"
},
"settings": {
"mdx/code-blocks": true
}
}
],
"ignorePatterns": ["content/docs/api-reference/**/*.mdx"],
"rules": {
"prettier/prettier": "error",
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".mdx"] }],
"mdx/mdast-util-mdx-jsx": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "off",
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-img-element": "off",
"no-console": "off"
}
}