-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathconfig.js
63 lines (56 loc) · 1.76 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"use strict"
const { withCategories } = require("../../scripts/lib/rules")
require("../../scripts/update-docs-headers")
require("../../scripts/update-docs-index")
module.exports = {
base: "/eslint-plugin-eslint-comments/",
title: "eslint-plugin-eslint-comments",
description: "Additional ESLint rules for ESLint directive comments.",
evergreen: true,
plugins: {
"@vuepress/pwa": { updatePopup: true },
},
themeConfig: {
repo: "mysticatea/eslint-plugin-eslint-comments",
docsRepo: "mysticatea/eslint-plugin-eslint-comments",
docsDir: "docs",
docsBranch: "master",
editLinks: true,
search: false,
nav: [
{
text: "Changelog",
link:
"https://github.com/mysticatea/eslint-plugin-eslint-comments/releases",
},
],
sidebarDepth: 0,
sidebar: {
"/": [
"/",
"/rules/",
...withCategories.map(({ category, rules }) => ({
title: `Rules in ${category}`,
collapsable: false,
children: rules.map(rule => `/rules/${rule.name}`),
})),
],
},
},
configureWebpack: {
module: {
rules: [
{
test: /internal[\\/]get-linters\.js$/u,
loader: "string-replace-loader",
options: {
search: "[\\s\\S]+", // whole file.
replace:
'module.exports = () => [require("eslint4b/dist/linter")]',
flags: "g",
},
},
],
},
},
}