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
prefer-to-have-style: Cannot read property 'range' of undefined #97
Comments
@all-contributors please add @AriPerkkio for bugs |
I've put up a pull request to add @AriPerkkio! 🎉 |
@AriPerkkio eslint-remote-tester looks like a very cool tool, is that something that can be can run as part of CI on this project? |
Thanks for the interest @benmonro. It definitely can be used as part of CI workflow! ESLint plugin projects like this could use it for smoke test step. On every pull request the CI could run the rules against 30-50 repositories and verify no crashes are encountered. Depending on the CI resources this should take about 30 mins. If you want there could also be a scheduled job checking stability against 100's of repositories once a week or month. I've been running this tool on github CI with plenty of plugins against + 150 repositories and each run takes about 3h30m. https://github.com/AriPerkkio/eslint-remote-tester/actions?query=workflow%3A%22Lint+remote+typescript%22 I can help setting this up later this week. I'll prepare PR with more info. |
That's fantastic. Yeah once a week sounds great. Can it just automatically create GitHub issues if it finds a problem during the weekly run? |
That's great idea but this is not supported out-of-the-box. Although I've been thinking about exposing the final results via I would imagine something like below could work: onLintComplete: async function(results) {
// Parse results and create issues to Github with some client Maybe this Github integration functionality could eventually be provided by the package itself. |
Hello, I'm testing stability of well known community ESlint plugins with
eslint-remote-tester
. This ESLint plugin seems to contain a rule which causes linter to crash. ESlint rules should not crash in any condition since this makes all valid linting problems disappear. If this is a false flag please let me know.eslint-plugin-jest-dom
version: 3.2.4node
version: v14.15.1npm
version: 6.14.8Relevant code or config
What you did:
What happened:
Reproduction repository:
eslint-remote-tester-results/FormidableLabs_spectacle.md
Rule: prefer-to-have-style
Cannot read property 'range' of undefined Occurred while linting <text>:34
FormidableLabs/spectacle/src/components/deck/deck.test.js
Problem description:
ESLint rule should not crash in any condition.
Suggested solution:
Add cases mentioned in this issue as unit tests. In ESLint rule check node attributes for falsy before accessing them.
While I was setting up the minimal case above I came across two more crashing cases:
The text was updated successfully, but these errors were encountered: