@@ -2,8 +2,6 @@ import { defineConfig } from "eslint/config"
22import tsParser from "@typescript-eslint/parser"
33import tsPlugin from "@typescript-eslint/eslint-plugin"
44import 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
97const 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] )
0 commit comments