Skip to content

Commit

Permalink
fix: remove deprecated argument in lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaup committed Dec 15, 2024
1 parent cd76a6e commit 2a98533
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion __tests__/DopeMap.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import hash from "hash-it";
import DopeMap from "../src/index";
import {
nirvanaKey,
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ const runBenchmark = (iterationCounts: number[]) => {
"Object",
"Size",
runBenchmarkTask("DopeMap Size: Object Key", () => {
dopeMap.size;
return dopeMap.size;
}).duration,
runBenchmarkTask("Native Map Size: Object Key", () => {
nativeMap.size;
return nativeMap.size;
}).duration
);

Expand Down Expand Up @@ -164,10 +164,10 @@ const runBenchmark = (iterationCounts: number[]) => {
"String",
"Size",
runBenchmarkTask("DopeMap Size: String Key", () => {
dopeMap.size;
return dopeMap.size;
}).duration,
runBenchmarkTask("Native Map Size: String Key", () => {
nativeMap.size;
return nativeMap.size;
}).duration
);

Expand Down
10 changes: 6 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.browser }},
{
ignores: ["dist/**/*"],
},
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"benchmark": "ts-node benchmarks/benchmark.ts",
"build": "rollup -c",
"test": "jest",
"lint": "eslint . --ext .js,.ts"
"lint": "eslint ."
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 2a98533

Please sign in to comment.