-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (32 loc) · 912 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
33 lines (32 loc) · 912 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 pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{ ignores: ["node_modules/*", "types/*", "out/*", "launch_folder/*"] },
{ files: ["**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
ignores: ["node_modules/**", "build/**"],
rules: {
"no-restricted-imports": [
"error",
{
paths: [
{
name: "fs",
message: "Please use vscode.workspace.fs",
},
{
name: "fs/promises",
message: "Please use vscode.workspace.fs",
},
],
},
],
},
},
];