Skip to content

Commit 82502b3

Browse files
authored
feat: Installs ESLint. (#673)
1 parent 18d1d01 commit 82502b3

File tree

3 files changed

+2810
-77
lines changed

3 files changed

+2810
-77
lines changed

eslint.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import json from "@eslint/json";
5+
import markdown from "@eslint/markdown";
6+
import css from "@eslint/css";
7+
import { defineConfig } from "eslint/config";
8+
9+
export default defineConfig([
10+
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: {...globals.browser, ...globals.node} } },
11+
tseslint.configs.recommended,
12+
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
13+
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
14+
{ files: ["**/*.json5"], plugins: { json }, language: "json/json5", extends: ["json/recommended"] },
15+
{ files: ["**/*.md"], plugins: { markdown }, language: "markdown/gfm", extends: ["markdown/recommended"] },
16+
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
17+
]);

0 commit comments

Comments
 (0)