Skip to content

Latest commit

 

History

History
237 lines (124 loc) · 14.5 KB

File metadata and controls

237 lines (124 loc) · 14.5 KB

eslint-plugin-jsonc

3.1.2

Patch Changes

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

3.1.1

Patch Changes

3.1.0

Minor Changes

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

3.0.1

Patch Changes

3.0.0

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

2.21.1

Patch Changes

2.21.0

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

2.20.1

Patch Changes

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

2.20.0

Minor Changes

2.19.1

Patch Changes

2.19.0

Minor Changes

2.18.2

Patch Changes

2.18.1

Patch Changes

2.18.0

Minor Changes

2.17.0

Minor Changes

2.16.0

Minor Changes

2.15.1

Patch Changes

2.15.0

Minor Changes

2.14.1

Patch Changes

2.14.0

Minor Changes

2.13.0

Minor Changes

2.12.2

Patch Changes

2.12.1

Patch Changes

2.12.0

Minor Changes

2.11.2

Patch Changes

2.11.1

Patch Changes

2.11.0

Minor Changes

2.10.0

Minor Changes

2.9.0

Minor Changes

  • #243 48d3669 Thanks @ota-meshi! - feat: add new allowLineSeparatedGroups option to the jsonc/sort-keys rule

2.8.0

Minor Changes

2.7.0

Minor Changes

2.6.0

Minor Changes

2.5.0

Minor Changes