Releases: ota-meshi/eslint-plugin-jsonc
Releases · ota-meshi/eslint-plugin-jsonc
v0.3.0
v0.2.0
💥 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
andplugin:jsonc/recommended-with-json5
configs
- Changed
✨ Enhancements
New Rules:
- #9 Added
jsonc/no-template-literals
rule that disallow template literals. - #8 Added
jsonc/no-undefined-value
rule that disallowundefined
. - #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.