Skip to content

Commit

Permalink
switch to ESLint 9+, upgrade dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jun 26, 2024
1 parent dcc6694 commit 5729a98
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'eslint-config-mourner';
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export default class Flatbush {
const results = [];
const maxDistSquared = maxDistance * maxDistance;

/* eslint-disable no-labels */
outer: while (nodeIndex !== undefined) {
// find the end index of the node
const end = Math.min(nodeIndex + this.nodeSize * 4, upperBound(nodeIndex, this._levelBounds));
Expand Down
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"types": "index.d.ts",
"scripts": {
"pretest": "eslint index.js test.js bench.js",
"test": "tsc && node test.js",
"test": "tsc && node --test",
"build": "rollup index.js -o flatbush.js -n Flatbush -f umd -p node-resolve",
"prepublishOnly": "tsc && npm run build"
},
Expand All @@ -25,12 +25,6 @@
"type": "git",
"url": "git+https://github.com/mourner/flatbush.git"
},
"eslintConfig": {
"extends": "mourner",
"rules": {
"no-labels": "off"
}
},
"keywords": [
"geometry",
"spatial",
Expand All @@ -44,11 +38,11 @@
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"eslint": "^8.56.0",
"eslint-config-mourner": "^3.0.0",
"eslint": "^9.5.0",
"eslint-config-mourner": "^4.0.0",
"rbush": "^3.0.1",
"rbush-knn": "^3.0.1",
"rollup": "^4.18.0",
"typescript": "^5.4.5"
"typescript": "^5.5.2"
}
}
1 change: 0 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global SharedArrayBuffer */
import Flatbush from './index.js';
import test from 'node:test';
import assert from 'node:assert/strict';
Expand Down

0 comments on commit 5729a98

Please sign in to comment.