Skip to content

Commit 05be0a9

Browse files
disable core rule "no-unused-vars" (#205)
* disable core rule "no-unused-vars" Same problem as in ota-meshi/eslint-plugin-yml#204, same fix as in ota-meshi/eslint-plugin-yml#205 example.jsonc ```json /* global test */ "data" ``` triggers `1:11 error 'test' is defined but never used. Allowed unused vars must match /^_/u no-unused-vars` * Create smart-bottles-beam.md Co-authored-by: Yosuke Ota <[email protected]>
1 parent 9f381c5 commit 05be0a9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/smart-bottles-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-jsonc": minor
3+
---
4+
5+
disable `no-unused-vars` in base config

lib/configs/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export = {
88
// ESLint core rules known to cause problems with JSON.
99
strict: "off",
1010
"no-unused-expressions": "off",
11+
"no-unused-vars": "off",
1112
},
1213
},
1314
],

0 commit comments

Comments
 (0)