-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
37 lines (36 loc) · 1.02 KB
/
eslint.config.js
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
"use strict";
const config = require("eslint-config-eslint/cjs");
const formatting = require("eslint-config-eslint/formatting");
const jest = require("eslint-plugin-jest");
const globals = require("globals");
module.exports = [
...config,
formatting,
{
plugins: { jest },
rules: {
...jest.configs.recommended.rules,
},
languageOptions: {
globals: {
...globals.jest,
},
},
},
{
ignores: ["coverage/"],
},
{
rules: {
"jsdoc/require-param-description": ["off"],
"jsdoc/require-returns-description": ["off"],
"jsdoc/require-description": ["off"],
"comma-dangle": ["error", "always-multiline"],
"no-console": ["off"],
"n/no-process-exit": ["off"],
"n/no-unpublished-require": ["error", {
allowModules: ["eslint-config-eslint", "globals", "eslint-plugin-jest", "wait-for-expect"],
}],
},
},
];