4 changed files with 25 additions and 1 deletions
@ -0,0 +1 @@ |
|||||
|
node_modules/ |
@ -0,0 +1,15 @@ |
|||||
|
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"] }, |
||||
|
]); |
Loading…
Reference in new issue