forked from Arize-ai/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
42 lines (39 loc) · 1.29 KB
/
Copy path.oxlintrc.json
File metadata and controls
42 lines (39 loc) · 1.29 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
{
"$schema": "./app/node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript"],
"rules": {
"no-console": "error",
"import/no-duplicates": "error",
"typescript/no-explicit-any": "error",
"typescript/no-require-imports": "error",
"typescript/no-import-type-side-effects": "error",
"typescript/prefer-ts-expect-error": "error",
// TODO: Re-promote no-unsafe-type-assertion to "error" once existing
// violations are fixed. It became far stricter when tsgolint (type-aware
// linting) was adopted and pre-existing code has not been cleaned up yet.
"typescript/consistent-return": "error",
"typescript/consistent-type-imports": "error",
"typescript/no-unsafe-type-assertion": "warn",
// "eslint/no-shadow": "warn",
"eqeqeq": ["error", "smart"],
"eslint/prefer-const": "error",
"eslint/no-implicit-coercion": [
"error",
{
"boolean": false,
"number": true,
"string": false
}
],
"typescript/prefer-reduce-type-parameter": "error",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"ignorePatterns": ["**/dist/**", "**/build/**", "**/node_modules/**"]
}