Skip to content

Commit

Permalink
chore: upgrade deps (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Nov 25, 2024
1 parent b1e2641 commit fa0b657
Show file tree
Hide file tree
Showing 48 changed files with 1,566 additions and 1,349 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm exec lint-staged
2 changes: 1 addition & 1 deletion build.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import { build } from "esbuild";
import path from "path";
const srcdir = path.resolve("src");
const outdir = path.resolve("dist");
await build({
Expand Down
45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import eslint from "@eslint/js";
import sortImportPlugin from "eslint-plugin-simple-import-sort";
import globals from "globals";
import tseslint from "typescript-eslint";

export default tseslint.config(
{
ignores: [
".nyc_output",
".vscode*",
"**/__snapshots__",
"**/*dist/",
"coverage",
"node_modules",
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
...globals.node,
},
},
plugins: {
"simple-import-sort": sortImportPlugin,
},
rules: {
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
},
},
);
Loading

0 comments on commit fa0b657

Please sign in to comment.