Skip to content

Commit b964f68

Browse files
authored
Change the base config to turn off ESLint core rules that false positives in JSON. (#21)
1 parent a049bf5 commit b964f68

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/configs/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ export = {
44
{
55
files: ["*.json", "*.json5"],
66
parser: require.resolve("jsonc-eslint-parser"),
7+
rules: {
8+
// ESLint core rules known to cause problems with JSON.
9+
strict: "off",
10+
"no-unused-expressions": "off",
11+
},
712
},
813
],
914
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-jsonc",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "ESLint plugin for JSON, JSONC and JSON5 files.",
55
"main": "dist/index.js",
66
"typescript": {

0 commit comments

Comments
 (0)