You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
740 B
15 lines
740 B
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import json from "@eslint/json";
|
|
import css from "@eslint/css";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
|
|
export default defineConfig([
|
|
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
|
|
{ files: ["**/*.js"], languageOptions: { sourceType: "script" } },
|
|
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.browser } },
|
|
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
|
|
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
|
|
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
|
|
]);
|
|
|