Skip to content

Commit e9279bf

Browse files
committed
Fixed doc
1 parent 1fa6d75 commit e9279bf

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

docs/.vuepress/config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ module.exports = {
1616
serviceWorker: true,
1717
evergreen: true,
1818
configureWebpack(_config, _isServer) {
19-
return {}
19+
return {
20+
resolve: {
21+
alias: {
22+
eslint: require.resolve("eslint4b"),
23+
},
24+
},
25+
}
2026
},
2127

2228
head: [

lib/configs/recommended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export = {
1010
"no-regex-spaces": "error",
1111
"prefer-regex-literals": "error",
1212
// If ESLint is 7 or higher, use core rule. If it is 6 or less, use the copied rule.
13-
[parseInt(eslint.Linter.version[0], 10) >= 7
13+
[parseInt(eslint.Linter?.version?.[0] ?? "6", 10) >= 7
1414
? "no-useless-backreference"
1515
: "regexp/no-useless-backreference"]: "error",
1616

tools/update-rulesets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export = {
2424
// ESLint core rules
2525
${coreRules.map((ruleName) => `"${ruleName}": "error"`).join(",\n")},
2626
// If ESLint is 7 or higher, use core rule. If it is 6 or less, use the copied rule.
27-
[parseInt(eslint.Linter.version[0], 10) >= 7
27+
[parseInt(eslint.Linter?.version?.[0] ?? "6", 10) >= 7
2828
? "no-useless-backreference"
2929
: "regexp/no-useless-backreference"]: "error",
3030

0 commit comments

Comments
 (0)