Skip to content

Commit f183533

Browse files
committed
Change eslint rule arrow-parens to always
1 parent fb445b4 commit f183533

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
],
210210
"arrow-parens": [
211211
"error",
212-
"as-needed"
212+
"always"
213213
],
214214
"arrow-body-style": [
215215
"error",

JavaScript/1-basics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const COLORS = [
1919

2020
const colorer = (s, color) => `\x1b[3${color}m${s}\x1b[0m`;
2121

22-
const colorize = name => {
22+
const colorize = (name) => {
2323
let res = '';
2424
const letters = name.split('');
2525
let color = 0;
@@ -30,7 +30,7 @@ const colorize = name => {
3030
return res;
3131
};
3232

33-
const greetings = name => (
33+
const greetings = (name) => (
3434
name.includes('Augustus') ?
3535
`${SALUTATION}, ${colorize(name)}!` :
3636
`Hello, ${name}!`

JavaScript/3-extended.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const Point = class {
77
}
88
};
99

10-
const serializable = Category => class extends Category {
10+
const serializable = (Category) => class extends Category {
1111
toString() {
1212
return `[${this.x}, ${this.y}]`;
1313
}
1414
};
1515

16-
const movable = Category => class extends Category {
16+
const movable = (Category) => class extends Category {
1717
move(x, y) {
1818
this.x += x;
1919
this.y += y;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy