1985 Commits

Author SHA1 Message Date
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
Fernando Pasik
c43fc749c4 [eslint config] [docs] Remove TODO in prefer-reflect as it's deprecated 2017-06-13 22:06:55 +01:00
Jordan Harband
fd8cbec8e0 [guide] change straight quotes to curly quotes 2017-06-13 01:06:34 -07:00
Gustavo Isensee
1bbac74286 Updated "how to define propTypes..."
Imported from new prop-types module.
2017-06-13 00:59:43 -03:00
Radu Serbanescu
00c9e52aec [eslint config] [base] [minor] Balanced spacing for inline block comments
Fixes #1425.
2017-06-07 13:18:38 +03:00
Jordan Harband
721af5498f [Tests] on node v8 2017-06-03 23:39:24 -07:00
Jordan Harband
1a38734d63 [Tests] npm v4.6+ breaks in node < v1; npm 5+ breaks in node < v4 2017-06-03 23:38:22 -07:00
Jordan Harband
5ba31498fe Only apps should have lockfiles. 2017-06-03 23:37:13 -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
Joe Lencioni
ac6de2fdb8 Bump copyright year 2016 -> 2017 in license 2017-06-02 12:05:41 -07:00
Ken Powers
f3c9639abe [eslint config] [base] [patch] Allow jsx extensions for test files 2017-05-24 15:43:56 -04: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
Jordan Harband
44ca3c2b3a [eslint config] [deps] update eslint-plugin-jsx-a11y 2017-05-23 12:54:02 -07:00
Jordan Harband
f86aacae44 [eslint config] [fix] jsx should be enabled via parserOptions, not via a root ecmaFeatures.
From https://github.com/airbnb/javascript/issues/1410#issuecomment-303368921
2017-05-23 12:53:26 -07:00
Siddharth Doshi
0dd3dbd7b6 [eslint config] [base] [breaking] Blacklist confusing globals 2017-05-20 15:41:37 +05:30
Vlad Shcherbin
324bf9c834 Fix option typo 2017-05-19 15:04:22 +03:00
Jordan Harband
8cabe49b94 [eslint config] v15.0.1 eslint-config-airbnb-v15.0.1 2017-05-15 17:54:47 -07:00
Billy Janitsch
fe65e4b649 [eslint config] [patch] Fix reported React version
Fixes #1414.
2017-05-15 12:39:37 -04:00
Jordan Harband
58e6cd323a [eslint config] v15.0.0 eslint-config-airbnb-v15.0.0 2017-05-14 17:05:45 -07:00
Jordan Harband
0449d9b571 [eslint config] [deps] update eslint-config-airbnb-base 2017-05-14 16:58:38 -07:00
Jordan Harband
d48083796c [eslint config] [base] v11.2.0 eslint-config-airbnb-base-v11.2.0 2017-05-14 16:53:50 -07:00
Siddharth Doshi
5bcb840abe [eslint config] [base] [minor] Disallow unused global variables 2017-05-12 01:08:33 +05:30
Jordan Harband
655886fc87 [eslint config] [deps] update eslint-plugin-react 2017-05-13 14:12:21 -07:00
Jordan Harband
152eaa6669 [guide] [react] Update React README ref to jsx-a11y/jsx-space-before-closing 2017-05-09 10:39:35 -07:00
Trevor Sayre
2f912c1dd3 [guide] [react] Update React README ref to jsx-a11y/img-has-alt
https://github.com/evcohen/eslint-plugin-jsx-a11y/pull/220
2017-05-09 13:12:09 -04:00
Jordan Harband
18e5ac9a8c [eslint config] [deps] update eslint-plugin-jsx-a11y 2017-05-09 10:30:16 -07:00
Jordan Harband
d469bb25c1 [eslint config] [deps] [breaking] update eslint-plugin-react
- enable `react/no-will-update-set-state`
 - delete removed rules
 - `jsx-wrap-multilines`: enable `arrow` option
 - `jsx-first-prop-new-line`: change to `multiline-multiprop`
 - disable `jsx-space-before-closing` in favor of `jsx-tag-spacing`
2017-05-05 23:52:17 -07:00
Jordan Harband
01e3977597 [eslint config] [breaking] enable rules:
- `no-autofocus`: enable `ignoreNonDOM`
 - add options to `no-static-element-interactions`

 - remove `onclick-has-role`

 - add `alt-text` (replaces `img-has-alt`)
 - add `interactive-supports-focus` (replaces `onclick-has-focus`)

 - add `no-noninteractive-element-interactions`
 - add `media-has-caption`
 - add `no-interactive-element-to-noninteractive-role`
 - add `no-noninteractive-element-to-interactive-role`
 - add `no-noninteractive-tabindex`
2017-05-05 12:34:00 -07:00
Jordan Harband
121a95d715 [eslint config] [deps] [breaking] update eslint-plugin-jsx-a11y 2017-05-05 12:16:58 -07:00
Thomas Grainger
f878edad25 [eslint config] [base] [patch] also disallow padding in classes and switches 2017-05-05 11:42:43 +01:00
Jordan Harband
5aa203eaa8 [eslint config] [base] [deps] [breaking] require eslint v4
- enable `function-paren-newline`, `for-direction`, `getter-return`, `no-compare-neg-zero`, `semi-style`, `object-curly-newline`, `no-buffer-constructor`, `no-restricted-globals`, `switch-colon-spacing`, `template-tag-spacing`, `prefer-promise-reject-errors`, `prefer-restructuring`
 - improve `indent`, `no-multi-spaces`, `no-trailing-spaces`, `no-underscore-dangle`
2017-09-01 22:25:31 -07: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
koooge
5dec8272e0 [eslint config] [base] [breaking] move comma-dangle to Stylistic Issues 2017-08-03 17:57:58 +02:00
Jordan Harband
7cef8dad84 [eslint config] [docs] add rule documentation to forbid-elements entry 2017-05-01 12:31:57 -07:00
Jordan Harband
ba35e31c76 [eslint config] [breaking] set default React version to 0.15 2017-05-01 12:22:41 -07:00
Jordan Harband
c9c5f7efbf [eslint config] [minor] enable rules:
- `jsx-max-props-per-line`
 - `void-dom-elements-no-children`
2017-05-01 12:22:24 -07:00
Jordan Harband
bfc85bddba [eslint config] [deps] update eslint-config-airbnb-base, eslint 2017-05-01 12:21:54 -07:00
thomas Bell
3ca86a4a3c added generation tux as in the wild 2017-05-03 14:16:32 -04:00
Vlad Shcherbin
b87cb5cdad [guide] [Fix] react/prefer-stateless-function "ignorePureComponents" option typo 2017-05-01 10:57:49 +03: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
Joe Lencioni
17917eedfb Merge pull request #1388 from airbnb/dubin-remove-simply-base
Remove "simply" from Readme in base
2017-04-25 10:51:08 -07:00
Jonathan Dubin
1997f8ee85 Remove "simply" from Readme in base 2017-04-25 10:47:50 -07:00
Joe Lencioni
c2d9fd7762 Merge pull request #1387 from airbnb/dubin-remove-simply
Remove "simply" from Readme
2017-04-25 10:41:48 -07:00
Jonathan Dubin
88a070cd0d Remove "simply" from Readme 2017-04-25 10:37:54 -07:00
Nicolas Jakob
7abd9a929c Add rollup.config.*.js to import/no-extraneous-dependencies ignore list 2017-04-24 16:24:54 +02:00