Jordan Harband
0e627e2fa3
[readme] update eslint plugin repo URLs
2023-05-15 10:15:59 -07:00
Christian Koop
7982931ba7
[readme] Updates ESLint rule in section 12.3 (exponentiation-operator)
...
The change itself has already been made in f3d3a075cd
(tracked in/acording to https://github.com/airbnb/javascript/issues/2421#issuecomment-1371305010 ).
#2421
Remove Math.pow from `no-restricted-properties` and use `prefer-exponentiation-operator` instead.
2023-05-02 19:49:09 +02:00
Felipe Garcia Diaz
69fc1bf195
spell checking, fixed grammar error.
2023-04-28 03:33:28 -04:00
syedmouaazfarrukh
5c01a10949
[readme] added JavaScript Roadmap link
2023-02-07 11:17:51 -08:00
Mustafa UZUN
81157eec23
[guide] add Object.hasOwn
2022-11-17 20:15:09 +03:00
Mustafa UZUN
d601701730
[readme] wayback machine, or remove, broken links
2022-10-30 02:00:29 +03:00
Mustafa UZUN
49d08a2f13
[readme] prefer const/let over var in examples
...
2.1 Use const for all of your references; avoid using var. eslint: prefer-const, no-const-assign
2022-10-29 23:49:43 +03:00
Pushpendra Pal
0d747c6d96
[readme] add space before code blocks
2022-11-14 04:54:20 +05:30
Maksim Ploski
38f1488918
[guide] fix typo in space-before-blocks
2022-10-31 21:57:59 +03:00
Mustafa UZUN
c6b1a43c48
[guide] rename qux to quux
...
Fixes #2661
2022-10-26 13:44:17 +03:00
Mustafa UZUN
6947138ee3
[guide] add comma to the end of the property
2022-10-26 16:17:38 +03:00
Mustafa UZUN
6fb4f8e878
[guide] add Optional Chaining
2022-10-26 00:06:26 +03:00
Mustafa UZUN
ca0ff97f17
[guide] add Nullish Coalescing operator
2022-10-25 23:26:56 +03:00
Mustafa UZUN
0b1f62372e
[editorial] convert example to use single instead of double quotes
2022-10-25 16:03:37 +03:00
Jordan Harband
5143a7a97a
[Dev Deps] update markdownlint, markdownlint-cli
2022-09-18 22:16:08 -07:00
Michael Orzel
cbf9ade10a
[guide] Added period to 4.4 for formatting consistency.
2021-07-02 09:40:46 -04:00
terrablue
7fdc87a8be
[guide] fix eslint core rule URLs
...
- fix broken eslint eol-last link
- remove .html ending in eslint urls
2022-05-03 19:06:48 +02:00
Yatin
91cab81f69
[readme] operator => parameter syntax
2021-11-17 00:14:08 +05:30
Kai
fdc812a0a5
[Docs] HTTP => HTTPS
2021-11-04 00:24:41 +01:00
Johnwesley R
82dbec3c99
[guide] Fix 14.1 Temporal Dead Zones link
2021-10-17 14:27:43 -04:00
Luke Ingalls
f5c14cae2f
[readme] fixed typo and removed redundancy
2021-06-18 19:49:13 -06:00
amirvatani
d5d406a849
[readme] add AloPeyk to "in the wild"
2021-05-09 00:10:31 -07:00
Asher Hwang
35914b1402
[guide] Spread operator => Spread syntax
2021-05-11 09:08:23 +09:00
Kushang Shah
5641278fa1
[editorial] add var info to let/const section
2021-05-03 16:34:19 -07:00
Cong Zhang
0cf78acab0
[guide] Fix 19.6 example code
2021-03-24 18:17:15 +08:00
kimhanui
711aeb650d
[editorial] Complete 19.6 example code (cut in the middle)
...
Fixes #2403
2021-03-18 08:43:41 +09:00
marsonya
ea5ec0c524
[readme] removed dead links - 404 not found
2020-12-30 10:44:32 +05:30
Michael Flores
2c5c88d048
[guide] Update reason for preferring object destructuring
...
Fixes #2293
The reason for preferring object destructuring is quite narrow in scope. While this guide isn't intended to provide every possible reason for every preference, it perhaps should aim to provide a succinct and compelling reason. The current reasoning could be improved to meet this standard, so I'm proposing adding some additional information to clarify the benefits of what is an often controversial rule (controversial only because its introduction can require many changes in a mature codebase and has no auto fix available).
2020-10-21 23:10:31 -05:00
Daniel Paz
ee2f22a10c
[guide] Better link reference to Drupal's linter
...
This link was taken from their Code standard page: https://www.drupal.org/docs/develop/standards/javascript/eslint-settings
The previous link wasn't very informative and required a download process in order to check their standards.
2020-10-16 14:02:43 +03:00
Daniel Paz
aa43bb2398
[guide] add explanation about why to use radix when using parseInt
...
I added an explanation at [22.3](https://github.com/airbnb/javascript/blob/master/README.md#coercion--numbers ) why to use radix once parseInt, this explanation has been taken from [Mozilla's docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#Octal_interpretations_with_no_radix ).
I think it's not clear without an explanation since people can think that it's obvious that string will be parsed to 10 base number, but it's not always the case.
2020-10-14 18:48:40 +03:00
Pirasis
82170f9127
[guide] add eslint rule reference for prefer-object-spread
2020-10-11 21:28:52 +07:00
Pirasis
5ebfe3e5b8
[guide] add eslint rule reference for default-param-last
2020-10-06 21:36:29 +07:00
Android Dev Notes
337f60706f
[guide] Fix grammatical errors
2020-09-06 02:02:14 +05:30
Jordan Harband
6006d6d2df
[guide] fix dead es-discourse link
...
Fixes #2274 .
2020-08-27 14:29:09 -07:00
小蚊酱
c0ee2c4924
[guide] unquote properties in whitespace key spacing section
2020-03-31 17:41:38 +08:00
Dmitry Semigradsky
e6e6414c97
[guide] Add link to eslint rule for https://github.com/airbnb/javascript#modules--multiline-imports-over-newlines
2020-03-09 12:55:31 +03:00
lagagain
717ba5187a
[guide]: add "bigint" type to the primitives type section.
...
```js
var bn = 123n
```
(with "n" as suffix)
2020-02-28 14:53:58 +08:00
Cain Hall
9890b40677
guide: import/extensions rule documentation
2020-03-02 16:27:57 +11:00
Jordan Harband
41ca203e3e
[Dev Deps] update markdownlint-cli
2020-02-07 08:05:47 -10:00
Geo Artemenko
6d05dd898a
[eslint config] [*] [readme] normalize multiline word according to merriam-webster
2019-11-22 22:04:23 -05:00
Vse Mozhet Byt
5927c7f706
[guide] fix possible typo
2019-11-08 16:05:06 +02:00
Igor Gassmann
56b75dc359
[guide] Document class-methods-use-this
...
This PR documents the currently enforced `class-methods-use-this` ESlint rule as discussed in #2129
2019-11-03 21:00:57 +01:00
trg
64b965efe0
[guide] Fix Temporal dead zone link anchor
2019-10-01 01:27:12 +03:00
Tom Prats
7932a52e4b
Added Tomify and Traitify to the organizations
2019-09-04 14:11:39 -04:00
Jordan Harband
295d1e61cb
[guide] clean up confusing example from bad rebase
...
... from
820745d610 (diff-04c6e90faac2675aa89e2176d2eec7d8R963-R965)
/ #1863 .
Fixes #2071 .
2019-08-14 08:46:21 -07:00
JBallin
a344d6c8e7
[guide] [eslint config] [base] [breaking] no-multiple-empty-lines: Restrict empty lines at beginning of file
2019-06-10 13:49:58 -07:00
Sharmila
f6acb789a0
[guide] [eslint config] [base] [breaking] Simplifies no-mixed-operators
...
- adds warning on mixing `/` and `*` arithmetic operators
- removes warnings on mixing `**` and arithmetic operators
- removes warning on mixing `in` and `instanceof`
- removes warning on mixing `~` with other bitwise operators
- removes mixing of assignment operators with comparison operators
2018-07-10 15:19:05 -07:00
Sharmila
820745d610
[guide] [eslint config] [base] [breaking] Require parens for arrow function args
2018-07-09 18:14:32 -07:00
Yohan Siguret
6c0a884179
[guide] fix dead jsperf links
2019-08-03 01:04:22 +02:00
Mathieu Dutto
030e23b13e
[guide] Fix npm package has usage example
2019-07-24 15:36:48 +02:00