Daniel McNally
74fb34f08d
Add no-unused-vars to README
...
This documents the enforced but currently undocumented `no-unused-vars` rule with a brief description, examples, and noting the `"ignoreRestSiblings": true` option.
2018-06-08 02:02:11 -04:00
Jordan Harband
5e260928b6
[eslint config] [react] update eslint-plugin-react
2018-06-03 22:19:41 -07:00
Alejandro García Salas
8a24480119
Fix broken aria roles link in React style guide README
2018-06-03 10:48:10 -07:00
Andrew Macpherson
dfc9da71d9
Add Drupal to In The Wild section.
2018-06-01 01:08:04 +01:00
Alexandre Syenchuk
ae82d76783
Update README.md
2018-05-30 09:06:14 +02:00
Jordan Harband
04ab225858
[eslint config] [*] [deps] update eslint-plugin-import, eslint-find-rules, eslint-plugin-react
2018-05-27 08:47:29 -07:00
Brett
c068d7cbf1
Fix link for Temporal Dead Zone
2018-05-26 13:38:45 -07:00
ParkSB
2ba36de952
[guide] Add backticks
2018-05-05 03:04:38 +09:00
Jimmy Jia
2bd77bc1e0
[eslint config] [base] [patch] label-has-for: Remove redundant component
...
Also make the rule configuration more explicit.
2018-05-05 22:34:19 -04:00
Vse Mozhet Byt
71e54f2af8
doc: fix some nits in README.md
...
* Add missing anchors for section references.
* Correct a rule description.
2018-05-04 11:11:55 +03:00
Daniel McNally
edf942eeb6
[guide] Add descriptions of enforced rules
...
This commit adds brief descriptions and examples of rules enforced by the guide that were not previously mentioned in the README.
2018-05-02 01:01:19 -04:00
Thomas Grainger
2d9779907f
[eslint config] [base] [minor] only allow one newline at the end
2018-04-30 09:30:38 +01:00
Joe Lencioni
8c83d03a20
[eslint config] [base] [patch] Allow devDependencies for foo_spec.js naming style
...
Some projects name test files like `foo_spec.js` instead of `foo.spec.js`.
2018-02-15 11:58:17 -08:00
Feross Aboukhadijeh
22f01558a0
Add StandardJS to "Other Style Guides" list
...
StandardJS is one of the top style guides, though like the Google and jQuery styles, it's less popular than the airbnb style. 😀
2018-04-25 20:28:41 -07:00
Nguyễn Tiến Minh
2653730fee
[react] add vietnamese
2018-04-21 13:51:56 +07:00
Jordan Harband
5705b8ae6b
Revert "Replace flag images with emoji"
...
This reverts commit 87f97e042d .
Closes #1789 .
2018-04-22 14:48:50 -07:00
Jordan Harband
fd0834764c
[eslint config] [base] fix tests
2018-04-20 15:19:14 -07:00
Jordan Harband
b56875bee2
[eslint config] [base] [patch] function-paren-newline: change to "consistent"
2018-04-20 14:00:50 -07:00
Joe Lencioni
89bb98e135
Merge pull request #1787 from airbnb/lencioni-patch-2
...
Replace flag images with emoji
2018-04-19 04:15:39 +08:00
Joe Lencioni
87f97e042d
Replace flag images with emoji
...
We can use emoji for most of these flags, which should make
them look better on higher resolution displays and improve the
loading performance of the style guide a little.
The only flag we have here that does not have a good emoji yet
is the flag of Catalonia, which I left as-is for now.
https://emojipedia.org/flag-for-catalonia-esct/
2018-04-18 11:28:06 -07:00
Jordan Harband
308fb24815
[eslint config] [*] [deps] update eslint-plugin-import
2018-04-13 13:43:43 -07:00
Jordan Harband
6088a8f5b5
[guide] remove references to jscs
2018-04-12 15:46:55 -07:00
Eray Çetinay
8956338ee9
[guide] Turkish Translation Link Added
2018-04-08 22:51:19 +03:00
Hernaldo Jesus Henriquez
06998522e1
[guide] fix "bad" comment to be actually bad
2018-04-06 14:53:46 -03:00
C. T. Lin
8720f5f90b
[eslint config] [base] [patch] avoid __mocks__ no-extraneous-dependencies check
2018-03-28 13:05:12 +08:00
Pramod Garg
bd97fca21b
[guide] Minor addition of spaces
2018-04-04 22:45:44 +05:30
Sharmila
c71e8c9231
[eslint config] [base] [breaking] enable import/no-cycle: warn on cyclical dependencies
2018-04-04 16:15:27 -07:00
Sharmila
31d95fded4
[eslint config] [*] [deps] update eslint, eslint-plugin-import, eslint-find-rules
2018-04-04 16:23:02 -07:00
Simon Owen
06e28997b2
Minor spacing update
2018-03-28 15:39:14 +01:00
Jordan Harband
33819d6787
[guide] Added naming conventions for UPPERCASE use cases
...
Merge pull request #255 from estelle/master
2018-03-23 22:29:20 +00:00
Naomi Jacobs
8ed1d855bb
[eslint config] [base] [patch] Include 'accumulator' exception for no-param-reassign
2018-03-20 11:40:04 -07:00
Joe Lencioni
49dab881da
Change import/no-self-import from "off" to "error"
...
We recently had an incident where this rule would have prevented
infinite loops in Hypernova and in the browser.
2018-03-23 08:42:42 -07:00
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