module.exports = { env: { browser: true, es2021: true }, extends: "eslint:recommended", parserOptions: { ecmaVersion: 12, sourceType: "module" }, rules: { "no-undef": "error", // Disallow the use of undeclared variables "no-dupe-keys": "error", // Disallow duplicate keys in object literals "curly": ["error", "all"], // Require curly braces for all control statements "no-eval": "error", // Disallow the use of eval() "no-multi-spaces": "error", // Disallow multiple spaces "semi": ["error", "always"], // Require semicolons at the end of statements "indent": ["error", "tab"], // Enforce consistent indentation with tabs "prefer-const": "error", // Suggest using `const` if a variable is never reassigned "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs } };