Leonid Lebedev
ecf8e077a7
Remove unnecessary variables
2017-10-24 14:33:47 +03:00
Arnav
bd3ba6edfe
Add symbol as a primitive type
...
- Also add note that symbols cannot by polyfilled and should not be used in environments that don't support them
2017-10-23 15:04:58 -07:00
Vse Mozhet Byt
dbd69346bd
[guide] Fix a numeration typo in README.md
...
- also remove legacy numbered link
2017-10-24 00:07:05 +03:00
Sharmila
8161f32f1f
[eslint config] [base] [breaking] no-mixed-operators: only warn on ** and % mixed with arithmetic operators; removes violation against mixing common math operators.
...
Fixes #1071 .
2017-10-20 16:09:16 -07:00
Liu Chong
97a6883621
Fix markdown style breaking
...
It came from the special characters "M-BM-":
```
diff README.md README.md.new | cat -A
651c651$
< const foo = function uniqueMoreDescriptiveLexicalFoo() {$
---$
> M-BM- M-BM- const short = function longUniqueMoreDescriptiveLexicalFoo() {$
```
2017-10-22 14:10:35 +08:00
刘冲
232b719fc5
To Clarify the func-style description
...
As "foo" is still meaningless, but with "short", we can see that, we are intend to use a short alias name to make our coding happily.
2017-10-21 22:11:18 +08:00
Jordan Harband
94c47734e8
[eslint config] [*] [deps] update eslint-plugin-import
2017-10-20 15:48:09 -07:00
jabacchetta
3c6d40ccca
[docs] Clarify reasoning for named function expressions
...
For convenience, added brief explanations that are given in the linked discussion (mostly eliminating the need to scroll through the comments).
2017-10-19 19:46:28 -05:00
jabacchetta
39cf84f43b
[guide] Add clarification to arrow functions
...
Clarify and correct explanation — to be consistent with section 7.1 (use named function expressions).
2017-10-19 18:59:41 -05:00
Sharmila
67e34433e4
Adds guide section for no-return-else
2017-10-18 21:30:02 -07:00
Jordan Harband
8cfc97eee9
[Tests] fix linting tests
2017-10-18 21:28:52 -07:00
Jordan Harband
6f2395a3f1
[eslint config] [base] [breaking] import/named: enable
2017-10-18 14:28:58 -07:00
Jordan Harband
b66d6e42f3
[eslint config] [base] [breaking] lines-between-class-members: set to “always”
2017-10-18 14:27:41 -07:00
Sharmila
2b3c86d812
Fixes indentation
2017-10-18 14:50:58 -07:00
Jordan Harband
8507df4f78
Merge pull request #1600 from airbnb/shar--enforce-operator-linebreak-before
...
Enforce operator at the beginning of line
2017-10-18 14:26:53 -07:00
Sharmila
cd4ec29ed3
[eslint config] [base] Enables eslint rule for operator-linebreak
...
Requiring operators at the beginning of the line makes code more readable. When operators are on the left hand side they mirror the syntax of method chaining and it is easy to see the build of logic in a statement. This also updates the readme and fixes a style violation as a result of adding this rule in eslint-config-airbnb/test/test-base.js and eslint-config-airbnb-base/test/test-base.js.
2017-10-18 14:15:39 -07:00
Thomas Grainger
01e72b9963
[eslint config] [base] [breaking] no-else-return: disallow else-if
2017-10-18 14:06:04 -07:00
Sharmila
f2a65c6898
Improves 'Why?' message
2017-10-18 13:41:24 -07:00
Sharmila
6fbc47256e
Fixes test syles
2017-10-18 13:37:49 -07:00
Sharmila
2ab0e61858
Updates Control Statements section to reflect eslint config change
2017-10-18 13:37:49 -07:00
Sharmila
6e1f11185d
[eslint config] [base] Enables eslint rule for operator-linebreak
...
Requiring operators at the beginning of the line makes code more readable. When operators are on the left hand side they mirror the syntax of method chaining and it is easy to see the build of logic in a statement.
2017-10-18 13:37:49 -07:00
Jordan Harband
cf9e17efee
[eslint config] v16.1.0
eslint-config-airbnb-v16.1.0
2017-10-16 12:01:21 -07:00
Jordan Harband
ec4b9b109a
[eslint config] [deps] update eslint-config-airbnb-base, eslint to v4.9
2017-10-16 12:00:49 -07:00
Jordan Harband
7f61af685c
[eslint config] [base] v12.1.0
eslint-config-airbnb-base-v12.1.0
2017-10-16 11:50:50 -07:00
Pirasis Leelatanon
9025c52a73
[doc] add eslint rule reference for prefer-destructuring
2017-10-16 21:18:48 +07:00
Jordan Harband
3581bac32f
[eslint config] [base] [deps] update eslint to v4.9
2017-10-16 11:42:13 -07:00
Joe Lencioni
f8f13d9bf1
Merge pull request #1591 from 1pete/patch-2
...
sort peerDependencies in alphabetical order
2017-10-12 20:44:02 -07:00
Pirasis Leelatanon
62d8d66049
[eslint config] sort peerDependencies in alphabetical order
2017-10-13 10:38:23 +07:00
David Künnen
ac2ed5a749
Added our company to "In The Wild"
2017-10-12 13:30:18 +02:00
Jordan Harband
dfbeaaea4b
[eslint config] v16.0.0
eslint-config-airbnb-v16.0.0
2017-10-06 10:40:05 -07:00
Jordan Harband
e5b5aeeb6b
[eslint config] [breaking] enable/add react rules:
...
- `react/jsx-curly-brace-presence`
- `react/no-typos`
- `react/no-unused-state`
- `react/no-redundant-should-component-update`
- `react/default-props-match-prop-types`
2017-10-05 01:01:01 -07:00
Jordan Harband
2c228825a8
[eslint config] [deps] update eslint, eslint-config-airbnb-base, eslint-plugin-react
2017-10-05 00:55:14 -07:00
Jordan Harband
ad3746672e
[eslint config] [base] v12.0.2
eslint-config-airbnb-base-v12.0.2
2017-10-05 00:03:21 -07:00
Jordan Harband
a8155091ff
[eslint config] [base] [deps] update eslint
2017-10-05 00:02:31 -07:00
Jordan Harband
4170a50732
Merge pull request #1574 from leonidlebedev/patch-1
...
[guide] Add Amendments
2017-10-01 12:00:11 -04:00
Leonid Lebedev
faedb67042
Add Amendments
2017-10-01 17:36:45 +03:00
Jordan Harband
cd038fb89b
v12.0.1
eslint-config-airbnb-base-v12.0.1
2017-09-27 16:38:49 -04:00
Jordan Harband
b7ff33e79c
[eslint config] [base] [deps] update eslint
2017-09-27 16:37:54 -04:00
Jordan Harband
8e29a161f9
[eslint config] [base] [fix] ensure all JSX elements are ignored by indent
...
Fixes #1569 .
2017-09-27 16:33:51 -04:00
Josh
2380c0ddb8
[guide] Improve severity of warning comment
2017-09-27 12:51:40 -07:00
Vladimir Kovpak
3ad1ad1a6a
[guide] Updated example in ternaries.
2017-09-21 02:11:14 +03:00
Nikita Lebedev
e16b03b841
[guide] require array spread operator or Array.from
...
Fixes #1084 .
2017-09-20 14:12:25 -07:00
Carlos Soria
0aab14c364
Add Grupo Abraxas to In The Wild section
2017-09-14 16:09:30 -05:00
Jordan Harband
5b338e1937
[Tests] lint our markdown
2017-09-02 11:33:45 -07:00
Jordan Harband
e86fb14932
Merge pull request #1551 from vitalymak/patch-1
...
[eslint config] [base] fix typo in changelog
2017-09-07 10:27:56 -07:00
Vitaly Makarevich
138aafd2a0
Update CHANGELOG.md
...
Typo: prefer-restructuring => prefer-destructuring
2017-09-07 17:26:11 +03:00
Jordan Harband
9dee84796b
[Docs] add note about requiring babel-preset-airbnb and airbnb-browser-shims.
...
Fixes #1544 .
2017-09-02 11:28:53 -07:00
Lance Li
d493a04d7f
Change Simplified Chinese translation link
...
Currently the Simplified Chinese translation is for ES5, it's out of date, use another one instead of it.
2017-08-26 14:49:14 +08:00
Jordan Harband
22672c1cdc
[eslint config] [new] add propWrapperFunctions default settings for eslint-plugin-react
2017-08-22 19:44:12 -07:00
Jordan Harband
f93ca2f71d
[eslint config] [deps] update eslint v4, eslint-plugin-react
2017-08-22 17:16:31 -07:00