Commit Graph

640 Commits

Author SHA1 Message Date
Sharmila
cd4ec29ed3 [eslint config] [base] Enables eslint rule for operator-linebreak
Requiring operators at the beginning of the line makes code more readable. When operators are on the left hand side they mirror the syntax of method chaining and it is easy to see the build of logic in a statement. This also updates the readme and fixes a style violation as a result of adding this rule in eslint-config-airbnb/test/test-base.js and eslint-config-airbnb-base/test/test-base.js.
2017-10-18 14:15:39 -07:00
Sharmila
f2a65c6898 Improves 'Why?' message 2017-10-18 13:41:24 -07:00
Sharmila
2ab0e61858 Updates Control Statements section to reflect eslint config change 2017-10-18 13:37:49 -07:00
Pirasis Leelatanon
9025c52a73 [doc] add eslint rule reference for prefer-destructuring 2017-10-16 21:18:48 +07:00
David Künnen
ac2ed5a749 Added our company to "In The Wild" 2017-10-12 13:30:18 +02:00
Leonid Lebedev
faedb67042 Add Amendments 2017-10-01 17:36:45 +03:00
Josh
2380c0ddb8 [guide] Improve severity of warning comment 2017-09-27 12:51:40 -07:00
Vladimir Kovpak
3ad1ad1a6a [guide] Updated example in ternaries. 2017-09-21 02:11:14 +03:00
Nikita Lebedev
e16b03b841 [guide] require array spread operator or Array.from
Fixes #1084.
2017-09-20 14:12:25 -07:00
Carlos Soria
0aab14c364 Add Grupo Abraxas to In The Wild section 2017-09-14 16:09:30 -05:00
Jordan Harband
5b338e1937 [Tests] lint our markdown 2017-09-02 11:33:45 -07:00
Jordan Harband
9dee84796b [Docs] add note about requiring babel-preset-airbnb and airbnb-browser-shims.
Fixes #1544.
2017-09-02 11:28:53 -07:00
Thomas Grainger
f878edad25 [eslint config] [base] [patch] also disallow padding in classes and switches 2017-05-05 11:42:43 +01:00
David Walsh
f5cd2869d3 [guide] [eslint config] [base] [breaking] Rules prohibiting global isNaN, isFinite.
- Update README with new Standard Library section.
2017-07-04 12:40:53 +10:00
Max Kaplan
09988e34b4 [inthewild] adding kaplan komputing 2017-08-20 09:24:03 -04:00
Anton Vasyunin
855426b3db Update section on naming conventions for acronyms
- Fix array name starting with a capital
- Add alternative good example
2017-08-18 00:05:21 +07:00
Wooram Jun
344c25d83a Fix a wrong link 2017-08-17 15:35:14 +09:00
Jared Deckard
b5e14dc5d0 Explain why default exports are preferred 2017-08-07 15:36:22 -05:00
marhub
dbdbde0b81 Remove polish translation
Remove link to polish translation as it's outdated ( last commit from 2-3 years ago ). 
For example in polish translation you can read that you should use one "var" keyword to declare your vars.
example:
```js
// źle ( bad )
var items = getItems();
var goSportsTeam = true;
var dragonball = 'z';

// dobrze ( good )
var items = getItems(),
    goSportsTeam = true,
    dragonball = 'z';
```
2017-08-07 12:48:54 +02:00
Chris Atkin
e4f35ac959 Removing "GitHub" from In The Wild reference
This removes the word "GitHub" from an In The Wild reference link, to prevent association with the main GitHub organisation.
2017-07-31 17:12:27 +01:00
Asher Dale
9393e6ab10 Update README, finished fixing eslint styling
Update README, finished fixing eslint styling (look at previous commit description for info).
2017-07-25 15:50:10 -04:00
Asher Dale
a371d73414 Update README, fixed badly-styled eslint links
There were links to eslint rules in a style that didn't match the style of the rest of the document. Specifically, most links in the document use the following style: "eslint: ['no-unneeded-ternary']", but there were badly styled links that looks like this: "eslint rule: ['no-unneeded-ternary']." Additionally, the badly styled links were on their own line, whereas all the other links are not placed on their own line.
2017-07-25 15:46:30 -04:00
Asher Dale
3cc6269c86 Updated README, deleted extra 'back to top'
There was an extra 'back to top' link in between sections 4.5 and 4.6 in the 'Arrays' section.
2017-07-20 11:21:29 -04:00
Tonni
18255d14d4 [guide] Add documentation for exponentiation operator (**). 2017-06-26 23:00:26 +08:00
Chris Atkin
cdc1c4fb76 [inthewild] Add Sainsbury's Supermarkets to the organizations list 2017-07-23 14:30:32 +01:00
Chaitanya Mutyala
6331c2c3e2 [guide] Typo fix on example 2017-07-12 10:43:11 -07:00
Valentina Pegler
22c97fa678 [inthewild] Add LEINWAND to the organizations list 2017-07-12 18:12:38 +02:00
Jason Ellis
4380284b05 [guide] Add missing close parenthesis and semicolon to section 8.2 2017-06-20 09:37:19 -05:00
Rahul Gandhi
0c9e22e039 [guide] replacing undefined with ReferenceError
Fixes #1457
2017-06-17 18:18:40 +05:30
Ben Schroeder
7bb8c9f905 [guide] Fix iterator code example error
The first "good" example was missing a closing bracket (line 1377).
2017-06-14 09:13:43 -04:00
Jordan Harband
cd4ec6245e [guide] change more straight quotes to curly quotes 2017-06-14 12:09:46 -07:00
Felipe Vargas
4499ee0094 [guide] No arrow function implicit return with side effects 2017-06-12 15:41:11 -07:00
Jordan Harband
fd8cbec8e0 [guide] change straight quotes to curly quotes 2017-06-13 01:06:34 -07:00
Daniel Axelrod
98f2224ec2 Add linting for Markdown prose
Codify existing practices for writing Markdown in style guides and
enforce them via Markdownlint. A new npm script "lint" in the top level
package.json runs before tests or as the first step of the "travis"
script.

Only modify documents in cases where they had bugs or isolated cases of
inconsistency:

README.md: 10: MD007 Unordered list indentation
Inconsistent with all other top level lists

README.md: 10: MD032 Lists should be surrounded by blank lines
Some Markdown parsers don't handle this correctly

README.md: 3156-3161: MD005 Inconsistent indentation for list items at
                      the same level
Bug, looks like it's intended to be another list level but GitHub
renders it at the same level as the "No but seriously"

README.md & css-in-javascript/README.md: throughout: MD012 Multiple
          consecutive blank lines

README.md: throughout: MD004 Unordered list style
Some nested lists used plusses, now everything consistently uses
dashes.
2017-06-02 17:10:16 +00:00
Daniel Axelrod
0f8f30dcd0 [6.5] Add no-eval eslint rule to docs
Add reference to the eslint `no-eval` rule to the README.

This rule is already set to `error` in best-practices.js in eslint-airbnb-config-base.
2017-05-24 01:13:26 +00:00
thomas Bell
3ca86a4a3c added generation tux as in the wild 2017-05-03 14:16:32 -04:00
Martin Veith
275d4bba98 Add "Control statements" section 2017-05-01 11:11:31 +02:00
Jordan Harband
ee6b23d862 [guide] remove remaining numbered links used as targets. 2017-04-30 21:19:58 -07:00
Denis Izmaylov
3fe99604e6 Add 'Axept' into 'In the Wild' section 2017-04-29 18:20:56 +03:00
Diego Teliz
83711e089a Add 'InterCity Group' on 'In the Wild' list 2017-04-27 15:03:28 +12:00
Nikita
cb027cd002 translation links sorted 2017-04-12 02:01:16 +05:00
Max Kaplan
fa0a82373e adding sourcetoad to users 2017-04-04 09:52:16 -04:00
Hugo
13dc420a9e Fix Gitter badge in README.md 2017-03-21 12:46:21 +11:00
JPeer264
5797f545d8 [guide] Add array-bracket-newline (close #1338) 2017-03-17 08:48:43 +01:00
Ivan Zusko
1a2edb9e9e Add ukrainian translation 2017-01-04 10:58:43 +02:00
David Cameron
c9490c698e [guide] Added 'let' to rule defs regarding variables 2017-03-03 14:44:34 -05:00
Tom Wrenn
93e91d3eb9 Add AltSchool to the "In The Wild" section of the README 2017-03-03 11:36:09 -08:00
Tihomir Opacic
5ad25766fb Added OHD to a list of style guide users. 2017-03-01 20:31:43 +01:00
Harrison Shoff
5ca6d46b7c [resources] add link to neutrino preset
https://neutrino.js.org/presets/neutrino-preset-airbnb-base/
2017-02-25 14:12:37 -08:00
Adam Walsh
840d021d07 Add Honey to list of users 2017-02-22 10:08:38 -08:00