Closed alxsap closed 4 months ago
I came here to report the same ticket:
> eslint ./**/webapp/**/*.js --fix && prettier --plugin=@prettier/plugin-xml --write ./**/webapp/**/*.{js,xml} --no-error-on-unmatched-pattern
(node:46559) ESLintIgnoreWarning: The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files
(Use `node --trace-warnings ...` to show where the warning was created)
Oops! Something went wrong! :(
ESLint: 9.1.1
Error: Could not find config file.
at locateConfigFileToUse (./node_modules/eslint/lib/eslint/eslint.js:350:21)
at async calculateConfigArray (./node_modules/eslint/lib/eslint/eslint.js:385:49)
at async ESLint.lintFiles (./node_modules/eslint/lib/eslint/eslint.js:815:25)
at async Object.execute (./node_modules/eslint/lib/cli.js:500:23)
at async main (./node_modules/eslint/bin/eslint.js:153:22)
✖ An error occured while running ui5-project:app#end
Error easy-ui5 project
Command failed with exit code 2: npm run lint-fix
I'm creating a PR now and will reference this.
Thanks for reporting. We are currently working on a complete rewrite of the generator-ui5-project (which you are using here) and will fix this.
@nicoschoenteich should we then use the mentioned project instead of this one?
The Easy UI5 generator is a skeleton which aggregates multiple templates from the UI5 community which can be found in the ui5-community
github org with the prefix generator-ui5-
: https://github.com/ui5-community/?q=generator-ui5-&type=all&language=&sort=
In your case the generator-ui5-project
is used inside Easy UI5 to scaffold your project. It should be used via the Easy UI5 generator and not standalone. Issues should be ideally reported in the sub-generators.
@nicoschoenteich maybe we should adopt the create issue hint to explain this in more detail.
Easy-Ui5 version:
(hmm, also here an error)
OS/version:
Windows 11
Browser/version (+device/version):
Steps to reproduce the problem:
yo easy-ui5 project
with defaults, in a blank folder.What is the expected result?
Project generated and
yo
finishes with success message.What happens instead?
Project generated (completely?) and
yo
ends with this error message. It seems the generated.eslintignore
is not accepted anymore by eslint. Instead aeslint.config.js
is expected.Any other information? (attach screenshot if possible)