Thomas Rix
71932e1eed
[eslint config] Turn ignorePureComponent option on for react/prefer-stateless-function
...
Otherwise, there is no way to write pure components that don't use state, refs, or lifecycle methods.
Stateless functions are not treated internally as pure components, and are rerendered every time.
2017-04-20 16:51:02 -04:00
Joe Lencioni
07d37db67a
Merge pull request #1370 from hanzhijue/patch-1
...
Fix the example of "propTypes"
2017-04-12 07:17:10 -07:00
Kaka
2c0da30904
Fix the example of "propTypes"
...
This example makes me confused. I guess it missed the use of "children" of good code.
Is the example to explain that you should specify default values for non-required props?
Thanks
2017-04-12 16:43:12 +08:00
Jordan Harband
54be49ab7d
Merge pull request #1368 from bl00mber/master
...
[docs] translation links sorted and updated
2017-04-11 14:26:03 -07:00
Nikita
462ea7dd0a
translation links in react guide updated
2017-04-12 02:05:40 +05: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
Jordan Harband
e43bdd98d5
[eslint config] [base] v11.1.3
eslint-config-airbnb-base-v11.1.3
2017-04-03 15:44:14 -07:00
Jordan Harband
74071a809c
[eslint config] [base] [patch] add error messages to no-restricted-syntax
...
Fixes #1353 .
2017-04-03 15:23:00 -07:00
Jordan Harband
aa9bbf9f49
[eslint config] [base] [deps] update eslint
2017-04-03 15:22:34 -07:00
Jordan Harband
b8d8d6e56f
[eslint config] [deps] update eslint-config-airbnb-base, eslint, eslint-plugin-react
2017-03-25 21:32:09 -07:00
Jordan Harband
75d48c7570
[eslint config] [base] v11.1.2
eslint-config-airbnb-base-v11.1.2
2017-03-25 18:43:29 -07:00
Jordan Harband
ae1c919cd4
[eslint config] [base] [deps] update eslint
2017-03-25 18:40:06 -07:00
Jaden Dessureault
98f1b19d95
Indent blockquotes in markdown guides
...
This is required to make sure all code blocks have proper syntax highlighting
2017-03-22 19:55:14 -05: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
Jordan Harband
321fb271bd
[eslint config] [*] [deps] update eslint
2017-03-15 18:03:56 -07:00
Christian Bundy
34752644c3
[eslint config] [base] Add ignorePropertyModificationsFor
2017-03-15 14:27:08 +00:00
Jordan Harband
772bbb5b7d
[eslint config] [base] [deps] update eslint
2017-03-03 15:08:41 -08:00
Jordan Harband
f9aff60f53
[eslint config] [deps] update eslint, eslint-config-airbnb-base
2017-03-03 14:14:46 -08:00
Jordan Harband
be0315eda1
[eslint config] [base] v11.1.1
eslint-config-airbnb-base-v11.1.1
2017-03-03 13:35:36 -08:00
Jordan Harband
1f5999b2ed
[eslint config] [base] [deps] update eslint
...
- fill out options in `no-use-before-define`
- enable `ignoreRestSiblings` in `no-unused-vars`
2017-03-03 13:33:24 -08: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
Raj Nigam
b153231867
Update renamed jsx-wrap-multilines
...
`react/wrap-multilines` has been renamed to `react/jsx-wrap-multilines`
2017-02-23 11:36:24 -05:00
Steve Mao
bc21501cc7
[eslint config] [base] [minor] add **/*.spec.js as a test files pattern
...
(see #1131 )
2017-02-23 14:13:39 +11:00
Adam Walsh
840d021d07
Add Honey to list of users
2017-02-22 10:08:38 -08:00
Jordan Harband
bbbabf32f8
[eslint config] [deps] update eslint-plugin-react
...
- semver-patch: `jsx-max-props-per-line` “when” set to “multiline”, but left off for now.
2017-02-19 16:59:00 -08:00
Joe Lencioni
7152396219
Merge pull request #1303 from airbnb/lencioni-patch-1
...
Add link to Mixins section in TOC
2017-02-14 11:44:19 -08:00
Joe Lencioni
d23b442799
Add link to Mixins section in TOC
...
I forgot this when I created the section.
2017-02-14 10:46:19 -08:00
Joe Lencioni
3bbbf6d498
Merge pull request #1302 from airbnb/mixins
...
Add guidance around not using mixins
2017-02-14 10:44:51 -08:00
Joe Lencioni
1841d2fb99
Add guidance around not using mixins
...
Mixins will hopefully be removed from React eventually. In the meantime,
we can avoid the damage they cause by not using them. Most of this was
borrowed from @gaearon's blog post "Mixins Considered Harmful".
https://facebook.github.io/react/blog/2016/07/13/mixins-considered-harmful.html
2017-02-14 10:31:45 -08:00
Josh Duck
8cab89e792
Add note to explain what a soft tab is
...
A quick Google search shows that the name "soft tab" causes some confusion. Added a brief clarification.
2017-02-14 10:44:25 +10:00
Sota Yamashita
c29e615be4
[inthewild] remove deleted repositories
2017-02-12 12:13:35 +09:00
nprescott
ec42fbecbf
[guide] README update for JSCS deprecated links
2017-01-22 11:11:08 -05:00
Jordan Harband
2c390ecea9
[eslint config] [breaking] update eslint-plugin-jsx-a11y to v4, enable new rules
2017-02-05 14:00:41 -08:00
Colin Hamer
6435f8ff23
[inthewild] Adds CaseNine
2017-02-09 10:16:00 +01:00
Jordan Harband
7e35c2dbfc
[eslint config] v14.1.0
eslint-config-airbnb-v14.1.0
2017-02-05 13:07:53 -08:00
Jordan Harband
a8ecaa8a5a
[eslint config] [deps] [patch] allow eslint-plugin-jsx-a11y to be v3 or v4. Remove no-marquee rule temporarily.
2017-02-05 10:50:34 -08:00
Jordan Harband
de5cd510b8
[eslint config] [deps] update eslint-config-airbnb-base, babel-preset-airbnb, eslint
2017-02-05 10:43:32 -08:00
Jordan Harband
b6fc6dc7c3
[eslint config] [base] v11.1.0
eslint-config-airbnb-base-v11.1.0
2017-02-05 10:31:04 -08:00
Jordan Harband
a8d2f94884
[eslint config] [base] update eslint, babel-preset-airbnb
2017-02-05 10:28:13 -08:00
Eric Martin
4d024be5a4
[guide] Added documentation for arrow function parens with one arg
...
Added explanation for using parentheses with explicit returns and alternatives with the eslint "always" option.
2017-02-02 19:13:13 -05:00
Robin Pokorný
9375fb59b3
[guide] Use const when not reassigning reference
2017-02-02 13:31:10 +01:00
Florian Berger
e22f02cda3
Update React link in organizations
2017-02-01 19:22:34 +02:00
Florian Berger
897b8fcc1c
Change function order in functions (7.1) example
...
Part 7.1 says first why function declarations are not good and
after that it recommends to give a name to function expression.
The same order could be used in example too.
2017-02-01 18:34:02 +02:00
Jordan Harband
d0fb7635bc
[eslint config] [base] enable no-multi-assign
2017-01-20 13:45:50 -08:00