diff --git a/eslint.config.js b/eslint.config.js index 4b65a81..e8b7f78 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,13 +1,11 @@ -const globals = require("globals"); -const pluginJs = require("@eslint/js"); -const tseslint = require("typescript-eslint"); +import globals from "globals"; +import pluginJs from "@eslint/js"; +import tseslint from "typescript-eslint"; -config = [ +export default [ {files: ["**/*.{js,mjs,cjs,ts}"]}, {languageOptions: { globals: globals.node }}, pluginJs.configs.recommended, ...tseslint.configs.recommended, -]; - -module.exports = config; \ No newline at end of file +]; \ No newline at end of file diff --git a/package.json b/package.json index cbc887c..50f3f66 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "generative-ai" ], "version": "1.0.0", - "type": "commonjs", + "type": "module", "main": "lib/cjs/index.js", "module": "./lib/esm/index.mjs", "repository": {