Skip to content

Commit 5729a98

Browse files
committed
switch to ESLint 9+, upgrade dev deps
1 parent dcc6694 commit 5729a98

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

eslint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from 'eslint-config-mourner';

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export default class Flatbush {
268268
const results = [];
269269
const maxDistSquared = maxDistance * maxDistance;
270270

271+
/* eslint-disable no-labels */
271272
outer: while (nodeIndex !== undefined) {
272273
// find the end index of the node
273274
const end = Math.min(nodeIndex + this.nodeSize * 4, upperBound(nodeIndex, this._levelBounds));

package.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"types": "index.d.ts",
1313
"scripts": {
1414
"pretest": "eslint index.js test.js bench.js",
15-
"test": "tsc && node test.js",
15+
"test": "tsc && node --test",
1616
"build": "rollup index.js -o flatbush.js -n Flatbush -f umd -p node-resolve",
1717
"prepublishOnly": "tsc && npm run build"
1818
},
@@ -25,12 +25,6 @@
2525
"type": "git",
2626
"url": "git+https://github.com/mourner/flatbush.git"
2727
},
28-
"eslintConfig": {
29-
"extends": "mourner",
30-
"rules": {
31-
"no-labels": "off"
32-
}
33-
},
3428
"keywords": [
3529
"geometry",
3630
"spatial",
@@ -44,11 +38,11 @@
4438
},
4539
"devDependencies": {
4640
"@rollup/plugin-node-resolve": "^15.2.3",
47-
"eslint": "^8.56.0",
48-
"eslint-config-mourner": "^3.0.0",
41+
"eslint": "^9.5.0",
42+
"eslint-config-mourner": "^4.0.0",
4943
"rbush": "^3.0.1",
5044
"rbush-knn": "^3.0.1",
5145
"rollup": "^4.18.0",
52-
"typescript": "^5.4.5"
46+
"typescript": "^5.5.2"
5347
}
5448
}

test.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global SharedArrayBuffer */
21
import Flatbush from './index.js';
32
import test from 'node:test';
43
import assert from 'node:assert/strict';

0 commit comments

Comments
 (0)