-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.ts
More file actions
33 lines (32 loc) · 791 Bytes
/
eslint.config.ts
File metadata and controls
33 lines (32 loc) · 791 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
27
28
29
30
31
32
33
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: [
"**/*.js",
"**/node_modules/**",
"**/dist/**",
"src/jswasm/sqlite3.mjs",
],
},
{
files: ["**/*.ts", "**/*.tsx", "**/*.mts"],
extends: [js.configs.recommended, ...tseslint.configs.recommended],
languageOptions: {
globals: globals.browser,
},
rules: {
"no-empty": ["error", { allowEmptyCatch: true }],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-explicit-any": "error",
},
},
);