Victor Brouk
763416260a
[guide] fix broken deep link to 'testing--yup'
2016-04-19 15:46:29 -07:00
Jordan Harband
52d3401f95
[eslint config] [eslint config base] [breaking] Migrate non-React rules to a separate linter config.
2016-04-16 11:04:28 -07:00
Jordan Harband
fc1443b80f
[guide] add link on perf of array iteration methods
2016-04-16 09:54:28 -07:00
Jordan Harband
688ef3c2eb
[guide] remove AIIFE to avoid CallExpression quirk.
...
Fixes #828 .
2016-04-15 19:24:48 -07:00
Jordan Harband
56e6815a84
[guide] Attempt to clarify filename conventions
...
Fixes #817 .
2016-04-13 22:37:46 -07:00
Jordan Harband
92a66ccc7c
[guide] [breaking] Disallow leading underscores - there’s no such thing as “private properties”.
...
Per https://github.com/airbnb/javascript/issues/490#issuecomment-209126331
2016-04-12 15:27:09 -07:00
Brett Sanders
f5d6e9646c
[guide] Update eslint rule for keyword-spacing, small fix for consistency
2016-04-07 14:02:11 -07:00
Kevin Moot
6e770062bb
Adding The Nerdery to the "In the Wild" section
2016-04-04 19:07:35 -05:00
Peter Kuiper
a2bdbb83d1
Add KickorStick to 'In the Wild'
2016-04-04 14:20:17 +02:00
Amin
f21412cba9
Broken link to Classes and constructors
2016-04-04 11:39:47 +04:00
Jordan Harband
76e1e4c1de
[eslint config] [breaking] Add no-dupe-class-members rule + section.
...
Closes #785 .
2016-04-02 18:08:27 -07:00
Yarun Luon
5ec8765a28
Add Chartboost to 'In the Wild'
2016-03-31 18:17:26 -07:00
Saad Quadri
9415b88afd
Add missing description for 7.2
2016-03-30 03:27:55 -04:00
Jordan Harband
81241b83cf
[eslint config] [breaking] add no-useless-escape rule.
2016-03-26 23:11:23 -07:00
Jordan Harband
24565121c1
[eslint config] [breaking] add no-duplicate-imports rule.
2016-03-26 22:42:29 -07:00
Juan Scolari
ec898a67e0
Add SysGarage to list of organizations
2016-03-21 20:54:59 -03:00
Arnav Singh
8db205c4d2
Fix "object destructuring for multiple return values" example
...
... to use the same destructured properties in the good and bad code.
2016-03-20 22:40:07 -07:00
Jordan Harband
9eb24d6b61
[editorial] clean up some constructor examples
...
Fixes #792
2016-03-16 14:47:35 -07:00
Tim Daubenschütz
c38cdd2015
Add ascribe's styleguide to the list
2016-03-11 09:29:44 +01:00
Jason Bacchetta
2ff6c427b0
Update README.md
...
Add parentheses around argument, to be consistent with section 8.4
(include parentheses when using braces).
2016-03-09 19:14:00 -06:00
Jordan Harband
4709e644c0
[guide] Permanent links.
...
- Preserve the original links, because cool URLs don’t change.
2016-03-08 10:25:31 -08:00
Jordan Harband
9e87e1d13b
[guide] add some more justification for one-var and String() type coercions
2016-03-08 10:07:30 -08:00
giang pi
e7f5e0f336
Vietnamese language
2016-03-07 14:01:57 +07:00
Maks Sadowsky
8b6abf8cda
Update README: Document corresponding jscs rules
2016-03-06 22:12:14 +02:00
Jon Tejada
762b7510ab
fixed a broken link to REI's JS style guide
2016-03-03 15:21:53 -08:00
Marc-Antoine Duhaime
32e3e0f45a
Update README.md
...
Add colon to TODO and FIXME.
2016-03-02 09:42:02 -05:00
chief10
607ad012ee
change wording for 8.2 for consistency
2016-03-01 15:28:10 -06:00
Boris Besemer
7684892951
fixes tiny typo's on JSCS rules
2016-02-25 09:12:52 +01:00
David Bows
30c448d1df
Updated "In The Wild" to include Brainshark.
2016-02-23 12:54:20 -08:00
Felix Sanz
714f71d1d2
Added getter/setter info
...
I tried to search for getter/setter in the readme but nothing was found. Added some info to make a clear statement about them
2016-02-23 01:25:02 +01:00
NakShi
db8b07f51a
Fixed README typo
2016-02-22 15:39:53 -08:00
Cihan Bebek
50ff33de88
Small typo fix in 18.6 'bad'-example.
...
Function call 'class()' to 'classed()'.
2016-02-21 21:38:33 +02:00
Jordan Harband
8a6f00968d
Fix no-useless-constructor example.
...
Per https://github.com/airbnb/javascript/pull/730#discussion_r53565774
2016-02-21 10:28:54 -08:00
Harrison Shoff
3983d380ed
[eslint-v2][arrays] fix example
2016-02-20 23:39:29 -08:00
Harrison Shoff
b79e951280
[eslint-v2][arrays] update array-callback-return good/bad ex
2016-02-20 23:33:39 -08:00
Harrison Shoff
e0959d0f1d
[eslint-v2] fix rule links in readme
2016-02-14 19:04:12 -08:00
Harrison Shoff
65609373bf
[eslint-v2][template strings] add template-curly-spacing rule, fix #716
2016-02-14 18:56:49 -08:00
Harrison Shoff
1f12a12be4
[eslint-v2] fix empty constructor example
2016-02-14 18:48:31 -08:00
Harrison Shoff
e1a087fbb1
[eslint-v2] add prefer-rest-params
2016-02-14 18:45:44 -08:00
Harrison Shoff
e6cbcf4cc5
[eslint-v2][whitespace] add no-whitespace-before-property rule
2016-02-14 18:35:23 -08:00
Harrison Shoff
ba10353e9b
[eslint-v2][arrow functions] improve examples
2016-02-14 14:50:49 -08:00
Harrison Shoff
6a03a32915
[eslint-v2][arrow functions] add no-confusing-arrow rule
2016-02-14 14:47:23 -08:00
Harrison Shoff
172dffbb52
[eslint-v2][whitespace] add newline-per-chained-call rule
2016-02-14 11:48:04 -08:00
Harrison Shoff
fbd9c35dd3
[eslint-v2][arrays] add array-callback-return rule
2016-02-14 11:14:38 -08:00
Harrison Shoff
91b83650b0
[eslint-v2][constructors] fix bad + good examples
2016-02-14 02:34:47 -08:00
Harrison Shoff
1cbc628c49
[eslint-v2][constructors] disallow unnecessary constructors
2016-02-13 13:57:38 -08:00
Ray Sinlao
24e7fd0c14
Added parenthesis to 'good' example in 8.2
2016-02-04 00:00:58 -08:00
Jordan Harband
7e15ccf4cb
[eslint config] [breaking] disallow unneeded ternary expressions.
2016-02-03 17:25:00 -08:00
Joe Lencioni
4d74fe1f5a
Add example of a case clause that does not need a block
...
As @kesne and @ljharb pointed out, this section was unclear about
whether or not you should always include blocks for all case clauses. To
make things clearer, I am adding a case clause that does not need a
block to the good example.
We decided that we should only require blocks for case clauses that
actually need them because it matches the as-needed spirit of section
3.8 ("Only quote properties that are invalid identifiers"). Perhaps if
there was an as-needed but consistent setting for the ESLint rule, we
would consider revising this a little, but this seems good enough for
now.
2016-02-03 12:23:51 -08:00
Joe Lencioni
38d9b34b27
Avoid lexical declarations in case/default clauses
...
This commit adds guidance warning people to avoid lexical declarations
in case/default clauses and enables the corresponding ESLint rule.
http://eslint.org/docs/rules/no-case-declarations.html
We didn't have a section on switch statements yet, so I thought about
starting one. It seemed like it would best fit between section 15
(Comparison Operators & Equality) and section 16 (Blocks), but I didn't
want to mess up all of the following numberings, since people probably
have references to them. I considered adding this near the end to
minimize this effect, but it really seemed to belong near these other
things. I landed on appending it to Section 15 (Comparison Operators &
Equality) and I think it sorta fits there since switch statements are a
related concept.
2016-02-02 16:11:53 -08:00