diff --git a/.eslintrc.json b/.eslintrc.json index 897564c50..c3a6fda90 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -65,7 +65,14 @@ "extends": ["plugin:n/recommended"], "env": { "commonjs": true, - "browser": false + "browser": false, + "node": true + }, + "globals": { + "require": "readonly", + "module": "readonly", + "__dirname": "readonly", + "__filename": "readonly" }, "rules": { // plugin:n diff --git a/package.json b/package.json index c20a94cf4..af83166fa 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "url": "https://flowfuse.com" } ], + "type": "module", "files": [ "dist/*", "nodes/*"