Jordan Harband
0dae56a8e1
[eslint config] [patch] disable deprecated and redundant react/require-extension rule
...
Fixes #978 .
2016-09-24 14:34:52 -07:00
Jordan Harband
0faabe054d
[eslint config] [breaking] [deps] update eslint-config-airbnb-base
2016-09-24 14:30:57 -07:00
Jordan Harband
0157e69a0d
[eslint config] [base] v8.0.0
eslint-config-airbnb-base-v8.0.0
2016-09-24 12:31:53 -07:00
Jordan Harband
f6dab799b8
[eslint config] [base] [breaking] enable rules:
...
- `no-restricted-properties`
- `prefer-numeric-literals`
- `lines-around-directive`
- `import/extensions`
- `import/no-absolute-path`
- `import/no-dynamic-require`
2016-09-24 12:30:58 -07:00
Jordan Harband
173cba3cc6
[eslint config] v11.2.0
eslint-config-airbnb-v11.2.0
2016-09-23 22:45:47 -07:00
Jordan Harband
62cac3eea1
[eslint config] [deps] update eslint-config-airbnb-base
2016-09-23 22:42:53 -07:00
Jordan Harband
ec2c4393d2
[eslint config] [base] v7.2.0
eslint-config-airbnb-base-v7.2.0
2016-09-23 16:00:11 -07:00
Jordan Harband
e8b51b2785
[eslint config] [*] [new] set ecmaVersion to 2017; enable object rest/spread; update babel-preset-airbnb
2016-09-21 17:17:27 -07:00
Jordan Harband
e5f4eb57b4
[eslint config] [*] [deps] update eslint-plugin-import, eslint to 3.6
2016-09-23 15:29:36 -07:00
Jordan Harband
4c598664fb
[eslint config] [deps] update eslint-plugin-react
2016-09-20 00:13:37 -07:00
Jordan Harband
386a7b1d15
[eslint config] [*] [deps] update eslint-find-rules, safe-publish-latest
2016-09-20 00:03:30 -07:00
Joe Lencioni
53f67f8a47
Merge pull request #1083 from airbnb/react-props
...
Add rule to avoid misusing DOM component prop names
2016-09-19 11:52:12 -07:00
Joe Lencioni
a599bca474
Add rule to avoid misusing DOM component prop names
...
People expect props like `style` and `className` to mean one specific
thing. Varying this API for a subset of your app makes the code less
readable and less maintainable, and may cause bugs.
2016-09-19 11:42:12 -07:00
Jordan Harband
a86d546c61
[Docs] remove yet another wrapped-string "good" example
2016-09-16 16:12:06 -07:00
Kazuki Yamada
11b9adff01
Fix japanese translation link
2016-09-16 02:39:35 +09:00
Jordan Harband
a2a35a8dba
[eslint config] [deps] update eslint-plugin-jsx-a11y, eslint-plugin-react
2016-09-14 12:55:24 -07:00
Jordan Harband
286b01c675
[eslint config] [*] [deps] update eslint-plugin-import
2016-09-14 12:54:45 -07:00
Harrison Shoff
bd5505b727
[commas] fix traling comma link
2016-09-14 09:42:44 -07:00
Jordan Harband
e9141f4630
[eslint config] [base] [patch] fix category of no-restricted-properties
...
Per https://github.com/eslint/eslint/issues/7112 / https://github.com/eslint/eslint/issues/7118
2016-09-12 11:02:12 -07:00
Guillaume Verbal
6cdda0737e
[guide] Fix typo from #1058
2016-09-12 19:08:10 +08:00
Alexey Raspopov
2a28b9c82f
move #variables--unary-increment-decrement to correct section
2016-09-12 10:06:15 +03:00
Guillaume Verbal
7da28d43ad
[Docs] update 8.3 to fix conflict with 6.2 ( fixes #1058 )
2016-09-12 12:18:59 +08:00
Jordan Harband
e59376f625
[eslint config] v11.1.0
eslint-config-airbnb-v11.1.0
2016-09-11 15:51:58 -07:00
Jordan Harband
3fc37b3a26
[eslint config] [deps] update eslint-config-airbnb-base, eslint
2016-09-11 15:05:43 -07:00
Jordan Harband
715dea6598
[eslint config] [base] v7.1.0
eslint-config-airbnb-base-v7.1.0
2016-09-11 14:06:19 -07:00
Jordan Harband
6a72781121
[eslint config] [base] [minor] enable arrow-parens rule
...
This will cause new failures for some, but only for those not following our style guide already - hence, it’s not semver-major.
2016-09-11 13:20:17 -07:00
Jordan Harband
dbdd56ccb5
[eslint config] [base] v7.0.1
eslint-config-airbnb-base-v7.0.1
2016-09-10 14:35:57 -07:00
Jordan Harband
38f679e9f9
[eslint config] [base] [patch] loosen max-len by ignoring strings
...
Per https://github.com/eslint/eslint/pull/7049 / https://github.com/eslint/eslint/issues/5805
2016-09-10 14:29:35 -07:00
Jordan Harband
7412641af9
[eslint config] [base] [deps] update to eslint v3.5.0.
2016-09-10 14:28:26 -07:00
Joe Lencioni
ff69c8cb35
Prefer https over http
...
I checked all of the links in the JS style guide document and converted
as many as I could to use https.
2016-09-08 08:39:18 -07:00
Jordan Eldredge
7d46d3c59f
Document react/require-render-return as a fully fledged rule
...
Now that the pull request has been merged, we can reference the actual rule.
2016-09-08 09:56:57 -07:00
Joe Lencioni
25123199dc
Add JavaScript Air to list of Podcasts
...
It probably wouldn't be a bad idea for us to make a full pass on
updating the resources section, but I noticed the podcasts portion was
missing JS Air.
2016-09-08 08:29:10 -07:00
Joe Lencioni
68b7aeb6dd
Add rule about TC39 proposals that haven't reached stage 3
...
There has been some confusion around which language features should be
used and which should not be used yet. We have a pretty clear-cut rule
at Airbnb about this, which is do not use any TC39 proposals that have
not reached stage 3.
I considered putting this at the very top of the document, but I spotted
this section that seemed to fit.
Addresses #1057
2016-09-08 08:19:27 -07:00
Joe Lencioni
e6782493f3
Update ECMAScript 6 heading to match TOC
...
I plan to add some information to this section that applies to ES6 and
everything following ES6. Since we already list this as ES6+ in the
table of contents, I figured it would be a good idea to make this match.
I preserved the anchor to avoid breaking links for folks.
2016-09-08 08:11:32 -07:00
Jordan Harband
f769e35018
[eslint config] v11.0.0
eslint-config-airbnb-v11.0.0
2016-09-08 00:19:10 -07:00
Jordan Harband
ccd18f8b40
[guide] Update declarations section to prefer expressions.
...
Fixes #1008 .
2016-09-06 23:08:36 -07:00
Jordan Harband
7f12b9f043
[eslint config] [breaking] enable react rules:
...
- `react/no-danger-with-children`
- `react/no-unused-prop-types`
- `react/style-prop-object`
- `react/forbid-prop-types`
- `react/jsx-no-duplicate-props`
Also sets `react/no-danger` to “warn”.
2016-09-06 22:53:01 -07:00
Jordan Harband
4ce30fc891
[eslint config] [breaking] enable jsx-a11y rules:
...
- `jsx-a11y/anchor-has-content`
- `jsx-a11y/tabindex-no-positive`
- `jsx-a11y/no-static-element-interactions`
2016-09-06 22:46:52 -07:00
Jordan Harband
e037760bad
[eslint config] [deps] update eslint-config-airbnb-base, eslint, eslint-find-rules, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react
2016-09-06 17:10:48 -07:00
cshg
9abe878941
Fix header link to Classes & Constructors from ECMAScript 6+ Styles
2016-09-07 11:30:58 +02:00
Jordan Harband
49045060e0
[eslint config] [base] v7.0.0
eslint-config-airbnb-base-v7.0.0
2016-09-06 12:21:22 -07:00
scott stern
55d044c7c1
[eslint config] [base] [breaking] Add no-plusplus in style.js and added explanation in README.
2016-09-06 11:59:01 -07:00
Jordan Harband
bc3b15d4d7
[eslint config] [*] [docs] use “#” in example command rather than version numbers.
...
Closes #984 .
2016-09-06 11:40:42 -07:00
Jordan Harband
e52f41c9cc
[eslint config] [base] v6.0.0
eslint-config-airbnb-base-v6.0.0
2016-09-06 10:56:02 -07:00
Jordan Harband
9750f4261c
[eslint config] [base] Update ecmaVersion to 2016.
2016-09-06 10:50:03 -07:00
Jordan Harband
d7d606ec0d
[eslint config] [base] [breaking] valid-typeof: enable requireStringLiterals option
2016-09-06 10:48:21 -07:00
Jordan Harband
06ff74801b
[eslint config] [base] [breaking] enable class-methods-use-this
2016-09-06 10:44:19 -07:00
Jordan Harband
2c5a775d7b
[eslint config] [base] [breaking] enable symbol-description
2016-09-06 10:44:00 -07:00
Jordan Harband
3bf7035cec
[eslint config] [base] [deps] update eslint, eslint-find-rules, eslint-plugin-import
2016-09-06 10:40:31 -07:00
Jordan Harband
a6d59f977e
[eslint config] [base] [breaking] enable no-bitwise
2016-09-06 01:07:56 -07:00