M
M
Maxim Ivanov2016-10-22 01:41:27
Sublime Text
Maxim Ivanov, 2016-10-22 01:41:27

Why does JSHint swear?

Swears at such code

function setActive(state = 1, exception) {

}

They say you can not specify default values, although I set ES6
.jscshint
{
    "esversion"     : 6,         // {int} Specify the ECMAScript version to which the code must adhere.
}

Moreover, I cannot understand why he swears at such a returned object
6884154d7f564a34a64d81d8f5346b0f.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question