You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
So all the tests run and pass, except the jshint on the utility itself:
JSHint - helpers: helpers/utility-methods.js should pass jshint
✘ helpers/utility-methods.js should pass jshint.
helpers/utility-methods.js: line 6, col 45, Expected ',' and instead saw '='.
helpers/utility-methods.js: line 6, col 46, Expected an identifier and instead saw 'admin'.
helpers/utility-methods.js: line 6, col 61, Expected ',' and instead saw '='.
helpers/utility-methods.js: line 6, col 62, Expected an identifier and instead saw 'function' (a reserved word).
helpers/utility-methods.js: line 6, col 70, Expected ',' and instead saw '('.
helpers/utility-methods.js: line 6, col 71, Expected an identifier and instead saw ')'.
helpers/utility-methods.js: line 6, col 72, Expected ',' and instead saw '{'.
helpers/utility-methods.js: line 6, col 94, Expected ')' to match '(' from line 6 and instead saw '}'.
helpers/utility-methods.js: line 6, col 94, 'function closure expressions' is only available in Mozilla JavaScript extensions (use moz option).
helpers/utility-methods.js: line 6, col 96, Expected an identifier and instead saw '='.
helpers/utility-methods.js: line 6, col 97, Missing semicolon.
helpers/utility-methods.js: line 6, col 104, Label 'role' on admin statement.
helpers/utility-methods.js: line 6, col 113, Expected an assignment or function call and instead saw an expression.
helpers/utility-methods.js: line 6, col 119, Missing semicolon.
helpers/utility-methods.js: line 6, col 119, Expected '}' to match '{' from line 6 and instead saw ':'.
helpers/utility-methods.js: line 6, col 128, Missing name in function declaration.
helpers/utility-methods.js: line 6, col 132, Expected an identifier and instead saw ','.
helpers/utility-methods.js: line 6, col 132, Expected an assignment or function call and instead saw an expression.
helpers/utility-methods.js: line 6, col 133, Missing semicolon.
helpers/utility-methods.js: line 6, col 140, Label 'after' on function statement.
helpers/utility-methods.js: line 6, col 148, Missing name in function declaration.
helpers/utility-methods.js: line 6, col 152, Unrecoverable syntax error. (8% scanned).
So after using the babel repl, and pasting in its output new function as:
Firstly, if you update (rm -rf node_modules && npm cache clear && npm install) you should be able to use default args without an issue.
Secondly, you can disable JSHint for sections of code via comments. There is some documentation at http://jshint.com/docs/, but basically it looks like:
// Code here will be linted with JSHint./* jshint ignore:start */// Code here will be ignored by JSHint./* jshint ignore:end */
Hi,
Is it possible to turn off hinting for specific test files?
I am using a utility to help setup some tests and using es6 default args produces the following:
This is called in tests as follows:
So all the tests run and pass, except the jshint on the utility itself:
So after using the babel repl, and pasting in its output new function as:
All pass just fine.
Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: