Releases: ota-meshi/eslint-plugin-jsonc
v3.1.0
v3.0.1
Patch Changes
- #484
8bef6fcThanks @ota-meshi! - update@ota-meshi/ast-token-storeto v0.3.0
v3.0.0
Major Changes
-
#471
d30112bThanks @copilot-swe-agent! - Add ESLint language plugin support. The plugin now exports alanguagesobject that provides language implementations forjson,jsonc,json5, andx. The shared configurations (base,recommended-with-json, etc.) now use thejsonc-based language implementation by default (vialanguage: "jsonc/x"in ESLint flat config) and have been updated to use the new language plugin approach instead of the parser approach. -
#468
8c87c6cThanks @copilot-swe-agent! - Drop support for legacy config. The plugin now exports flat configs as the main configuration format. The previousflat/*namespace is kept for backward compatibility. -
#465
62b2127Thanks @copilot-swe-agent! - Drop support for older ESLint versions. The new minimum supported version is ESLint 9.38.0 or later. -
#460
cc949e3Thanks @copilot-swe-agent! - Drop support for older Node.js versions. The new minimum supported versions are: ^20.19.0 || ^22.13.0 || >=24 -
#469
ee27486Thanks @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 CommonJSrequire()syntax. Users need to useimportstatements or dynamicimport()to load the plugin. -
#466
29e47c4Thanks @renovate! - Update dependency jsonc-eslint-parser to v3 -
#473
0f6d480Thanks @ota-meshi! - feat: include "no-irregular-whitespace" rule in recommended configs -
#477
75304cfThanks @ota-meshi! - Removed re-export from jsonc-eslint-parser
Minor Changes
-
#474
90c0d61Thanks @ota-meshi! - fix: replace espree with jsonc-eslint-parser for tokenization -
#476
633b7d1Thanks @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
Patch Changes
- #447
a8e405aThanks @ota-meshi! - fix: compatibility with ESLint v10
v2.21.0
Minor Changes
-
#426
efc00a6Thanks @ota-meshi! - feat(sort-array-values): improve to calculate the minimum edit distance for sorting and report the optimal sorting direction -
#426
efc00a6Thanks @ota-meshi! - feat(sort-keys): improve to calculate the minimum edit distance for sorting and report the optimal sorting direction
v2.20.1
Patch Changes
Full Changelog: v2.20.0...v2.20.1
v2.20.0
Minor Changes
-
#394
70d4b06Thanks @ota-meshi! - minor refactor -
#402
237932cThanks @JounQin! - refactor: hourcekeeping, bump all (dev) deps, stricter ruleoptionstypings
New Contributors
Full Changelog: v2.19.1...v2.20.0
v2.19.1
Patch Changes
- #392
623ee67Thanks @ota-meshi! - fix: more improve auto-fix of sort rules
v2.19.0
Minor Changes
- #390
5950e3dThanks @ota-meshi! - feat: improve auto-fix of sort rules
v2.18.2
Patch Changes
- #378
e46de35Thanks @ota-meshi! - fix: crash when used with eslint v9.15