module.exports = { root: true, parser: "@typescript-eslint/parser", parserOptions: { project: "./tsconfig.eslint.json", tsconfigRootDir: __dirname, }, plugins: ["@typescript-eslint", "deprecation", "prettier"], ignorePatterns: ["src/common/browserScripts/rollup.config.mjs"], extends: [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", ], rules: { "@next/next/no-html-link-for-pages": 0, "prettier/prettier": "error", // recommended for safety "@typescript-eslint/no-floating-promises": "error", // forgetting to await Activities and Workflow APIs is bad "deprecation/deprecation": "warn", // code style preference "object-shorthand": ["warn", "always"], // relaxed rules, for convenience "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", }, ], "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/ban-ts-comment": "warn", "no-empty": "warn", }, };