Skip to content

Commit 1c60edf

Browse files
committed
fix for docs
1 parent 8602903 commit 1c60edf

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

lib/configs/auto-config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from "path"
22
const base = require.resolve("./base")
3-
const baseExtend = path.extname(base) === ".ts" ? "plugin:jsonc/base" : base
3+
const baseExtend =
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
45
export = {
56
extends: [baseExtend],
67
overrides: [

lib/configs/recommended-with-json.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from "path"
22
const base = require.resolve("./base")
3-
const baseExtend = path.extname(base) === ".ts" ? "plugin:jsonc/base" : base
3+
const baseExtend =
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
45
export = {
56
extends: [baseExtend],
67
rules: {

lib/configs/recommended-with-json5.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from "path"
22
const base = require.resolve("./base")
3-
const baseExtend = path.extname(base) === ".ts" ? "plugin:jsonc/base" : base
3+
const baseExtend =
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
45
export = {
56
extends: [baseExtend],
67
rules: {

lib/configs/recommended-with-jsonc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from "path"
22
const base = require.resolve("./base")
3-
const baseExtend = path.extname(base) === ".ts" ? "plugin:jsonc/base" : base
3+
const baseExtend =
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
45
export = {
56
extends: [baseExtend],
67
rules: {

tools/update-rulesets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ for (const rec of ["json", "jsonc", "json5"]) {
99
let content = `
1010
import path from "path"
1111
const base = require.resolve("./base")
12-
const baseExtend = path.extname(base) === ".ts" ? "plugin:jsonc/base" : base
12+
const baseExtend =
13+
path.extname(\`\${base}\`) === ".ts" ? "plugin:jsonc/base" : base
1314
export = {
1415
extends: [baseExtend],
1516
rules: {

0 commit comments

Comments
 (0)