Jordan Harband
|
b45fdcd60f
|
[eslint config] [base] add some import plugin settings
|
2016-07-05 10:35:40 -07:00 |
|
Jordan Harband
|
1f87054e4b
|
[eslint config] [base] [patch] newline-per-chained-call: bump the limit to 4.
Specifically, this is to allow this frequent pattern:
```js
$.ajax({
…
}).done(() => {
…
}).fail(() => {
…
}).always(() => {
…
});
```
|
2016-07-05 10:35:40 -07:00 |
|
Jordan Harband
|
9028379f87
|
[eslint config] [base] [breaking] re-disable import/extensions rule
ref https://github.com/benmosher/eslint-plugin-import/issues/390
|
2016-07-05 10:35:40 -07:00 |
|
Cédric Malard
|
c9bcc7ef36
|
Remove leading underscores for private properties
- It follows [ES6 styleguide](https://github.com/airbnb/javascript#naming--leading-underscore)
- eslint plugin is configured this way : `'no-underscore-dangle': [2, { allowAfterThis: false }],`
|
2016-07-05 18:30:44 +02:00 |
|
Jordan Harband
|
17b773e613
|
Merge pull request #902 from KevinGrandon/no_string_refs
[eslint config] [react] [breaking] Prevent using string refs.
|
2016-06-28 10:43:42 -07:00 |
|
Kevin Grandon
|
36d1561596
|
Prevent using string refs.
According to the official React documentation string refs are considered legacy and will be deprecated in the future.
|
2016-06-28 10:13:36 -07:00 |
|
Shreevatsa
|
34a9f076df
|
Minor typo: "coxcomb graph" v/s "coxcomb chart"
The "bad" and "good" diffs in section 19.2 had different text; making them the same to avoid confusion about what the difference is.
|
2016-06-23 10:58:12 -07:00 |
|
Jordan Harband
|
28a04a3a45
|
[docs] Clear up “confusing arrows” example.
Closes #856.
|
2016-06-21 22:41:03 -07:00 |
|
Jordan Harband
|
a597da56ca
|
[eslint config] [base] [breaking] enable rest-spread-spacing rule
|
2016-06-20 17:59:03 -07:00 |
|
Jordan Harband
|
d0973e8e36
|
[eslint config] [base] add TODO for object-curly-newline.
ref https://github.com/eslint/eslint/issues/6488
|
2016-06-20 17:58:36 -07:00 |
|
Jordan Harband
|
622a3bc1ab
|
[eslint config] [base] [breaking] re-disable newline-after-import
Per https://github.com/benmosher/eslint-plugin-import/issues/386
|
2016-06-20 16:11:24 -07:00 |
|
Jordan Harband
|
51f9b0450c
|
[eslint config] [base] [breaking] enable import rules: newline-after-import, prefer-default-export
|
2016-06-20 15:53:26 -07:00 |
|
Jordan Harband
|
ee2cb41ec4
|
[eslint config] [base] [breaking] enable no-mixed-operators rule.
Specifically, this is to require parens to avoid cognitive overhead about precedence.
|
2016-06-20 15:52:05 -07:00 |
|
Jordan Harband
|
6980cce17f
|
[eslint config] [base] [breaking] enable import rules:
- `no-named-as-default`
- `no-named-as-default-member`
- `no-extraneous-dependencies`
- `extensions`
|
2016-06-20 14:32:19 -07:00 |
|
Jordan Harband
|
5651e607f3
|
[eslint config] [base] [breaking] enable object-property-newline rule
|
2016-06-20 14:31:26 -07:00 |
|
Jordan Harband
|
001efc722c
|
[eslint config] [base] update eslint
|
2016-06-20 13:34:03 -07:00 |
|
Michael Clawar
|
04138345ad
|
Update README.md
|
2016-06-19 15:47:02 -04:00 |
|
Anton Backer
|
343dc2c34a
|
Remove parens around single argument in React example
Parens around a single argument aren't in line with the js guide:
If your function takes a single argument and doesn’t use braces,
omit the parentheses.
0814be638f/README.md (arrows--one-arg-parens)
Another rule violation:
Wrap JSX tags in parentheses when they span more than one line.
0814be638f/react/README.md (parentheses)
|
2016-06-17 17:33:49 -07:00 |
|
Jordan Harband
|
0afde8f136
|
[eslint config] [base] [deps] update eslint
|
2016-06-17 16:03:03 -07:00 |
|
Jordan Harband
|
0814be638f
|
[eslint config] [base] [deps] update eslint, eslint-find-rules
Adds disabled rules: `max-lines`, `no-mixed-operators`, `rest-spread-spacing`, `object-curly-newline`
|
2016-06-16 22:44:35 -07:00 |
|
hunyong-song
|
22f59b6e1b
|
Adding link korean translation
|
2016-06-16 10:20:03 +09:00 |
|
Andrzej Duś
|
defa17e872
|
Added Syzygy Warsaw
|
2016-06-15 11:25:19 +02:00 |
|
Caleb
|
90f5a47c33
|
Updated deprecated Japanese translation link.
old: https://github.com/mitsuruog/javacript-style-guide
new: https://github.com/mitsuruog/javascript-style-guide
|
2016-06-13 19:15:19 +10:00 |
|
Harrison Shoff
|
b4c49e9ec7
|
Merge pull request #909 from pietraszekl/patch-1
Adding link to polish translation
|
2016-06-12 00:16:34 -07:00 |
|
Lukasz Pietraszek
|
29eb575a52
|
Adding link polish translation
|
2016-06-11 09:39:03 +01:00 |
|
Jordan Harband
|
f41b4df024
|
[eslint config] [base] [breaking] enable no-prototype-builtins rule.
|
2016-06-04 18:14:02 -07:00 |
|
Jordan Harband
|
4700d99864
|
[eslint config] [base] [breaking] enable no-useless-rename rule
|
2016-06-04 18:00:02 -07:00 |
|
Jordan Harband
|
d9cb343b51
|
[eslint config] [base] [breaking] enable unicode-bom rule
|
2016-06-04 17:58:25 -07:00 |
|
Jordan Harband
|
ab4baf457e
|
[eslint config] [base] [deps] update eslint, eslint-plugin-import
|
2016-06-04 17:41:41 -07:00 |
|
Jordan Harband
|
89cfa0b81c
|
[eslint config] [*] use in-publish because coffeescript screwed up the prepublish script for everyone
|
2016-06-04 17:38:41 -07:00 |
|
Jordan Harband
|
eb76edea32
|
[eslint config] [*] [tests] Only run eslint-find-rules on prepublish, not in tests.
|
2016-06-04 17:30:00 -07:00 |
|
Wesley
|
3fb9db5a74
|
fixing broken link
Google moved their style guides to Github (from an SVN server), and this link was broken
|
2016-06-04 15:17:00 -07:00 |
|
Ross Kirsling
|
267eec57c6
|
Fix invalid code snippet in 23.2.
|
2016-06-02 10:24:30 -07:00 |
|
Simen Bekkhus
|
d97d62a2ff
|
Fix react dev dep version
|
2016-06-01 10:04:07 +02:00 |
|
mifi
|
1db5522888
|
Fix typo
disallowSpacesInsideObjectBrackets -> requireSpacesInsideObjectBrackets
|
2016-05-26 22:54:27 +02:00 |
|
Alanna Scott
|
c247fd754b
|
Avoid using an array index as key prop, prefer unique ID
|
2016-05-25 12:30:34 -07:00 |
|
Jordan Harband
|
4c4210f23d
|
Remove trailing whitespace.
|
2016-05-25 18:19:19 +02:00 |
|
Sergii Tkachenko
|
199a0a700d
|
Add DoSomething.org to the list of organizations in README
|
2016-05-25 17:49:40 +03:00 |
|
Jason
|
a8839173cc
|
add chinese simplified for React/JSX style guide
|
2016-05-25 16:50:37 +08:00 |
|
Jordan Harband
|
b6e4b72fc2
|
[eslint config] [*] [deps] update eslint, eslint-plugin-jsx-a11y. ensure react is >= 13.0.0
|
2016-05-21 22:11:20 +02:00 |
|
Jordan Harband
|
429339ee37
|
[eslint config] [*] fix quoting of rule properties.
Per #885.
|
2016-05-18 20:00:04 -07:00 |
|
Jordan Harband
|
8e125fa07c
|
[eslint config] [base] [breaking] Enforce proper generator star spacing.
Fixes #887.
|
2016-05-17 21:27:10 -07:00 |
|
Jordan Harband
|
312cd01a95
|
[eslint config] [base] quotes: Use object option form rather than deprecated string form.
Per https://github.com/airbnb/javascript/pull/886
|
2016-05-17 13:50:12 -07:00 |
|
Joe Lencioni
|
43ccc3fe11
|
Enable imports/imports-first rule
Since imports are hoisted, keeping them all at the top prevents
surprising behavior.
|
2016-05-17 09:14:48 -07:00 |
|
Jordan Harband
|
e32079d6c4
|
Merge pull request #881 from akai/re-order-rules
[eslint config] [base] [breaking] Rearrange rules/rule files.
|
2016-05-16 22:40:38 -05:00 |
|
akai
|
34ccf905d6
|
[eslint config] [base] [breaking] migrate import's settings/rules to a separate file.
|
2016-05-17 01:10:00 +08:00 |
|
akai
|
3948eb66d6
|
[eslint config] [base] [breaking] re-order rules
|
2016-05-17 00:25:48 +08:00 |
|
Jordan Harband
|
10f4dd88aa
|
[eslint config] [base] [patch] object-shorthand: do not warn when the concise form would have a string literal as a name.
|
2016-05-15 21:43:40 -05:00 |
|
Jordan Harband
|
7a8083795d
|
[eslint config] [base] [patch] Loosen prefer-const to not warn when the variable is “read” before being assigned to.
|
2016-05-15 21:42:45 -05:00 |
|
Jordan Harband
|
8d6d227848
|
[eslint config] [*] [tests] Even though the base config may not be up to date in the main package, let’s npm link the base package into the main one for the sake of travis-ci tests.
(Followup from c7faa91328)
|
2016-05-15 20:56:54 -05:00 |
|