当前位置: 动力学知识库 > 问答 > 编程问答 >

What is the proper way to get Cloud9 to read lint config files (.jshintrc or .eslintrc)?

问题描述:

I am a new Cloud9 (c9.io) user and I spent the morning searching the web, but cant seem to find an answer on what needs to be done for Cloud9 to recognize me lint config files. They are currently in my workspace/project root, but none of the rules (like, 80 character line max, etc...) are being enforced by the editor. It seems to do some basic linting that I have limited control over... but for javascript development I really need more for my team.

Thanks,

Eric

网友答案:

Currently the Cloud9 IDE uses ESLint for linting purposes within the editor, but doesn't read configuration from .eslintrc files within the project yet.

网友答案:

There should be .eslintrc parsing support by now in c9 given this patch: https://github.com/c9/c9.ide.language.javascript.eslint/commit/c77d2241d140512b9f807d597e0ccca70bbd8a20

网友答案:

On Cloud9 hosted workspaces, .jslintrc is working. I have just added my own rules after reading this post and it was working well.

It seems to be sufficient to set the rules, that should be changed from the default linting configuration in c9.

网友答案:

Wanted to make a comment to answer above, but too low on reputation :(

Seems like eslint config in package.json files (using eslintConfig field) is not handled (yet).

分享给朋友:
您可能感兴趣的文章:
随机阅读: