Run if test -f .prettierrc.cjs; then
yarn run v1.22.22
$ /home/runner/work/discourse-multi-rating/discourse-multi-rating/node_modules/.bin/eslint --ext .js,.gjs,.js.es6 --no-error-on-unmatched-pattern test/javascripts assets/javascripts admin/assets/javascripts
Invalid option '--ext' - perhaps you meant '-c'?
You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 2.
소스 트리에서 --ext를 찾을 수 없어서, 아마도 @discourse/lint-configs/eslint") 안에 있는 것 같습니다. 하지만 어디서 찾을 수 있는지 모르겠습니다.
제가 뭘 잘못하고 있는지, 혹은 왜 이 문제가 다른 많은 플러그인에는 영향을 주지 않는지 이해가 되지 않습니다.
나도 플러그인에서 이 오류를 확인했습니다. 원인이 eslint 마이그레이션을 통해 eslint 설정 파일을 .eslintrc.cjs에서 최신 flat config 형식인 eslint.config.js로 변경하려고 시도했기 때문인 것을 파악했습니다. eslint.config.js는 --ext(Command Line Interface Reference - ESLint - Pluggable JavaScript Linter)를 지원하지 않으므로, 파일을 이전 버전인 .eslintrc.cjs로 변경하면 해결될 것입니다.