Skip to content

Releases: ota-meshi/eslint-plugin-jsonc

v3.1.0

23 Feb 08:35
ebbba90

Choose a tag to compare

Minor Changes

  • #487 8a1f4b9 Thanks @ota-meshi! - feat(object-curly-spacing): add emptyObjects option to control spacing in empty objects

v3.0.1

23 Feb 00:06
16447f1

Choose a tag to compare

Patch Changes

v3.0.0

20 Feb 10:12
ead4b7c

Choose a tag to compare

Major Changes

  • #471 d30112b Thanks @copilot-swe-agent! - Add ESLint language plugin support. The plugin now exports a languages object that provides language implementations for json, jsonc, json5, and x. The shared configurations (base, recommended-with-json, etc.) now use the jsonc-based language implementation by default (via language: "jsonc/x" in ESLint flat config) and have been updated to use the new language plugin approach instead of the parser approach.

  • #468 8c87c6c Thanks @copilot-swe-agent! - Drop support for legacy config. The plugin now exports flat configs as the main configuration format. The previous flat/* namespace is kept for backward compatibility.

  • #465 62b2127 Thanks @copilot-swe-agent! - Drop support for older ESLint versions. The new minimum supported version is ESLint 9.38.0 or later.

  • #460 cc949e3 Thanks @copilot-swe-agent! - Drop support for older Node.js versions. The new minimum supported versions are: ^20.19.0 || ^22.13.0 || >=24

  • #469 ee27486 Thanks @copilot-swe-agent! - Convert to ESM-only package. The plugin now uses tsdown for bundling and is distributed as pure ESM. The package no longer supports CommonJS require() syntax. Users need to use import statements or dynamic import() to load the plugin.

  • #466 29e47c4 Thanks @renovate! - Update dependency jsonc-eslint-parser to v3

  • #473 0f6d480 Thanks @ota-meshi! - feat: include "no-irregular-whitespace" rule in recommended configs

  • #477 75304cf Thanks @ota-meshi! - Removed re-export from jsonc-eslint-parser

Minor Changes

  • #474 90c0d61 Thanks @ota-meshi! - fix: replace espree with jsonc-eslint-parser for tokenization

  • #476 633b7d1 Thanks @ota-meshi! - The JSONCSourceCode, JSONCToken, and JSONCComment types are now provided. Using these types, you can define a RuleContext type that is useful for creating JSON rules.

    e.g.

    import type * as core from "@eslint/core";
    export type RuleContext<RuleOptions extends unknown[] = unknown[]> =
      core.RuleContext<{
        LangOptions: JSONCLanguageOptions;
        Code: JSONCSourceCode;
        RuleOptions: RuleOptions;
        Node: JSONCNodeOrToken;
        MessageIds: string;
      }>;

v2.21.1

09 Feb 07:59
139fd4d

Choose a tag to compare

Patch Changes

v2.21.0

04 Oct 03:09

Choose a tag to compare

Minor Changes

  • #426 efc00a6 Thanks @ota-meshi! - feat(sort-array-values): improve to calculate the minimum edit distance for sorting and report the optimal sorting direction

  • #426 efc00a6 Thanks @ota-meshi! - feat(sort-keys): improve to calculate the minimum edit distance for sorting and report the optimal sorting direction

v2.20.1

17 May 13:02
a078d32

Choose a tag to compare

Patch Changes

  • #404 22b1700 Thanks @JounQin! - fix(deps): update dependency synckit to ^0.6.2 || ^0.7.3 || ^0.11.5

Full Changelog: v2.20.0...v2.20.1

v2.20.0

25 Mar 09:38
daab78e

Choose a tag to compare

Minor Changes

New Contributors

Full Changelog: v2.19.1...v2.20.0

v2.19.1

24 Jan 09:14
c59eaa0

Choose a tag to compare

Patch Changes

v2.19.0

24 Jan 02:35
542ed5e

Choose a tag to compare

Minor Changes

v2.18.2

18 Nov 01:21
04dddf3

Choose a tag to compare

Patch Changes