Skip to content

Commit 1a99771

Browse files
authored
ci: enable more oxlint rules (#1599)
1 parent 2d37279 commit 1a99771

25 files changed

+43
-24
lines changed

.oxlintrc.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
{
22
"plugins": ["import", "typescript", "unicorn", "promise"],
33
"rules": {
4-
"eslint/no-unused-vars": "off",
54
"no-console": "error",
5+
"eslint/no-unused-vars": "off",
6+
"unicorn/prefer-array-some": "error",
67
"unicorn/no-useless-promise-resolve-reject": "error",
8+
"unicorn/no-unnecessary-await": "error",
9+
"unicorn/no-useless-fallback-in-spread": "error",
10+
"unicorn/filename-case": [
11+
"error",
12+
{
13+
"case": "kebabCase"
14+
}
15+
],
16+
"unicorn/prefer-date-now": "error",
17+
"unicorn/prefer-blob-reading-methods": "error",
18+
"unicorn/no-typeof-undefined": "error",
19+
"unicorn/no-new-array": "error",
720
"import/no-cycle": [
821
"error",
922
{
1023
"ignoreTypes": true
1124
}
12-
]
25+
],
26+
"import/sort-imports": "error",
27+
"import/no-duplicates": "error",
28+
"import/no-import-assign": "error",
29+
"import/no-self-import": "error",
30+
"typescript/consistent-type-imports": "error",
31+
"typescript/no-import-type-side-effects": "error"
1332
}
1433
}

e2e/tests/misc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Page } from '@playwright/test'
1+
import type { Page } from '@playwright/test'
22
import fs from 'node:fs/promises'
33
import path from 'node:path'
44

0 commit comments

Comments
 (0)