Andreas Brekken
5695dc12df
Make eslintrc dependencies copy-pasteable
2015-09-04 09:35:23 -07:00
Tomek Wiszniewski
d874a94a0a
Mention eslint-config-airbnb
...
Actually, if we want to make the thing more convenient, we could go as far as saying: “
Before using our `.eslintrc` install these dependencies:
```sh
npm install --save-dev eslint-config-airbnb eslint babel-eslint eslint-plugin-react
```
”. I want to leave the decision up to you though.
2015-08-05 19:45:08 +02:00
Jake Teton-Landis
dbbf71bd71
eslintrc extends eslint-config-airbnb
2015-07-30 15:08:47 -07:00
Jake Teton-Landis
2f55be7cc3
[eslint] move .eslintrc into packages/eslint-config-airbnb
2015-07-30 14:47:42 -07:00
Jake Teton-Landis
1b212cf5b9
Merge pull request #431 from pascalduez/pr__update_eslint_config
...
Update ESlint deprecated rules
2015-07-30 14:12:39 -07:00
Tomek Wiszniewski
3c260d8e8a
Get rid of no-reserved-keys in the .eslintrc
...
After all [point 8.2](https://github.com/airbnb/javascript/tree/63bece1#3.2 ) allows them in an ES 2015+ environment.
2015-07-29 20:32:19 +02:00
Pascal Duez
2af7a5607e
Update deprecatd rules
...
- no-wrap-func -> no-extra-parens
- spaced-line-comment -> spaced-comment
2015-07-20 12:05:58 +02:00
Vladimir Starkov
ac8ff6539f
add constructor
...
See details here http://babeljs.io/blog/2015/06/07/react-on-es6-plus/
2015-07-16 12:34:25 +02:00
Deniz Ozger
232054a26f
Fixed a typo on README
2015-07-08 10:23:16 +01:00
Frederick Silva
8370c03902
fixed additional trailing comma - close #393
2015-07-06 15:13:47 -03:00
Marco Bettiolo
383b6a67cf
Added links to JSX plugin's documentation and some links to env documentation and plugins repositories
2015-07-02 15:55:04 +01:00
Jake Teton-Landis
7b336c737e
Merge pull request #382 from framini/patch-2
...
Fix doc url and typo
2015-07-01 13:44:19 -07:00
Francisco Ramini
7b64a9dc1c
fix doc url and little typo
2015-07-01 17:27:20 -03:00
Nikita Gusakov
b020a431b0
Added "prefer-const" rule
...
Added new ES6 rule, introduced in eslint 0.23.0
> This rule is aimed to flag variables that are declared using let keyword, but never modified after initial assignment.
2015-06-25 16:31:27 +03:00
Chris Portela
fe42d0bfa3
Made single quotes to double quotes
2015-06-24 16:02:21 -04:00
Chris Portela
e9b59b76a5
Update .eslintrc with other react class properties
...
In `eslint-plugin-react`'s page on their sorting rules they show the order I showed here. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md#rule-options
I noticed because according to the current rules `contextTypes` goes below `render` and I also noticed other methods were missing from the list. Since we're being specific we should also include the other methods and properties that `eslint-plugin-react` handles by default.
2015-06-24 15:51:25 -04:00
Baraa Hamodi
a6796f0098
Update .eslintrc
...
Just a consistency thing. :)
2015-05-27 23:58:29 -07:00
Jake Teton-Landis
f87ddc012f
add README describing eslintrc requirements
2015-05-18 12:02:48 -07:00
Jake Teton-Landis
20c4d37b33
add eslint rules for JSX style from issue #345
2015-05-18 11:55:36 -07:00
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