forked from eslint-community/eslint-plugin-n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
43 lines (41 loc) · 1.09 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
38
39
40
41
42
43
/**
* @author 唯然<[email protected]>
*/
"use strict"
const js = require("@eslint/js")
const globals = require("globals")
const nodeRecommended = require("eslint-plugin-n/configs/recommended-script")
const eslintPluginConfig = require("eslint-plugin-eslint-plugin/configs/recommended")
const prettierConfig = require("eslint-config-prettier")
module.exports = [
{
languageOptions: { globals: globals.mocha },
linterOptions: { reportUnusedDisableDirectives: true },
},
{
ignores: [
".nyc_output/",
"coverage/",
"docs/",
"lib/converted-esm/",
"tests/fixtures/",
],
},
js.configs.recommended,
nodeRecommended,
eslintPluginConfig,
prettierConfig,
{
rules: {
strict: ["error", "global"],
"eslint-plugin/require-meta-docs-description": "error",
},
},
{
// these messageIds were used outside
files: ["lib/rules/prefer-global/*.js"],
rules: {
"eslint-plugin/no-unused-message-ids": 0,
},
},
]