Skip to content

Commit 7df20ad

Browse files
authored
Switch to neostandard and bump dev dependencies (#120)
Restores linting of TypeScript files. Category: none
1 parent b52a491 commit 7df20ad

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ updates:
55
schedule:
66
interval: monthly
77
ignore:
8-
- dependency-name: standard
9-
- dependency-name: ts-standard
8+
- dependency-name: neostandard
9+
- dependency-name: eslint
1010
- dependency-name: "@types/node"
1111
- dependency-name: voxpelli/tsconfig
1212
- dependency-name: typescript

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict'
2+
3+
module.exports = require('neostandard')({
4+
ts: true
5+
})

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"test": "standard && hallmark && (nyc -s node test/self.js | tap-arc) && nyc report",
9+
"test": "eslint && hallmark && (nyc -s node test/self.js | tap-arc) && nyc report",
1010
"test-pessimistic": "node test/self.js | tap-arc -pv",
1111
"test-browsers": "airtap --coverage test/self.js",
1212
"test-electron": "airtap -p electron --coverage test/self.js | tap-arc",
@@ -34,20 +34,21 @@
3434
"module-error": "^1.0.1"
3535
},
3636
"devDependencies": {
37-
"@babel/preset-env": "^7.26.0",
38-
"@types/node": "^22.10.2",
39-
"@voxpelli/tsconfig": "^15.1.0",
37+
"@babel/preset-env": "^7.28.3",
38+
"@types/node": "^24.6.0",
39+
"@voxpelli/tsconfig": "^16.1.0",
4040
"airtap": "^5.0.0",
4141
"airtap-electron": "^1.0.0",
4242
"airtap-playwright": "^1.0.1",
4343
"babelify": "^10.0.0",
4444
"electron": "^33.2.1",
45+
"eslint": "^9.36.0",
4546
"hallmark": "^5.0.1",
47+
"neostandard": "^0.12.2",
4648
"nyc": "^17.1.0",
47-
"standard": "^17.1.2",
4849
"tap-arc": "^1.3.2",
4950
"tape": "^5.9.0",
50-
"typescript": "^5.7.2"
51+
"typescript": "^5.9.2"
5152
},
5253
"repository": {
5354
"type": "git",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@voxpelli/tsconfig/node16.json",
2+
"extends": "@voxpelli/tsconfig/node18.json",
33
"compilerOptions": {
44
"checkJs": false
55
},

types/abstract-chained-batch.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import * as Transcoder from 'level-transcoder'
22
import { AbstractSublevel } from './abstract-sublevel'
33
import { AbstractResource } from './interfaces'
44

5-
export class AbstractChainedBatch<TDatabase, KDefault, VDefault>
6-
implements AbstractResource {
5+
export class AbstractChainedBatch<TDatabase, KDefault, VDefault> implements AbstractResource {
76
constructor (db: TDatabase)
87

98
/**
@@ -59,7 +58,7 @@ export class AbstractChainedBatch<TDatabase, KDefault, VDefault>
5958
/**
6059
* Close the batch.
6160
*/
62-
[Symbol.asyncDispose](): Promise<void>
61+
[Symbol.asyncDispose] (): Promise<void>
6362
}
6463

6564
/**
@@ -120,7 +119,6 @@ export interface AbstractChainedBatchDelOptions<TDatabase, K> {
120119
/**
121120
* Options for the {@link AbstractChainedBatch.write} method.
122121
*/
123-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
124122
export interface AbstractChainedBatchWriteOptions {
125123
// There are no abstract options but implementations may add theirs.
126124
}

types/abstract-iterator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ declare class CommonIterator<TDatabase, T> implements AbstractResource {
9191
/**
9292
* Close the iterator.
9393
*/
94-
[Symbol.asyncDispose](): Promise<void>
94+
[Symbol.asyncDispose] (): Promise<void>
9595
}
9696

9797
export class AbstractIterator<TDatabase, K, V> extends CommonIterator<TDatabase, [K, V]> {

types/abstract-level.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ declare class AbstractLevel<TFormat, KDefault = string, VDefault = string>
7272
/**
7373
* Close the database.
7474
*/
75-
[Symbol.asyncDispose](): Promise<void>
75+
[Symbol.asyncDispose] (): Promise<void>
7676

7777
/**
7878
* Get a value from the database by {@link key}.
@@ -321,12 +321,12 @@ declare class AbstractLevel<TFormat, KDefault = string, VDefault = string>
321321
* resources like iterators and sublevels, and is publicly exposed for custom
322322
* resources.
323323
*/
324-
attachResource(resource: AbstractResource): void
324+
attachResource (resource: AbstractResource): void
325325

326326
/**
327327
* Stop tracking the given {@link resource}.
328328
*/
329-
detachResource(resource: AbstractResource): void
329+
detachResource (resource: AbstractResource): void
330330
}
331331

332332
export { AbstractLevel }

types/abstract-snapshot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export class AbstractSnapshot implements AbstractResource {
2626
/**
2727
* Close the snapshot.
2828
*/
29-
[Symbol.asyncDispose](): Promise<void>
29+
[Symbol.asyncDispose] (): Promise<void>
3030
}

types/interfaces.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
12
import { AbstractLevel } from './abstract-level'
23
import { AbstractSnapshot } from './abstract-snapshot'
34

@@ -38,5 +39,5 @@ export interface AbstractResource extends AsyncDisposable {
3839
/**
3940
* Close the resource. Identical in functionality to {@link close}.
4041
*/
41-
[Symbol.asyncDispose](): Promise<void>
42+
[Symbol.asyncDispose] (): Promise<void>
4243
}

0 commit comments

Comments
 (0)