Commit Graph

23 Commits

Author SHA1 Message Date
Tomek Wiszniewski
875d2ad05e Add esnext to the jsHint configuration
This way we'll allow ES6 syntax.
2015-04-28 21:28:05 -07:00
Nikita Gusakov
15c947b48b Allow dot-notation keywords in eslint
ES6 gives us promises, which have `.catch` method. Other Promise implementation also uses `try` and `finally` methods, which are also reserved keywords ([bluebird](https://github.com/petkaantonov/bluebird/blob/master/API.md)).
2015-04-25 18:24:58 +03:00
Harrison Shoff
91d56b6874 [eslint] fix whitespace, silence underscore dangle 2015-04-19 15:34:51 -07:00
Harrison Shoff
b694fedccd [linters] update .eslintrc 2015-04-18 17:58:26 -07:00
Rob Loach
87ea8909d8 fix(one-var): Add one-var setting from @nkbt 2015-04-05 23:04:13 -04:00
Rob Loach
3058e38d01 fix(eslint): Remove amd and jquery from env 2015-04-02 12:36:42 -04:00
Rob Loach
dbbdec3f29 feat(eslint): Add ESLint linting support 2015-04-01 17:39:32 -04:00
Mark Storus
697aa00da0 jshintrc cleanup
- eqnull is a relaxing option, not an enforcing option
- trailing has been removed as of jshint 2.5
- put in alphabetical order
2014-07-29 16:09:54 -07:00
Spike Brehm
b65dd90ea5 Add .jshintrc
This adds a `.jshintrc` to the `linters/` directory. I just copied over
the settings from the `SublimeLinter` file, de-nesting the JSON object
by one level.

It means we'll have to maintain both files, but it's good to have a
basic `.jshintrc` for those of us that aren't using JSHint through
Sublime Text.
2013-12-26 19:00:21 -08:00
vahan-hartooni
d5db0a2f45 Enforce 'use strict'
As stated in the [Modules section](https://github.com/airbnb/javascript#modules), `'use strict'` needs to be declared at the top of a module

[JSHint has an option](http://www.jshint.com/docs/options/#strict) for something like this by enforcing the declaration of the statement at the top function scope.
2013-12-17 13:07:59 -08:00
vahan-hartooni
898b46dc15 Update SublimeLinter.sublime-settings
The Airbnb guide states: "Strings longer than 80 characters should be written across multiple lines using string concatenation."

I propose to add the maxlen option to enforce this rule: http://www.jshint.com/docs/options/#maxlen

However maxlen enforces the entire source code, not just a line of String. I would like to hear your thoughts on whether that is a beneficial enforcement to keep JS code at a set width.
2013-12-02 10:46:34 -08:00
Ross Allen
6eed6bd96f Bump minor version for addition of single quotes setting 2012-11-13 16:05:12 -08:00
Ross Allen
e6ab9cec90 Add single quote enforcement setting 2012-11-13 16:05:01 -08:00
Ross Allen
cfa916e10a Remove unnecessary articles from setting descriptions 2012-11-13 16:04:10 -08:00
Harrison Shoff
4400753ac1 Merge pull request #11 from airbnb/sublime-linter-updates
SublimeLinter updates
2012-11-05 13:38:13 -08:00
Spike Brehm
edcc2c33e7 Define globals exposed by Node.js 2012-11-05 12:37:47 -08:00
Ross Allen
c4ee2eb3c3 Increment minor version to include 'camelcase' settings and comment updates 2012-11-05 12:19:26 -08:00
Ross Allen
859164d18e Remove references to third-person 'you', it sounds weird 2012-11-05 12:18:48 -08:00
Ross Allen
9c4f415c40 Use the imperative mood in comments, 'Prohibit' instead of 'Prohibits' 2012-11-05 12:18:48 -08:00
Ross Allen
9ae773e5c2 Enforce camelCase or UPPER_CASE for all variable names 2012-11-05 11:57:58 -08:00
Ross Allen
db5cd7c091 Increment fix version for typo update 2012-11-05 11:50:05 -08:00
Ross Allen
280164a995 Remove extra 'for' in SublimeLinter settings comment 2012-11-05 11:49:57 -08:00
Ross Allen
46d19c2fc3 Move SublimeLinter settings to a subdirectory of the same name to keep things clean 2012-11-05 09:37:45 -08:00