29 lines
545 B
JavaScript
29 lines
545 B
JavaScript
import { defineConfig } from "eslint/config";
|
|
import json from "@eslint/json";
|
|
|
|
export default defineConfig([
|
|
// lint JSON files
|
|
{
|
|
files: ["**/*.json"],
|
|
plugins: { json },
|
|
language: "json/json",
|
|
extends: ["json/recommended"],
|
|
},
|
|
|
|
// lint JSONC files
|
|
{
|
|
files: ["**/*.jsonc"],
|
|
plugins: { json },
|
|
language: "json/jsonc",
|
|
extends: ["json/recommended"],
|
|
},
|
|
|
|
// lint JSON5 files
|
|
{
|
|
files: ["**/*.json5"],
|
|
plugins: { json },
|
|
language: "json/json5",
|
|
extends: ["json/recommended"],
|
|
},
|
|
]);
|