-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
31 lines (30 loc) · 1.04 KB
/
Copy patheslint.config.mjs
File metadata and controls
31 lines (30 loc) · 1.04 KB
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
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["out/**", "node_modules/**", ".vscode-test/**"],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
"semi": [2, "always"],
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
// `import X = require()` is the conventional form for CommonJS modules in VS Code extensions
"@typescript-eslint/no-require-imports": 0,
// Existing code uses `cond ? a : b` as a statement
"@typescript-eslint/no-unused-expressions": 0,
},
},
);