next.js 654 B

123456789101112131415161718192021222324252627282930313233343536
  1. const { resolve } = require("node:path");
  2. const project = resolve(process.cwd(), "tsconfig.json");
  3. /** @type {import("eslint").Linter.Config} */
  4. module.exports = {
  5. extends: [
  6. "eslint:recommended",
  7. "prettier",
  8. require.resolve("@vercel/style-guide/eslint/next"),
  9. "turbo",
  10. ],
  11. globals: {
  12. React: true,
  13. JSX: true,
  14. },
  15. env: {
  16. node: true,
  17. browser: true,
  18. },
  19. plugins: ["only-warn"],
  20. settings: {
  21. "import/resolver": {
  22. typescript: {
  23. project,
  24. },
  25. },
  26. },
  27. ignorePatterns: [
  28. // Ignore dotfiles
  29. ".*.js",
  30. "node_modules/",
  31. ],
  32. overrides: [{ files: ["*.js?(x)", "*.ts?(x)"] }],
  33. };