Skip to content

Commit

Permalink
fix: breaking config (#287)
Browse files Browse the repository at this point in the history
* fix: breaking config

* Create chilled-crabs-breathe.md
  • Loading branch information
ota-meshi authored Jan 15, 2024
1 parent 87bebb1 commit 3814173
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-crabs-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-json-schema-validator": patch
---

fix: breaking config
4 changes: 3 additions & 1 deletion src/configs/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- ignore
// @ts-ignore -- backward compatibility
export = {
plugins: ["json-schema-validator"],
overrides: [
{
Expand Down
4 changes: 3 additions & 1 deletion src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const baseExtend =
path.extname(`${base}`) === ".ts"
? "plugin:json-schema-validator/base"
: base;
export default {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- ignore
// @ts-ignore -- backward compatibility
export = {
extends: [baseExtend],
rules: {
// eslint-plugin-json-schema-validator rules
Expand Down
4 changes: 3 additions & 1 deletion tools/update-rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import path from "path"
const base = require.resolve("./base")
const baseExtend =
path.extname(\`\${base}\`) === ".ts" ? "plugin:json-schema-validator/base" : base
export default {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- ignore
// @ts-ignore -- backward compatibility
export = {
extends: [baseExtend],
rules: {
// eslint-plugin-json-schema-validator rules
Expand Down

0 comments on commit 3814173

Please sign in to comment.