Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

991 B
Raw Blame
import { defineConfig } from "oxlint";

// Comment-quality rules only, kept out of oxlint.config.ts on purpose.
//
// The main config is run with --max-warnings=0 over the whole frontend, and the
// existing tree still has several hundred findings from these rules. Enabling
// them there would fail every build until the cleanup lands. So they live here
// and are driven by `task comment-lint`, which scopes findings to the lines a
// branch actually added.
//
// Fold this into oxlint.config.ts once the tree is clean; that is the step that
// also buys IDE squiggles, and the point at which this file goes away.

export default defineConfig({
  jsPlugins: ["../scripts/lint/comment-lint-oxlint-plugin.mjs"],
  categories: { correctness: "off" },
  ignorePatterns: [
    "dist",
    "dist-portal",
    "node_modules",
    "playwright-report",
    "storybook-static",
    "test-results",
    "dist",
    "public",
    "src-tauri",
  ],
  rules: {
    "comments/quality": "error",
  },
});