From 7161a078433fd747bab3f9ef3535f83756dfbeee Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Thu, 18 Sep 2025 16:00:09 -0400 Subject: [PATCH 1/2] chore: add .oxlintrc.json to json with comments --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 3a312f7900..241aa067ab 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3467,6 +3467,7 @@ JSON with Comments: - ".jscsrc" - ".jshintrc" - ".jslintrc" + - ".oxlintrc.json" - ".swcrc" - api-extractor.json - devcontainer.json From 98b3d0a926a8de47f3da58f38b5ac0f18f7079ae Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Sun, 2 Nov 2025 15:12:48 +0100 Subject: [PATCH 2/2] chore: add sample --- .../filenames/.oxlintrc.json | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 samples/JSON with Comments/filenames/.oxlintrc.json diff --git a/samples/JSON with Comments/filenames/.oxlintrc.json b/samples/JSON with Comments/filenames/.oxlintrc.json new file mode 100644 index 0000000000..dd2b2be33e --- /dev/null +++ b/samples/JSON with Comments/filenames/.oxlintrc.json @@ -0,0 +1,35 @@ +{ + "plugins": [ + "import", + "typescript", + "unicorn" + ], + "env": { + "browser": true + }, + "globals": { + "foo": "readonly" + }, + "settings": {}, + "rules": { + "eqeqeq": "warn", + "import/no-cycle": "error", + "react/self-closing-comp": [ + "error", + { + "html": false + } + ] + }, + "overrides": [ + { + "files": [ + "*.test.ts", + "*.spec.ts" + ], + "rules": { + "@typescript-eslint/no-explicit-any": "off" + } + } + ] +} \ No newline at end of file