Skip to content

Commit 81915c0

Browse files
committed
Remove JSONC from ESLint
1 parent f061e19 commit 81915c0

3 files changed

Lines changed: 2 additions & 169 deletions

File tree

eslint.config.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { defineConfig } from "eslint/config"
22
import tsParser from "@typescript-eslint/parser"
33
import tsPlugin from "@typescript-eslint/eslint-plugin"
44
import stylistic from "@stylistic/eslint-plugin"
5-
import jsoncParser from "jsonc-eslint-parser"
6-
import eslintPluginJsonc from "eslint-plugin-jsonc"
75

86
// Rules that apply to both JS and TS
97
const sharedJsTsRules = {
@@ -136,24 +134,4 @@ export default defineConfig([
136134
"@typescript-eslint/explicit-member-accessibility": ["error", { accessibility: "explicit" }],
137135
},
138136
},
139-
// JSON (default from JSONC)
140-
...eslintPluginJsonc.configs["flat/recommended-with-json"],
141-
{
142-
// JSON (adding on to JSONC)
143-
files: ["**/*.json", "**/*.json.in"],
144-
languageOptions: {
145-
parser: jsoncParser,
146-
},
147-
rules: {
148-
"jsonc/array-bracket-newline": "error",
149-
"jsonc/array-bracket-spacing": ["error", "never"],
150-
"jsonc/array-element-newline": ["error", { multiline: true }],
151-
"jsonc/comma-style": "error",
152-
"jsonc/indent": ["error", "tab"],
153-
"jsonc/key-spacing": "error",
154-
"jsonc/no-irregular-whitespace": "error",
155-
"jsonc/object-curly-newline": ["error", "always"],
156-
"jsonc/object-property-newline": "error",
157-
},
158-
},
159137
])

package-lock.json

Lines changed: 1 addition & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"@stylistic/eslint-plugin": "^5.2.2",
1414
"@typescript-eslint/eslint-plugin": "^8.32.1",
1515
"@typescript-eslint/parser": "^8.32.1",
16-
"eslint": "^9.27.0",
17-
"eslint-plugin-jsonc": "^2.20.1"
16+
"eslint": "^9.27.0"
1817
}
1918
}

0 commit comments

Comments
 (0)