-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy path.oxlintrc.json
More file actions
51 lines (51 loc) · 1.25 KB
/
.oxlintrc.json
File metadata and controls
51 lines (51 loc) · 1.25 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
44
45
46
47
48
49
50
51
{
"plugins": ["typescript", "import"],
"rules": {
"no-console": "error",
"no-eval": "error",
"no-extra-boolean-cast": "error",
"no-ex-assign": "error",
"no-constant-condition": "off",
"guard-for-in": "error",
"typescript/ban-ts-comment": "off",
"typescript/explicit-module-boundary-types": "off",
"typescript/no-explicit-any": "off",
"typescript/no-non-null-assertion": "off",
"typescript/no-require-imports": "warn",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["src/**/*.ts"],
"rules": {
"import/no-nodejs-modules": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["*/**/fs/**/*"],
"message": "Importing from src/fs is not allowed on non fs files"
}
]
}
]
}
},
{
"files": ["src/fs/**/*.ts"],
"rules": {
"no-restricted-imports": "off",
"import/no-nodejs-modules": "off"
}
}
],
"ignorePatterns": ["node_modules", "dist", "tmp"]
}