diff --git a/eslint.config.js b/eslint.config.js index 30c4da5df..d3f346a08 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -165,7 +165,7 @@ export default tseslint.config( }, }, { - files: ['**/*.{ts,tsx,mts,cts,js,cjs}'], + files: ['**/*.{ts,tsx,mts,cts,js,cjs,mjs,mjsx}'], ignores: ['./plugins/*/*.ts', './plugins/multisrc/*/template.ts'], rules: { 'no-unused-vars': 'off', diff --git a/package.json b/package.json index fb2cfd621..4fcdca501 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "serve:dev": "npm run build:compile && npm run build:manifest:dev && serve", "lint": "npx eslint .", "lint:fix": "npx eslint . --fix", - "format": "prettier --write \"./**/*.{js,ts}\"", - "format:check": "prettier --check \"./**/*.{js,ts}\"", + "format": "prettier --write \"./**/*.{js,mjs,ts}\"", + "format:check": "prettier --check \"./**/*.{js,mjs,ts}\"", "check:sites": "node scripts/check-plugin-sites.js", "check:plugin": "node scripts/live-check-plugin.js", "prepare": "husky" @@ -95,6 +95,6 @@ "zustand": "^5.0.1" }, "lint-staged": { - "**/*.{js,ts,jsx,tsx}": "prettier --write" + "**/*.{js,mjs,ts,jsx,tsx}": "prettier --write" } } diff --git a/tsconfig.json b/tsconfig.json index 7d06e7b10..e983b2f18 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -122,6 +122,7 @@ "./plugins/**/*.broken.ts", "./.js/**/*", "scripts/**", + "./tests/**", "docs/**", "public/**", ".github/**", diff --git a/tsconfig.production.json b/tsconfig.production.json index 17a7a6252..66cdcebea 100644 --- a/tsconfig.production.json +++ b/tsconfig.production.json @@ -115,6 +115,7 @@ "./plugins/**/*.broken.ts", "./.js/**/*", "scripts/**", + "./tests/**", "docs/**", "./src/*.*", "./*.*",