Skip to content

Commit 186580d

Browse files
renovate[bot]renovate-botcalebeby
authored
Update dependency eslint-config-xo to v0.37.0 (#274)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Caleb Eby <caleb.eby01@gmail.com>
1 parent 243954a commit 186580d

8 files changed

Lines changed: 31 additions & 31 deletions

File tree

.changeset/silly-roses-love.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@cloudfour/eslint-plugin': major
3+
---
4+
5+
Update `eslint-config-xo` to `v0.37.0`
6+
7+
**Newly Enabled Rules**
8+
9+
- [`arrow-body-style`](https://eslint.org/docs/rules/arrow-body-style)

build.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ const stringify = (data) =>
2828
})}`.replace(
2929
// Wrap the relative parser path with require.resolve
3030
new RegExp(`"${resolveStart}(.*?)${resolveEnd}"`, 'g'),
31-
(_match, replacement) => {
32-
return `require.resolve("${replacement}")`;
33-
}
31+
(_match, replacement) => `require.resolve("${replacement}")`
3432
);
3533

3634
const createFile = (data) =>

fixtures/dom-testing-library/src/queries/role.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ function queryAllByRole(
7171
matcher(implicitRole, node, role, matchNormalizer)
7272
);
7373
})
74-
.filter((element) => {
75-
return hidden === false
74+
.filter((element) =>
75+
hidden === false
7676
? isInaccessible(element, {
7777
isSubtreeInaccessible: cachedIsSubtreeInaccessible,
7878
}) === false
79-
: true;
80-
})
79+
: true
80+
)
8181
.filter((element) => {
8282
if (name === undefined) {
8383
// Don't care

fixtures/got/source/create.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,13 @@ const create = (defaults: InstanceDefaults): Got => {
133133
// Got interface
134134
const got: Got = ((url: string | URL, options?: Options): GotReturn => {
135135
let iteration = 0;
136-
const iterateHandlers = (newOptions: NormalizedOptions): GotReturn => {
137-
return defaults.handlers[iteration++](
136+
const iterateHandlers = (newOptions: NormalizedOptions): GotReturn =>
137+
defaults.handlers[iteration++](
138138
newOptions,
139139
iteration === defaults.handlers.length
140140
? getPromiseOrStream
141141
: iterateHandlers
142142
);
143-
};
144143

145144
if (is.plainObject(url)) {
146145
const mergedOptions = {
@@ -301,9 +300,7 @@ const create = (defaults: InstanceDefaults): Got => {
301300
got.paginate = (<T, R>(
302301
url: string | URL,
303302
options?: OptionsWithPagination<T, R>
304-
) => {
305-
return paginateEach(url, options);
306-
}) as GotPaginate;
303+
) => paginateEach(url, options)) as GotPaginate;
307304

308305
got.paginate.all = (async <T, R>(
309306
url: string | URL,
@@ -330,9 +327,8 @@ const create = (defaults: InstanceDefaults): Got => {
330327
got[method] = ((url: string | URL, options?: Options): GotReturn =>
331328
got(url, { ...options, method })) as GotRequestFunction;
332329

333-
got.stream[method] = ((url: string | URL, options?: StreamOptions) => {
334-
return got(url, { ...options, method, isStream: true });
335-
}) as GotStream;
330+
got.stream[method] = ((url: string | URL, options?: StreamOptions) =>
331+
got(url, { ...options, method, isStream: true })) as GotStream;
336332
}
337333

338334
Object.assign(got, { ...errors, mergeOptions });

fixtures/mocha/lib/growl.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ function onCompletion(err) {
107107
* @private
108108
* @returns {string} Pathname of Mocha logo
109109
*/
110-
const logo = () => {
111-
return path.join(__dirname, '..', 'assets', 'mocha-logo-96.png');
112-
};
110+
const logo = () => path.join(__dirname, '..', 'assets', 'mocha-logo-96.png');
113111

114112
/**
115113
* @summary

fixtures/mocha/scripts/netlify-headers.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ new AssetGraph({ root: 'docs/_dist' })
6161
}
6262
}
6363

64-
const firstCssRel = asset.outgoingRelations.find((r) => {
65-
return (
64+
const firstCssRel = asset.outgoingRelations.find(
65+
(r) =>
6666
r.type === 'HtmlStyle' &&
6767
r.crossorigin === false &&
6868
r.href !== undefined
69-
);
70-
});
69+
);
7170

7271
if (firstCssRel) {
7372
const header = `Link: <${firstCssRel.href}>; rel=preload; as=style`;

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"eslint": "7.31.0",
5151
"eslint-config-prettier": "8.3.0",
5252
"eslint-config-standard": "16.0.3",
53-
"eslint-config-xo": "0.36.0",
53+
"eslint-config-xo": "0.37.0",
5454
"eslint-formatter-pretty": "4.1.0",
5555
"kleur": "4.1.4",
5656
"mkdirplz": "1.0.2",

0 commit comments

Comments
 (0)