Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ describe("'rename' events", () => {
luaCode: `return _G.yazi_closed_successfully_hook_test_results`,
})
.should((result) => {
debugger
assert(result.value)
assert(typeof result.value === "object")
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
Expand Down
31 changes: 13 additions & 18 deletions integration-tests/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import { FlatCompat } from "@eslint/eslintrc"
import js from "@eslint/js"
import eslintConfigPrettier from "eslint-config-prettier"
import noOnlyTests from "eslint-plugin-no-only-tests"
import path from "node:path"
import { fileURLToPath } from "node:url"

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})
import eslint from "@eslint/js"
import tseslint from "typescript-eslint"

export default [
export default tseslint.config(
{
ignores: [
"**/vite.config.js",
Expand All @@ -23,11 +15,11 @@ export default [
"cypress/support/tui-sandbox.ts",
],
},
...compat.extends(
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/strict-type-checked",
"prettier",
),

eslint.configs.recommended,
tseslint.configs.recommended,
tseslint.configs.strictTypeChecked,

{
plugins: {
"no-only-tests": noOnlyTests,
Expand Down Expand Up @@ -96,4 +88,7 @@ export default [
"@typescript-eslint/no-unused-vars": "off",
},
},
]

// should be the last item
eslintConfigPrettier,
)
6 changes: 3 additions & 3 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"zod": "3.24.1"
},
"devDependencies": {
"@eslint/js": "9.20.0",
"@tui-sandbox/library": "9.0.1",
"@types/node": "22.13.1",
"@types/tinycolor2": "1.4.6",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"concurrently": "9.1.2",
"eslint": "9.20.0",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-no-only-tests": "3.3.0",
"tinycolor2": "1.6.0",
"type-fest": "4.33.0",
"typescript": "5.7.3"
"typescript": "5.7.3",
"typescript-eslint": "8.23.0"
}
}
29 changes: 23 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading