1985 Commits

Author SHA1 Message Date
Jordan Harband
a75efdfdb0 [guide] improve ++/-- example.
Fixes #1130.
2016-10-14 22:37:14 -07:00
Jordan Harband
baa831b4a9 [eslint config] [*] [docs] ensure latest version of config is installed
Fixes #1121.
2016-10-13 10:26:31 -07:00
Jordan Harband
8d0fda975c [eslint config] [base] Add comments on new import rules. 2016-10-13 00:40:14 -07:00
Simen Bekkhus
b59bfffac3 Enable import/no-webpack-loader-syntax rule 2016-10-13 09:09:10 +02:00
Jordan Harband
eb9927fb58 [eslint config] [deps] update eslint-plugin-react 2016-10-12 23:50:56 -07:00
Simen Bekkhus
b599b7c2d5 Upgrade to import plugin v2 2016-10-11 18:37:09 +02:00
Miles Burton
357cc46da0 Update README.md
Minor oversight generating map object. Need square brackets to generate dynamic key.
2016-10-11 08:44:43 +01:00
Jordan Harband
781f186f90 [eslint config] [*] [deps] update safe-publish-latest, eslint-plugin-jsx-a11y, eslint-plugin-react 2016-10-09 20:33:06 -07:00
Chester How
1483292893 Fix naming typo 2016-10-10 11:21:18 +08:00
Randall Reed, Jr
b7492ffe60 Update comparison recommendation
* Use shortcuts for boolean comparisons
* Use explicit comparisons for strings and numbers
2016-10-08 16:41:45 -04:00
Randall Reed, Jr
d0d260095b Make section numbering consistent
* Renumber items where numbers were skipped
2016-10-08 13:01:54 -04:00
Jordan Harband
1bc2f3f365 Merge pull request #1110 from karanjthakkar/multiline-imports
[guide] Add section on multiline imports.

Fixes #1051
2016-10-07 00:19:12 -07:00
Karan Thakkar
b72bd520b6 Fix rule description 2016-10-07 12:34:36 +05:30
Karan Thakkar
098894efee Remove legacy anchor link. Add dangling comma 2016-10-07 12:16:21 +05:30
Karan Thakkar
6ad315c090 Add section on multi-line imports. Fixes #1051 2016-10-06 14:54:53 +05:30
Jordan Harband
e2de71efb7 [eslint config] [*] update babel-preset-airbnb, eslint, eslint-find-rules, tape 2016-10-03 16:15:31 -07:00
jcreamer898
8468ed8423 Lonely Planet
Add Lonely Planet to the "In the Wild" list.
2016-09-27 09:13:20 -05:00
Tim van der Horst
24223ee444 [eslint config] [patch] class-methods-use-this: exempt React getChildContext
Added `getChildContext` to the exceptions list for `class-methods-use-this`
2016-09-27 18:07:56 +10:00
Jonas Enlund
59db4aab15 [eslint config] [base] [patch] new-cap: add immutable.js exceptions 2016-09-25 11:56:54 +03:00
Jordan Harband
a1c84eee15 [eslint config] v12.0.0 eslint-config-airbnb-v12.0.0 2016-09-24 15:06:10 -07:00
Jordan Harband
39d7c73ef1 [eslint config] [patch] class-methods-use-this: exempt React lifecycle methods 2016-09-24 20:03:58 -07:00
Jordan Harband
976845e930 [eslint config] [breaking] Enable react rules:
- `react/no-unescaped-entities`
 - `react/no-children-prop`
2016-09-24 14:38:54 -07:00
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