eslint / json

JSON language plugin for ESLint
Apache License 2.0
44 stars 4 forks source link

feat: rule no-unsafe-values #30

Closed bmeck closed 2 weeks ago

bmeck commented 1 month ago

Prerequisites checklist

What is the purpose of this pull request?

Introduce a new rule for checking common interchange problems

What changes did you make? (Give an overview)

Added a rule for:

Related Issues

fixes #29

Is there anything you'd like reviewers to focus on?

tests are somewhat limited by using already parsed values so I avoided trying to reparse for getting exact locations within strings and/or couldn't check array/string bounds since things error before getting to the rules processing phase.

linux-foundation-easycla[bot] commented 1 month ago

CLA Signed

The committers listed above are authorized under a signed CLA.

nzakas commented 1 month ago

@bmeck just one outstanding comment to address here.