library.js 595 B

1234567891011121314151617181920212223242526272829303132333435
  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: ["eslint:recommended", "prettier", "turbo"],
  6. plugins: ["only-warn"],
  7. globals: {
  8. React: true,
  9. JSX: true,
  10. },
  11. env: {
  12. node: true,
  13. },
  14. settings: {
  15. "import/resolver": {
  16. typescript: {
  17. project,
  18. },
  19. },
  20. },
  21. ignorePatterns: [
  22. // Ignore dotfiles
  23. ".*.js",
  24. "node_modules/",
  25. "dist/",
  26. ],
  27. overrides: [
  28. {
  29. files: ["*.js?(x)", "*.ts?(x)"],
  30. },
  31. ],
  32. };