New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter configuration errors (typescript template) #1712
Comments
Hm, odd. There most certainly are files matching that pattern, and I can't reproduce.
Duplicate of preactjs-templates/typescript#67 I have no idea what causes this, as |
That’s interesting that you can’t reproduce that issue. Are you on Windows too? As a comparison I’ll try on a Mac next week.
|
No, Linux. Regardless, there's nothing actionable here for All I can do at the moment is point out the file patterns are correct and the eslint config does list the jest plugin as a dependency. |
Hi @rschristian, I did a bit of digging and found more info about this issue which I wanted to share with you and anyone stumbling on the same errors. The problem with eslint pattern error is Windows specific, arguments in single quotes just don't work. A solution is to replace the single quotes by double quotes (with an escape character): For the eslint-plugin-jest error, I've installed version 25.7 (the one that comes with the preact eslint plugin) while forcing npm to ignore legacy dependencies. It's working fine so far. I've posted a comment on the issue you mentioned. |
Ugh, goddamit Windows. Thanks! I'll try to push out that fix to the templates later today. That peer dep issue (which I see now, thanks!) is rather annoying. Really don't want to have to continually update the templates just to satisfy a linter of all things, though might just be able to rip out Will have to consider ripping out ESLint entirely and leaving it up to users to configure as they wish. |
Both issues should be fixed as of preactjs-templates/typescript#74 |
Just tried it and it works like a charm, thank you @rschristian! |
Yay! Thanks so much for tracking those issues down! |
What is the current behaviour?
Linter failing to run.
Steps to Reproduce
Steps to reproduce the behavior:
npx preact-cli create typescript myproject cd myproject npm i npm run lint
I'm getting:
But then, running "eslint ." gives another error:
Both installing the latest
eslint-plugin-jest
or version 25.7.0 (which is the one I got inside eslint-config-preact) fail because of dependency conflicts.Thanks for your help!
Please mention any other relevant information
The text was updated successfully, but these errors were encountered: