Skip to content

Commit b4f8b57

Browse files
committed
chore(deps): update to neostandard based linting
1 parent 1bf86a4 commit b4f8b57

File tree

9 files changed

+5
-32
lines changed

9 files changed

+5
-32
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Buffered parallel processing of async iterables / generators.
1313
[![npm downloads](https://img.shields.io/npm/dm/buffered-async-iterable.svg?style=flat)](https://www.npmjs.com/package/buffered-async-iterable)
1414
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
1515
[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)
16-
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config)
16+
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)
1717
[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)
1818

1919

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@voxpelli/eslint-config';

index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable promise/prefer-await-to-then */
2-
31
// TODO: Get inspired by Matteos https://github.com/mcollina/hwp/blob/main/index.js, eg AbortController is nice?
42
// TODO: Check docs here https://tc39.es/ecma262/#sec-operations-on-iterator-objects
53
// TODO: Look into https://tc39.es/ecma262/#sec-iteratorclose / https://tc39.es/ecma262/#sec-asynciteratorclose
@@ -170,7 +168,6 @@ export function bufferedAsyncMap (input, callback, options) {
170168
};
171169
}
172170

173-
// eslint-disable-next-line promise/no-callback-in-promise
174171
const callbackResult = callback(result.value);
175172
const isSubIterator = isAsyncIterable(callbackResult);
176173

package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build:0": "run-s clean",
3333
"build:1-declaration": "tsc -p declaration.tsconfig.json",
3434
"build": "run-s build:*",
35-
"check:installed-check": "installed-check",
35+
"check:installed-check": "installed-check -i @voxpelli/eslint-config -i eslint",
3636
"check:knip": "knip",
3737
"check:lint": "eslint --report-unused-disable-directives .",
3838
"check:tsc": "tsc",
@@ -54,22 +54,13 @@
5454
"@types/node": "^18.19.24",
5555
"@types/sinon": "^17.0.3",
5656
"@types/sinon-chai": "^3.2.12",
57-
"@voxpelli/eslint-config": "^19.0.0",
57+
"@voxpelli/eslint-config": "^20.0.0-beta.3",
5858
"@voxpelli/tsconfig": "^11.0.0",
5959
"c8": "^10.1.2",
6060
"chai": "^4.4.1",
6161
"chai-as-promised": "^7.1.1",
6262
"chai-quantifiers": "^1.0.18",
63-
"eslint": "^8.57.0",
64-
"eslint-plugin-es-x": "^7.6.0",
65-
"eslint-plugin-import": "^2.29.1",
66-
"eslint-plugin-jsdoc": "^46.10.1",
67-
"eslint-plugin-mocha": "^10.4.3",
68-
"eslint-plugin-n": "^16.6.2",
69-
"eslint-plugin-promise": "^6.1.1",
70-
"eslint-plugin-security": "^1.7.1",
71-
"eslint-plugin-sort-destructure-keys": "^1.6.0",
72-
"eslint-plugin-unicorn": "^48.0.1",
63+
"eslint": "^9.5.0",
7364
"husky": "^9.0.11",
7465
"installed-check": "^9.3.0",
7566
"knip": "^5.22.3",

test/.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/return.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ describe('bufferedAsyncMap() AsyncInterface return()', () => {
9797

9898
return Date.now();
9999
})()
100-
// eslint-disable-next-line promise/prefer-await-to-then
101100
.then(() => false, () => true);
102101

103102
await clock.runAllAsync();

test/values.spec.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ describe('bufferedAsyncMap() values', () => {
505505
result.push(value);
506506
}
507507
})()
508-
// eslint-disable-next-line promise/prefer-await-to-then
509508
.then(
510509
() => {
511510
throw new Error('Expected a rejection');
@@ -545,7 +544,6 @@ describe('bufferedAsyncMap() values', () => {
545544
result.push(value);
546545
}
547546
})()
548-
// eslint-disable-next-line promise/prefer-await-to-then
549547
.then(
550548
() => {
551549
throw new Error('Expected a rejection');
@@ -610,7 +608,6 @@ describe('bufferedAsyncMap() values', () => {
610608
result.push(value);
611609
}
612610
})()
613-
// eslint-disable-next-line promise/prefer-await-to-then
614611
.then(
615612
() => {
616613
throw new Error('Expected a rejection');
@@ -641,7 +638,6 @@ describe('bufferedAsyncMap() values', () => {
641638
const iteratorsNext = iterators.map(async iterator =>
642639
iterator[Symbol.asyncIterator]()
643640
.next()
644-
// eslint-disable-next-line promise/prefer-await-to-then
645641
.catch(err => ({ err }))
646642
);
647643

@@ -672,7 +668,6 @@ describe('bufferedAsyncMap() values', () => {
672668

673669
return result;
674670
})()
675-
// eslint-disable-next-line promise/prefer-await-to-then
676671
.then(
677672
() => {
678673
throw new Error('Expected a rejection');
@@ -709,7 +704,6 @@ describe('bufferedAsyncMap() values', () => {
709704

710705
return result;
711706
})()
712-
// eslint-disable-next-line promise/prefer-await-to-then
713707
.then(
714708
() => {
715709
throw new Error('Expected a rejection');

0 commit comments

Comments
 (0)