forked from Bitcoindefi/OpenAO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
30 lines (29 loc) · 753 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
30 lines (29 loc) · 753 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
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{
ignores: ["dist/**", "node_modules/**"],
},
{
files: ["src/**/*.ts"],
languageOptions: {
parser: tseslint.parser,
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.es2022,
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
},
rules: {
"no-undef": "off",
"no-var": "error",
"no-const-assign": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
},
},
];