-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.cjs
39 lines (38 loc) · 1.07 KB
/
eslint.config.cjs
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
const globals = require("globals");
const js = require("@eslint/js");
const jsdocPlugin = require("eslint-plugin-jsdoc");
const prettierConfig = require("eslint-config-prettier");
const prettierPlugin = require("eslint-plugin-prettier");
const mochaPlugin = require("eslint-plugin-mocha");
module.exports = [
{
ignores: ["docs/.docusaurus/**/*", "docs/build/**/*"],
},
js.configs.recommended,
mochaPlugin.configs.flat.recommended,
prettierConfig,
jsdocPlugin.configs["flat/recommended-error"],
{
plugins: {
mocha: mochaPlugin,
prettier: prettierPlugin,
jsdoc: jsdocPlugin,
},
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
mocha: true,
...globals.node,
},
},
rules: {
"prettier/prettier": ["error"],
"mocha/no-skipped-tests": ["error"],
"mocha/no-exclusive-tests": ["error"],
"mocha/max-top-level-suites": ["off"],
"jsdoc/require-jsdoc": ["off"],
"jsdoc/tag-lines": ["off"], // let prettier-plugin-jsdoc take care of this
},
},
];