Closed JeffreyArts closed 6 years ago
Hi, I'm glad to hear you find this useful. It's a bit of a work in progress still:eslintrc
files aren't being picked up right now, it's just a minimal set of eslint
rules to flag things that are likely to produce errors, and they are hard-coded in. But yes I've seen this error and might have to disable eslint until I find time to trace it. I'll see if I can make a patch release in the next day or so to either sort it or suppress it.
I am not sure if I understood your message correctly.
Are you saying that the error caused by a set of (hard-coded) eslint rules?
I have been using this skeleton for angular set-ups which also uses es linting and looks very similar as far as I can tell. Maybe this could give you some insights in helping resolving the issue?
Yes, the rules are hard-coded right now, just a very reduced set taken from those that eslint recommends as "errors" i.e. "things that are probably typos and will cause your code to fail". Nothing opinionated in terms of coding style. My intention is to allow either an eslintrc
file or an eslintRules
option in a pennyrc
file, which would override those rules. However this is not yet implemented.
Okay... But my problem is not that I can not use a custom lint file. My problem is that instead of the compiler logging the error (which is what the linter is supposed to do). The compiler just crashes.
Yeah I know. It's something wrong with the way I've configured it I think. I'll cut it out for now probably. If you can isolate an example of a JS file that causes this crash though, that would be helpful.
Happened all the time when I make a compilation error. Like redeclaring a constant or forgetting to place a closing bracket for an object
Op 13 mrt. 2018 23:14 schreef "Lu Nelson" notifications@github.com:
Yeah I know. It's something wrong with the way I've configured it I think. I'll cut it out for now probably. If you can isolate an example of a JS file that causes this crash though, that would be helpful.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lunelson/penny/issues/15#issuecomment-372837090, or mute the thread https://github.com/notifications/unsubscribe-auth/AFO31M0W6X63K0neLp1zZ5cC2Ram8U9rks5teES_gaJpZM4SpaGx .
I published 0.8.1 to npm, with the formatter
option in eslint disabled, which seems to fix it. It still gets some weird errors but it doesn't crash and eslint warnings come through, even if formatting is not very good right now
I've just published 1.0.0
of this package with fixes to eslint usage, that should cover the errors you were having. The eslint config is not customizable yet but covers errors and import failures. This version also corrects some webpack compiling problems
Hi,
Just starting experimenting with this repo which I saw you mention in some harpjs issue. Really like it so far, since it has that what I am looking for in a new project for experiments (just sass, es6 support & an HTTP server). But every time an error occurs in the js. The server crashes. Which I then need to restart manually. How can I resolve this?
Error occurs both when I have .eslintrc.json file or without it.