-
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy patheslint.config.ts
More file actions
26 lines (25 loc) · 613 Bytes
/
eslint.config.ts
File metadata and controls
26 lines (25 loc) · 613 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import json from "@eslint/json";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
plugins: { js },
extends: ["js/recommended"],
},
{
languageOptions: {
globals: globals.node,
parserOptions: { tsconfigRootDir: `${import.meta.dirname}/` },
},
},
tseslint.configs.recommended,
{
files: ["**/*.json"],
plugins: { json },
language: "json/json",
extends: ["json/recommended"],
},
]);