Skip to content

Releases: ota-meshi/eslint-plugin-jsonc

v3.4.2

Choose a tag to compare

@github-actions github-actions released this 22 Aug 12:10
a9b6492

Patch Changes

v3.4.1

Choose a tag to compare

@github-actions github-actions released this 04 Aug 07:18
b52ea38

Patch Changes

  • #532 97a7564 Thanks @ota-meshi! - Fix allowLineSeparatedGroups in jsonc/sort-keys when ignored properties occur between sorted keys.

v3.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Aug 00:20
5112f41

Minor Changes

v3.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Jul 00:25
89fcb99

Minor Changes

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 29 May 06:10
5506524

Minor Changes

v3.1.2

Choose a tag to compare

@github-actions github-actions released this 12 Mar 11:16
19e4afe

Patch Changes

  • #500 d97b2bc Thanks @ota-meshi! - fix: update eslint-json-compat-utils to 0.2.3 and fixed compatibility with @eslint/json

v3.1.1

Choose a tag to compare

@github-actions github-actions released this 25 Feb 13:18
c78f809

Patch Changes

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Feb 08:35
ebbba90

Minor Changes

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

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Feb 00:06
16447f1

Patch Changes

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Feb 10:12
ead4b7c

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;
      }>;