Skip to content

Releases: ota-meshi/eslint-plugin-jsonc

v0.3.0

24 Jul 09:19
30f61e0
Compare
Choose a tag to compare

✨ Enhancements

Core:

  • #14 Added index.d.ts

v0.2.0

16 Jul 02:21
Compare
Choose a tag to compare

💥 Breaking Changes

  • #6 Changed JSON parser
    • to allow static template literals.
    • to allow undefined identifier.
    • to allow empty slots in array literals.
    • to allow spaces after -/+ sign.
    • to allow number property key.
    • to allow regexp literal.
    • to allow bigint literal.
    • the parser only parsed files with the .json extension, but removes this restriction to allow other extensions.
  • Updated presets configs.
    • Changed plugin:jsonc/recommended-with-json, plugin:jsonc/recommended-with-jsonc and plugin:jsonc/recommended-with-json5 configs
      • #9 Added jsonc/no-template-literals rule.
      • #8 Added jsonc/no-undefined-value rule.
      • #13 Added jsonc/no-sparse-arrays rule.
      • #7 Added jsonc/space-unary-ops rule.
      • #10 Added jsonc/no-number-props rule.
      • #11 Added jsonc/no-regexp-literals rule.
      • #12 Added jsonc/no-bigint-literals rule.

✨ Enhancements

New Rules:

  • #9 Added jsonc/no-template-literals rule that disallow template literals.
  • #8 Added jsonc/no-undefined-value rule that disallow undefined.
  • #13 Added jsonc/no-sparse-arrays rule that disallows sparse array literals.
  • #7 Added jsonc/space-unary-ops rule that disallow spaces after unary operators.
  • #10 Added jsonc/no-number-props rule that disallow number property keys.
  • #11 Added jsonc/no-regexp-literals rule that disallow RegExp literals.
  • #12 Added jsonc/no-bigint-literals rule that disallow BigInt literals.

v0.1.1

12 Jul 06:57
Compare
Choose a tag to compare

🐛 Bugfixes

  • #2 Fixed parsing error with Infinity and NaN.

v0.1.0

12 Jul 02:07
Compare
Choose a tag to compare

Release 🐣