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
Joe Lencioni
d282e059b1
Add import/no-restricted-paths to imports rules
...
This rule was added by 1.10.0. I am setting it to be disabled because it
is very project-specific, so it doesn't make sense to enable it here.
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
I found the sections of this file a little confusing, so I didn't know
where to put it. I think it would be better to simply alphabetize the
rules but I'll leave that for another time.
2016-07-05 10:04:28 -07:00
Jordan Harband
82629f126d
[eslint config] [base] [Deps] update eslint-plugin-import, tape, eslint-find-rules
2016-07-02 08:53:21 -07:00
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