diff --git a/eslint.config.mjs b/eslint.config.js similarity index 84% rename from eslint.config.mjs rename to eslint.config.js index f96f779..cde726d 100644 --- a/eslint.config.mjs +++ b/eslint.config.js @@ -4,7 +4,7 @@ import pluginPrettier from 'eslint-plugin-prettier/recommended'; export default [ { - files: ['**/*.{js,mjs}'], + files: ['**/*.js'], languageOptions: { globals: { ...globals.node, @@ -18,4 +18,7 @@ export default [ }, pluginJs.configs.recommended, pluginPrettier, + { + ignores: ['node_modules/*', 'dist/*'], + }, ]; diff --git a/package.json b/package.json index a3d0bbf..6af8e38 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,13 @@ "author": "Ghostery GmbH.", "description": "Converts urlfilters to DNR format", "license": "GPL-3.0", + "type": "module", "scripts": { "build": "bun ./scripts/build.js", "serve": "bun --watch scripts/serve.js", "test.unit": "bun test test/unit", "test.e2e": "playwright test test/e2e/index.spec.js", - "lint": "eslint src/ scripts/ test/ *.{js,mjs}" + "lint": "eslint" }, "dependencies": { "@adguard/scriptlets": "^1.12.1",