eslint.config.js 512 B

12345678910111213141516171819
  1. import { nextJsConfig } from "@repo/eslint-config/next-js";
  2. /** @type {import("eslint").Linter.Config[]} */
  3. export default [
  4. ...nextJsConfig,
  5. {
  6. rules: {
  7. // Disable prop-types - we use TypeScript for type checking
  8. "react/prop-types": "off",
  9. // Allow styled-jsx
  10. "react/no-unknown-property": ["error", { ignore: ["jsx"] }],
  11. // Allow DATABASE_URL env var
  12. "turbo/no-undeclared-env-vars": [
  13. "error",
  14. { allowList: ["DATABASE_URL"] },
  15. ],
  16. },
  17. },
  18. ];