-
Notifications
You must be signed in to change notification settings - Fork 0
/
TEST-eslint.config.mjs
47 lines (45 loc) · 1.14 KB
/
TEST-eslint.config.mjs
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
import * as mdx from "eslint-plugin-mdx";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import nextESlint from "eslint-config-next";
export default tseslint.config(
nextESlint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [],
...tseslint.configs.disableTypeChecked,
},
{
plugins: {
// jsdoc: jsdoc,
},
},
{
...mdx.flat,
// optional, if you want to lint code blocks at the same
processor: mdx.createRemarkProcessor({
lintCodeBlocks: true,
// optional, if you want to disable language mapper, set it to `false`
// if you want to override the default language mapper inside, you can provide your own
languageMapper: {},
}),
},
{
...mdx.flatCodeBlocks,
rules: {
...mdx.flatCodeBlocks.rules,
// if you want to override some rules for code blocks
"no-var": "error",
"prefer-const": "error",
},
},
{ ...eslintConfigPrettier },
);