This commit is contained in:
28
frontend/eslint.config.js
Normal file
28
frontend/eslint.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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"],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user