felipethome
f0b31960d3
[guide] Add eslint rules to function declaration and function constructor topics
2016-08-03 16:20:22 -03:00
felipethome
f94f6e21c6
[guide] Add eslint rule to spacing in a function signature topic
...
[guide] Add eslint rules to spacing in a function signature topic
2016-08-02 20:49:54 -03:00
Jordan Harband
6454839e76
[guide] Use var in reserved word examples, since they refer to untranspiled code.
2016-08-01 23:56:37 -07:00
Joe Lencioni
52a2da4182
Add curlies around ref function body
...
The example we have here uses an implicit return, which is forbidden
when assigning. This triggers the no-return-assign rule.
Fixes #980
2016-08-02 09:09:12 -07:00
Jordan Harband
9ffadff1fd
[eslint config] v10.0.0
eslint-config-airbnb-v10.0.0
2016-08-01 13:53:30 -07:00
Jordan Harband
a1edac348a
[eslint config] [*] add safe-publish-latest to prepublish
2016-08-01 14:05:32 -07:00
Jordan Harband
53b4173b04
[guide] [es5] Remove ES5 guide and mark it deprecated.
...
Fixes #941 .
2016-07-06 18:13:13 -07:00
Jordan Harband
b4d8543f12
[eslint config] [react] [breaking] enable jsx-a11y rules:
...
- `jsx-a11y/heading-has-content`
- `jsx-a11y/html-has-lang`
- `jsx-a11y/lang`
- `jsx-a11y/no-marquee`
- `jsx-a11y/scope`
- `jsx-a11y/href-no-hash`
- `jsx-a11y/label-has-for`
es5-deprecated
2016-07-05 13:38:57 -07:00
Jordan Harband
a6da4bb5b2
[eslint config] [react] [breaking] enable aria rules:
...
- `jsx-a11y/aria-props`
- `jsx-a11y/aria-proptypes`
- `jsx-a11y/aria-unsupported-elements`
- `jsx-a11y/role-has-required-aria-props`
- `jsx-a11y/role-supports-aria-props`
2016-07-05 13:36:21 -07:00
Jordan Harband
6857f7af97
[eslint config] [react] [breaking] enable react rules:
...
- `react/jsx-filename-extension`
- `react/jsx-no-comment-textnodes`
- `react/jsx-no-target-blank`
- `react/require-extension`
- `react/no-render-return-value`
- `react/no-find-dom-node`
- `react/no-deprecated`
2016-07-05 13:20:39 -07:00
Jordan Harband
cb36ed90c3
[eslint config] [deps] [breaking] update eslint to v3, eslint-config-airbnb-base to v5, eslint-find-rules, eslint-plugin-import, eslint-plugin-jsx-a11y to v2, eslint-plugin-react to v6, tape.
...
- drop node < 4 support
2016-07-05 13:15:51 -07:00
Zane Mountcastle
75c961a43f
Change 'Brazilian' to 'Portuguese'
2016-08-01 10:41:15 +08:00
Jordan Harband
a533e2dd35
[eslint config] [base] v5.0.1
eslint-config-airbnb-base-v5.0.1
2016-07-29 17:32:24 -07:00
Jordan Harband
4425d3c76b
[eslint config] [base] [deps] update eslint to v3.2
2016-07-29 16:29:00 -07:00
Jordan Harband
49dfcc42de
[eslint config] [*] improve prepublish script
2016-07-29 16:29:50 -07:00
Jordan Harband
b2ea03ef2c
[eslint config] [base] [deps] update eslint-plugin-import
2016-07-29 08:14:10 -07:00
Joe Lencioni
4dbb2af7da
Improve React HOC example
...
I decided that `WrappedComponent` is clearer than `Component` here, so I
made the switch. I also realized that `WrappedComponent.name` might
still be undefined, so I added a fallback value of "Component".
2016-07-27 09:54:00 -07:00
Joe Lencioni
1917968acb
Add missing closing paren in HOC guideline
...
As pointed out by eagle-eyed @pepakriz.
2016-07-27 09:53:42 -07:00
James Glover
0165c13845
[eslint config] [*] [docs] Added subshell to usage commands and converted samples to the three backtick markdown syntax with language specifier for highlighting.
2016-07-27 20:18:11 +10:00
Joe Lencioni
4c8f78921f
Add guideline for displayName in higher-order components
...
This guideline will help us keep our higher-order components consistent
and easy to understand.
Fixes #968 .
2016-07-26 16:51:08 -07:00
Jordan Harband
eea5f0f5f5
[eslint config] [base] no-unused-expressions: flesh out options
...
Fixes #963 .
2016-07-25 12:39:31 -07:00
Jordan Harband
1fb300c6c7
[eslint config] [base] v5.0.0
eslint-config-airbnb-base-v5.0.0
2016-07-24 09:55:44 -07:00
Jordan Harband
616233c8b2
[eslint config] [base] [breaking] enable no-unexpected-multiline rule
2016-07-24 09:51:50 -07:00
Jordan Harband
bbfb9600dc
[eslint config] [*] [deps] update babel-tape-runner, add babel-preset-airbnb
2016-07-23 21:28:04 -07:00
Joe Lencioni
da3eb59b39
Merge pull request #961 from idugcoal/master
...
Change 'conjunctions' to 'contractions'
2016-07-23 12:55:46 -07:00
Doug Cole
892128366a
change 'conjunctions' to 'contractions'
2016-07-23 11:53:45 -07:00
Jordan Harband
9d598c3563
[eslint config] [base] [breaking] enable more overlooked rules:
...
- `no-void`
- `constructor-super`
- `prefer-spread`
- `no-new-require`
- `no-undef-init`
2016-07-22 15:40:00 -07:00
Jordan Harband
4921e03a7b
[eslint config] [base] [breaking] enable import/newline-after-import
...
Per https://github.com/benmosher/eslint-plugin-import/issues/386 / https://github.com/benmosher/eslint-plugin-import/issues/441
2016-07-14 21:27:37 -07:00
Jordan Harband
df8627d72f
[eslint config] [*] [tests] fix prepublish scripts.
2016-07-19 13:57:42 -07:00
Jordan Harband
3594ee94ac
[eslint config] [*] [docs] forgot “—save-dev” in 623dc44bb9
2016-07-19 10:33:29 -07:00
Jordan Harband
623dc44bb9
[eslint config] [*] [docs] update the peer dep install command to dynamically look up the right version numbers when installing peer deps.
...
Fixes #956 .
This command would be simpler if https://github.com/npm/npm/issues/11213 is ever implemented.
2016-07-19 10:31:40 -07:00
Jordan Harband
ca9c322790
[eslint config] [base] [breaking] enable overlooked rules:
...
- `linebreak-style`
- `new-parens`
- `no-continue`
- `no-lonely-if`
- `operator-assignment`
- `space-unary-ops`
- `dot-location`
- `no-extra-boolean-cast`
- `no-this-before-super`
- `require-yield`
- `no-path-concat`
- `no-label-var`
2016-07-14 22:00:07 -07:00
Jordan Harband
762177eb3b
[eslint config] [base] [deps] update eslint, eslint-find-rules, eslint-plugin-import
2016-07-18 14:27:26 -07:00
Jordan Harband
2504e0f85c
[eslint config] [base] Fleshing out defaults.
2016-07-14 21:40:05 -07:00
Jordan Harband
385fc9effe
Merge pull request #955 from ronal2do/master
...
Airbnb React/JSX Style Guide translation for PT-BR
2016-07-18 14:47:38 -07:00
Your NameRonaldo
723e12a87d
Airbnb React/JSX Style Guide translation for PT-BR
2016-07-18 18:20:32 -03:00
Your NameRonaldo
97da7b65c6
Airbnb React/JSX Style Guide translation for PT-br
2016-07-18 18:17:59 -03:00
Kenny Tran
abcc0c681e
Capitalize all comments in react.js
2016-07-15 11:14:22 -07:00
Jordan Harband
325f8ba72f
[eslint config] [base] v4.0.2
eslint-config-airbnb-base-v4.0.2
2016-07-14 22:33:27 -07:00
Jordan Harband
6039804cc3
[eslint config] [base] [fix] repair accidental comma-dangle change.
2016-07-14 22:28:38 -07:00
Jordan Harband
af594687be
[eslint config] [base] v4.0.1
eslint-config-airbnb-base-v4.0.1
2016-07-14 21:36:31 -07:00
Jordan Harband
5f02a6f98f
[eslint config] [base] [deps] update eslint-plugin-import
2016-07-14 21:36:07 -07:00
Jordan Harband
b352ec6a4a
[eslint config] [base] [fix] Prevent trailing commas in the legacy config.
...
Fixes #950 .
2016-07-11 23:37:51 -07:00
Jordan Harband
a9bfee01cd
[guide] Add link to eol-last rule.
...
Fixes #945 .
2016-07-09 09:10:50 -07:00
Luke Libraro
3ad2404974
Added link to Mozilla documentation on Function.bind
2016-07-07 15:46:40 -05:00
Cédric Malard
7fb8b03714
Document for-in restricted usage
...
https://github.com/airbnb/javascript/issues/851#issuecomment-213834028
2016-07-06 17:00:42 +02:00
Joe Lencioni
7816731d4d
Allow importing devDependencies in tests
...
This rule seems to be giving me errors for some places we have imported
devDependencies in our tests such as tape and eslint. This is actually
okay, so we just need to configure this rule to allow devDependencies
for tests.
While I was at it, I added some whitespace to improve readability and
reduce the likelihood of merge conflicts.
2016-07-05 10:11:18 -07:00
Jordan Harband
6db1af173c
[eslint config] [*] [Tests] stop testing < node 4.
2016-07-05 13:07:41 -07:00
Jordan Harband
339861022e
[eslint config] [base] v4.0.0
eslint-config-airbnb-base-v4.0.0
2016-07-02 08:56:05 -07:00
Jordan Harband
b3a02ae982
[eslint config] [breaking] [base] update eslint to v3
...
- drop support for node 4.
2016-07-02 08:54:05 -07:00