-
Notifications
You must be signed in to change notification settings - Fork 159
/
eslint.config.mjs
43 lines (30 loc) · 1.29 KB
/
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
// This is the configuration file for ESLint, the TypeScript linter:
// https://eslint.org/docs/latest/use/configure/
// @ts-check
import { completeConfigBase } from "eslint-config-complete"; // eslint-disable-line import-x/no-extraneous-dependencies
import tseslint from "typescript-eslint"; // eslint-disable-line import-x/no-extraneous-dependencies
export default tseslint.config(
// https://github.com/complete-ts/complete/blob/main/packages/eslint-config-complete/src/base.js
...completeConfigBase,
// @template-customization-start
// https://github.com/facebook/docusaurus/blob/main/packages/eslint-plugin/src/index.ts
// Disabled due to: https://github.com/facebook/docusaurus/issues/10490
/// ...compat.extends("plugin:@docusaurus/all"),
// @template-customization-end
{
rules: {
// Insert changed or disabled rules here, if necessary.
// @template-customization-start
// Docusaurus is stuck on ESM. Remove this when "package.json" can be converted:
// https://github.com/facebook/docusaurus/issues/6520
"n/file-extension-in-import": "off",
// @template-customization-end
},
},
// @template-customization-start
// Do not lint the compiled output.
{
ignores: ["**/.docusaurus/", "**/build/"],
},
// @template-customization-end
);