-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
43 lines (43 loc) · 1.34 KB
/
.eslintrc.json
File metadata and controls
43 lines (43 loc) · 1.34 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
32
33
34
35
36
37
38
39
40
41
42
43
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-inner-declarations": "off",
"no-console": "warn",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"../test/evm/disassembler",
"../test/evm/evm-executor",
"../src/utils/ir/formatter",
"../src/utils/ir/cfg-visualizer",
"../src/utils/ir/validator",
"../src/utils/ir/stats",
"./context-builders/variables-context",
"./context-builders/code-context",
"./context-builders/frame-context",
"./context-builders/gather-context",
"./context-builders/pick-context",
"./context-builders/remark-context"
],
"message": "Cross-directory imports must use index.ts files. Import from '../module' not '../module/file'."
}
]
}
]
},
"env": {
"node": true,
"es2022": true
}
}