-
Notifications
You must be signed in to change notification settings - Fork 510
requireDotNotation should ignore reserved words for es5 #161
Comments
What you purposes we do here? Are you satisfied with changes from #167? |
It is preparation work. |
@ikokostya now that #167 is done, and you mention it's preparation work, what is left to do to satisfy this bug? Right now, the only bug seems to be that in non-strict mode, a few false negatives get through. Is that correct? |
Now |
Similarly, I have "disallowQuotedKeysInObjects" set to "allButReserved", but when adding "requireDotNotation" set to "true", jscs complains about 'undefined' and 'arguments', both of which are reserved words in ES3. |
@ikokostya what you mean under environment? You mean executing checker in browser? |
@zxqfox Any javascript engine. |
@ikokostya @ljharb to summarize:
Does that sound good? |
If you want to have this sets please share them between rules and plugins. |
Sure, anything that lets me set the base of a project as |
Well, we now have |
Well, currently we have no way to share settings with rules except for their own option values. |
@mdevils, rules have access to JsFile which has getConfiguration. I suppose certain rules can access a function |
@mikesherov, |
@mikesherov, at least JS dialect information is suitable for |
@mdevils seems like we'd want to know es3/es5/es6 and possible also |
@mdevils @mikesherov 👍 I like this way |
requireDotNotation should ignore reserved words for ECMAScript 5:
http://www.ecma-international.org/ecma-262/5.1/#sec-11.2
http://www.ecma-international.org/ecma-262/5.1/#sec-7.6
But not for ECMAScript 3 (http://www.ecma-international.org/publications/standards/Ecma-262-arch.htm):
The text was updated successfully, but these errors were encountered: