Repository navigation
v2.0.1
chef-oxlint без аргументов запускает языковой сервер, если первым на стандартный ввод приходит сообщение LSP, — так к нему подключается редактор. Плагин Oxc для JetBrains IDE до версии 0.0.44 в ручной настройке запускает указанный бинарник без --lsp, если не включена настройка Add --lsp CLI argument. Раньше chef-oxlint в этом случае проверял текущий каталог как обычный oxlint и не отвечал редактору, а IDE через 100 секунд сообщала 'initialized' response not received from the server. Запуск из терминала и в CI работает как раньше. В инструкции для PhpStorm описана настройка для старых версий плагина.
Битый тестовый файл больше не роняет весь прогон. Файл, который не собирается (синтаксическая ошибка, импорт несуществующего модуля) или падает при загрузке (ошибка вне it), выводится отдельной группой с упавшей записью Failed to build или Failed to load, причиной и фрагментом кода, а остальные файлы выполняются. Раньше в unit-тестах такой файл давал build failed на всё расширение или молча отключал тесты файлов после него, и прогон мог остаться зелёным. В e2e chef повторяет прогон Playwright без битых spec-файлов. Синтаксическая ошибка в TypeScript указывает на строку исходника, а не транспилированного кода, а стек-трейсы unit-тестов больше не съезжают в исходниках с символами U+2028/U+2029. Если в одном браузере тесты не запустились, в отчёте остаются результаты остальных. С --list выводятся ошибки, из-за которых тесты не удалось перечислить.
chef-oxlint run with no arguments serves the language server when the first thing on its stdin is an LSP message, the way an editor connects. The Oxc plugin for JetBrains IDEs before 0.0.44 starts a manually set binary without --lsp unless Add --lsp CLI argument is checked. chef-oxlint then linted the working directory like plain oxlint and never answered the editor, and after 100 seconds the IDE reported 'initialized' response not received from the server. Running it from a terminal or in CI works as before. The PhpStorm guide describes the setting for older plugin versions.
A broken test file no longer stops the whole run. A file that does not build (a syntax error, an import of a missing module) or fails while loading (an error outside it) is reported as a separate group with a failed Failed to build or Failed to load entry, the cause and a code frame, and the other files still run. Before, in unit tests such a file turned the whole extension into build failed or silently dropped the tests of the files after it, and the run could stay green. In e2e, chef reruns Playwright without the broken spec files. A TypeScript syntax error points at the source line, not the transpiled code, and unit test stack traces no longer shift in sources with U+2028/U+2029 characters. When tests could not start in one browser, the results of the others stay in the report. With --list the errors that kept tests from being listed are printed.