-
Notifications
You must be signed in to change notification settings - Fork 0
run jslint/jshint/eslint on submitted source code #20
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
Comments
for modern JS code, I recommend ESlint: http://eslint.org/ Original comment by @bmesuere on Thu Apr 27 2017 at 10:45. |
discussion on stackoverflow that also mentions bart's recommendation Original comment by @pdawyndt on Thu Apr 27 2017 at 15:34. |
ESLint support has been added to the JavaScript judge. This requires the ESLint API to be available in the runtime environment. @dmouriss @ninewise Could any one install the ESLint API in the JavaScript docker. This should do it:
To check successful installation, you can execute the following JavaScript statement var linter = require("eslint").linter; Original comment by @pdawyndt on Sat Apr 29 2017 at 12:14. |
ESLint might need some tweeking in the future, since it's rules are heavily configurable. See "Configuring ESLint" for more information about the configuration of ESLint. See Rules for a complete overview of all ESLint rules. The configuration settings for ESLint are in the JSON file Original comment by @pdawyndt on Sat Apr 29 2017 at 12:17. |
Support for linting (based on ESLint) has been implemented. Awaits installation of the ESLint API in the JavaScript docker before being deployed. Original comment by @pdawyndt on Sat Apr 29 2017 at 14:04. |
Eslint has been installed through npm in the docker, however it is possible an init script needs to be executed before it can be used. I will have to look into that. Original comment by @dmouriss on Tue May 02 2017 at 16:20. |
The javascript statement to test the linter seems to work Original comment by @dmouriss on Tue May 02 2017 at 16:23. |
See ESLint documentation for the specs on the message object that reports on an issue with the code. Here's a sample message object:
From the ESLint documentation: The message object
Please note: the Note: the Original comment by @pdawyndt on Thu May 04 2017 at 15:51. |
Report on an evaluation of jslint/jshint of the submitted source code.
Original issue by @pdawyndt on Wed Apr 26 2017 at 22:12.
The text was updated successfully, but these errors were encountered: