trash-cleaner
Version:
Finds and deletes trash email in the mailbox
49 lines (47 loc) • 1.43 kB
JavaScript
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.js"],
ignores: ["node_modules/**"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
process: "readonly",
console: "readonly",
Buffer: "readonly",
setTimeout: "readonly",
setInterval: "readonly",
clearTimeout: "readonly",
clearInterval: "readonly",
Promise: "readonly",
URL: "readonly",
},
},
rules: {
"no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"no-undef": "error",
"no-const-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-unreachable": "error",
"eqeqeq": ["warn", "smart"],
"no-throw-literal": "error",
"prefer-const": "warn",
},
},
{
files: ["test/**/*.js"],
languageOptions: {
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
after: "readonly",
beforeEach: "readonly",
afterEach: "readonly",
},
},
},
]);