-
Notifications
You must be signed in to change notification settings - Fork 0
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
JSLint browser: true
is enabled more often than expected
#12770
Comments
Related: we need to put We haven't put this option explicitly in every JS file (normally it's the default in JSLint, so we had no need before), so even with this bug fixed we'll still want |
I put up PR #8658 to address the comment above. The bug itself remains. |
I still agree with the original rationale that Brackets is used primarily for browser projects and it's better to default to |
The issue for me is the inconsistency: if you add |
Ahh, yeah. That's the problem with object values for preferences (with the current implementation). They are a strict replacement. Settings within a file's |
I think in your earlier comment you proposed having our JSLint extension sniff the text of the document looking for |
Yeah, the fix is definitely scanning the text for |
Tuesday Aug 05, 2014 at 06:53 GMT
Originally opened as adobe/brackets#8657
Sprint 37 (834c4e9d) added a feature that forces the JSLint
browser: true
option on if no other environment setting was specified. However, it only looks at project-level preferences and ignores the JSLint directive in the file being linted:Make a new project (or open something without any special prefs, like Getting Started)
Create a new JS file with this content:
Let JSLint run
Result: No JSLint errors
Expected: One JSLint error: "'window was used before it was defined"
Workaround: create a .brackets.json file in the root of the project with
"jslint.options": { "node": true }
in it.The text was updated successfully, but these errors were encountered: