1const { defineConfig } = require("eslint/config"); 2const jsonPlugin = require("@eslint/json").default; 3 4module.exports = defineConfig([ 5 { 6 files: ["**/*.json"], 7 plugins: { json: jsonPlugin }, 8 // OpenBMC allows comments in JSON; treat as JSON5. 9 language: "json/json5", 10 extends: ["json/recommended"], 11 }, 12 { 13 ignores: ["**/meson-*/*.json", "subprojects/**/*.json"], 14 }, 15]); 16