an innocent file like this:
Will fail eslint with this error:
ES6 methods not allowed: values es5/no-es6-methods
This is my .eslintrc file:
{
"extends": [
"plugin:es5/no-es2015"
]
}
In short, I think there's no easy way to tell if x (in the example above) is an array or something that really does have .values() - so I propose that we drop these rules... WDYT?
an innocent file like this:
Will fail eslint with this error:
This is my
.eslintrcfile:{ "extends": [ "plugin:es5/no-es2015" ] }In short, I think there's no easy way to tell if
x(in the example above) is an array or something that really does have.values()- so I propose that we drop these rules... WDYT?