Shane Mileham
a9f5d519fe
Added naming--uppercase section from comment
2018-03-12 11:20:34 -07:00
Remco Haszing
8247e338a2
[eslint config] [base] [patch] Set import/extensions to ignorePackages
...
This allows to import non-JavaScript files through the main export of a dependency's package.json.
The following would trigger an error before, but is fine with the new configuration:
```js
import 'roboto-fontface';
```
2017-12-04 10:11:35 +01:00
Remco Haszing
a100a3957f
[eslint config] [base] [breaking] Update object-curly-newline to match eslint 4.18.0
...
In eslint v4.18.0 separate settings are introduced for imports and exports for the `object-curly-newline` rule.
Without this change, there is different behavior when updating eslint to this version.
2018-03-01 14:33:02 +01:00
Michael Altamirano
55adae99c9
[guide] Reflect adoption of jest
2018-03-10 17:30:38 -08:00
Rauno
a9fc9d8a0f
[docs] [js] add function-paren-newline eslint reference link
2018-03-05 22:24:19 +02:00
Pirasis
396166b1d3
[eslint config] [*] [fix] ensure whitespace entry point is compatible with node 4
2018-03-01 12:15:56 +07:00
Jordan Harband
40dbeace17
[Tests] ensure all entry points parse
2018-02-28 23:00:19 -08:00
Jordan Harband
8e6363c677
[eslint config] [*] [new] add whitespace entry point
...
Adds eslint config extends with only whitespace rules enabled
Merge pull request #1749 from airbnb/whitespace-rules
2018-02-28 19:01:56 -08:00
Sharmila
6373dab990
Adds config entry point with only whitespace rules enabled
...
Adds a change to eslint-config-airbnb and eslint-config-airbnb-base to pull a list of rules from the project root and return a config with all rules turned off except the whitespace rules explicitly listed in the array. Also adds entry point data to readme.
2018-02-27 15:21:29 -08:00
Thomas Grainger
c82500d7fa
[eslint config] [base] [breaking] enable no-useless-path-segments
2018-02-22 01:07:09 +00:00
Jordan Harband
1fbeabd0c4
[eslint config] [*] [breaking] [deps] update eslint, eslint-plugin-import
2018-02-22 13:51:02 -08:00
Rauno Freiberg
fd68fdbd22
[guide] [react] add comment about what JS standards are followed
...
Seen a few pull requests for the React style guide that try to introduce features that aren't yet in stage >= 3 (static class fields for i.e), so I've decided to add a comment to the beginning of the guide. Not sure if this is the right place to put it, but here it is.
This disclaimer might help:
1) give the community an idea what standards this guide is based on
2) prevent redundant pull requests
2018-02-20 19:28:52 +02:00
Honza Javorek
ea14bda110
Add licenses to sub packages
2018-02-22 15:48:50 +01:00
Song Xie
a7a7cab504
[guide] Add an anchor for rule 13.7
2018-02-21 14:44:58 -08:00
Jordan Harband
3c3074e502
[eslint config] [*] [deps] update eslint, eslint-find-rules, eslint-plugin-react, tape
2018-02-20 00:10:46 -08:00
Jordan Harband
ff1c12178e
[eslint config] [breaking] update eslint-plugin-react to v7.6; update rule configs
2018-01-26 23:31:30 -08:00
Rauno Freiberg
901fd85b7c
Use single quotes for consistency
2018-02-19 14:58:24 +02:00
Jordan Harband
cfe10c17d3
fix linting error in guide
2018-02-08 21:45:14 -08:00
Kevin Ji
4c870cbd40
[guide] Fix function signature spacing
2018-02-08 11:29:44 -08:00
Gil Birman
c8b1164105
control-statement--value-selection 2
2018-02-08 13:07:34 -08:00
Ajay Poshak
16190d8cb5
Note added for translation
2018-02-04 18:52:51 +05:30
Teddy Katz
c5411a42d2
Suggest using WeakMaps when hidden properties are needed
...
This updates the "trailing or leading underscores" guideline to suggest an better way to make properties hidden, as an alternative to just removing the underscore and making the property public.
2018-02-04 17:11:01 -05:00
ParkSB
aefff97bd1
Update Korean translation link
2018-01-30 11:49:24 +09:00
David Clark
9a3e6356cf
Added GreenChef organization to README
2018-01-28 00:38:48 -07:00
Ali Oğuzhan Yıldız
17b6491ae2
add Turkish translation
2017-09-04 00:00:04 +03:00
Antonio Erdeljac
1eefaed4fb
[guide] [css] Fixed Italic subtitle in css-in-js README.md
2018-01-10 09:08:21 +01:00
Jérémie Astori
fc99aefc4c
[guide] Use acc as reduce accumulator instead of memo to make it valid
...
In [this part of the `no-param-reassign` configuration](53b2d7d245/packages/eslint-config-airbnb-base/rules/best-practices.js (L174-L175) ), `acc` is allowed to be mutated (rule [7.12](https://github.com/airbnb/javascript#functions--mutate-params ), but `memo` is not.
This causes the [rule 4.6 example](https://github.com/airbnb/javascript#arrays--callback-return ) in the README to actually be invalid.
2018-01-26 13:16:39 -05:00
Sharmila
e9fff7adbf
[eslint config] [base] [breaking] Prevent line breaks before and after =
2018-01-26 10:57:21 -08:00
Alex Baulch
53b2d7d245
[eslint config] [breaking] bump react pragma to v16; update class-methods-use-this's exceptMethods to include componentDidCatch
2018-01-22 10:42:28 +00:00
zwei
c4dcfd93a7
[guide] fix indentation in section 4.7
2018-01-16 16:20:46 +08:00
Jordan Harband
7dab8371c9
[eslint config] [deps] update eslint
2018-01-20 23:36:32 -08:00
Jordan Harband
7b1ced2bf7
[eslint config] [base] [deps] update eslint
2018-01-20 23:35:21 -08:00
Ben Fortner
262b07b106
fix example to meet standard listingId v listingID
...
fixed code example to meet the standard. `listingId` changed to `listingID`
See - Naming Conventions: Acronyms and initialisms should always be all capitalized, or all lowercased.
2018-01-16 09:55:54 -05:00
Aditya Agarwal
a08afd77d5
[eslint-config] [*] [docs] add npx shortcut
2018-01-10 20:04:25 +05:30
Jordan Harband
be647a77fb
Merge pull request #1538 from lanceli/patch-1
...
Change Simplified Chinese translation link
2018-01-09 22:32:15 -08:00
Jordan Harband
69a3554100
[eslint config] [base] [patch] properly ignore indentation on jsx
...
Fixes #1658 .
2018-01-08 00:52:17 -08:00
Jordan Harband
7b18d7c215
[eslint config] [*] [deps] update eslint
2018-01-08 00:35:15 -08:00
Jordan Harband
35f3e76edd
Merge pull request #1691 from airbnb/update-mixed-operators-text
...
[guide] Improves wording of no-mixed-operators recommendation.
Fixes #1678 .
2018-01-08 14:57:11 -08:00
Sharmila
fe3a2de6b5
[ fixes : #1678 ] Improves wording of no-mixed-operators recommendation.
2018-01-08 14:37:32 -08:00
Jordan Harband
ea8fd76c5e
[eslint config] [base] [breaking] Add .mjs extension support
...
Merge pull request #1635 from olistic/add-mjs-extension-support
2018-01-02 22:52:01 -08:00
Miguel Piedrafita
cb9482c04e
[guide] Update license year
2018-01-01 00:50:59 +01:00
Jordan Harband
f9fcb37af1
[guide] Add link to "has" package
...
Fixes #1670 .
2017-12-25 10:37:36 -08:00
Jordan Harband
0991476c9f
[guide] Clarify that vars are hoisted to function scope, not block scope
...
Fixes #1675 .
2017-12-25 10:27:33 -08:00
Jordan Harband
1b6bcd0e0f
[guide] more precisely refer to an "object literal" instead of just a "hash"
...
Fixes #1680 .
2017-12-25 10:24:54 -08:00
Ronald Eddy Jr
fc34709d19
Docs: HTTP -> HTTPS
...
URL was updated to use HTTPS protocol
2017-12-24 13:20:12 -08:00
Pirasis
90235cab7c
[eslint config] [base] [patch] array-callback-return: enable allowImplicit option
2017-12-24 10:06:09 +07:00
Jordan Harband
9061044af0
[eslint config] [*] [deps] update eslint, eslint-plugin-jsx-a11y
2017-12-23 20:25:29 -08:00
Thomas Broadley
8a12ffed19
[guide] Fix spelling error in link
...
(preserve old link for back-compat)
2017-12-15 20:31:09 -05:00
Ilici
255b0f369a
Fix third example in Enclosed operators section
2017-12-14 23:14:27 +01:00
Kristóf Poduszló
4817a6b75c
[eslint config] [patch] Add 'to' as a specialLink to the 'anchor-is-valid' a11y rule
...
Support React Router's `<Link to="...">` attribute out of the box.
2017-11-28 19:47:00 +01:00