Skip to content

Commit 93cc1fc

Browse files
committed
overhaul build, types etc.
1 parent 083e231 commit 93cc1fc

15 files changed

+2221
-337
lines changed

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
save-exact=true
3+
package-lock=true
4+
engine-strict=true

eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,ts}"]},
9+
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
10+
{languageOptions: { globals: globals.browser }},
11+
pluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
];

0 commit comments

Comments
 (0)