-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support eslint plugins / standard style #5
Comments
@neothemachine could you give me more info please. I don't know very good eslint. I have created an eslint.json like this: {
"plugins": [
"standard"
]
} and I have setted as configFiel with tern.java. I have none errors like yours "[ESLint]: Definition for rule 'standard/object-curly-even-spacing' ? |
Sorry this was not the full content. Please use this: https://github.com/feross/eslint-config-standard/blob/master/eslintrc.json |
@neothemachine I have add loadPlugins inside eslint coming from the ESLint cli-engine. Once the build https://opensagres.ci.cloudbees.com/job/tern.java/750/ is done. You will able to test it. You must install eslint-plugin-standard in a global or inside ternjs folder (see tern repository that you can find in Tern -> Development -> Repository) |
Cool, that works! I installed it with "npm install eslint-plugin-standard" inside the ternjs folder, though I guess a global install makes more sense since the folder will be different on each update and I would have to do it again. I tried the global install, but then in eclipse it didn't find it:
Not sure what's going on there or how I could debug that. Does a global install work for you? |
to be honnest with you I have not tested that. |
I use the eslint.json from https://github.com/feross/eslint-config-standard and when I run that in tern.java it outputs the error "[ESLint]: Definition for rule 'standard/object-curly-even-spacing' was not found" at the first code lint. This is problem because the eslint.json has this:
I'm not sure how this whole scenario can be supported but in the end I just want to use standard style. It would be quite cool if this could be directly integrated somehow since it is so popular. Like a dropdown of some common popular code styles.
The text was updated successfully, but these errors were encountered: