Skip to content
Ultracite
Esc
↑↓navigate↵open⌘Jpreview

Research

Open research on code quality

Research on the lint rules Ultracite turns on: what each one measures, what it means for the people and agents writing the code, and what it costs at scale.

  1. 23 min read

    Arrow functions, hoisting and the order of a file

    Why JavaScript hoists function declarations, what func-style and no-use-before-define ask for together, what converting 10,134 declarations in twelve codebases would break, and what coding agents did with three functions that call each other.

    • func-style
    • no-use-before-define
    • @typescript-eslint/no-use-before-define
    • noInvalidUseBeforeDeclaration
    • useConsistentFunctionStyle
  2. 27 min read

    A length limit can't tell a long function from a bad one

    Where the line, statement and parameter limits came from, what they'd report on 52,834 functions in twelve codebases, how much of the count is the formatter's, and what coding agents did when a user turned one on.

    • max-lines-per-function
    • max-lines
    • max-statements
    • max-params
    • noExcessiveLinesPerFunction
    • useMaxParams
  3. 24 min read

    When a React effect's missing dependency isn't the bug

    Where React's dependency rule came from, why React took its autofix back, what it reports on 2,503 hooks in twelve codebases, and what coding agents did with a stale subscription, a fix that crashes and an omission made on purpose.

    • react-hooks/exhaustive-deps
    • react/exhaustive-deps
    • useExhaustiveDependencies
    • react-hooks/set-state-in-effect
  4. 25 min read

    Sorting object keys changes more than style

    Where the rules that alphabetize object keys came from, why JavaScript lets code read key order, what sorting would do to 13,574 objects in eight TypeScript codebases, and what agents do with an object whose order is the point.

    • sort-keys
    • useSortedKeys
  5. 25 min read

    Who finishes a TODO?

    Where TODO and FIXME came from, what twenty years of research on admitted technical debt found, what happened to 1,892 TODOs in eight TypeScript codebases, and what agents do when a lint rule flags one.

    • no-warning-comments
    • sonarjs/todo-tag
    • sonarjs/fixme-tag
    • unicorn/expiring-todo-comments
  6. 24 min read

    How much of accessibility a linter can see

    Where the rules for alt text, labels, roles and keyboard handlers came from, what automated checks can and can't find, what they catch in seven React codebases and their history, and what agents do with a clickable div.

    • jsx-a11y/click-events-have-key-events
    • jsx-a11y/no-static-element-interactions
    • jsx-a11y/prefer-tag-over-role
    • jsx-a11y/control-has-associated-label
    • jsx-a11y/alt-text
    • useSemanticElements
  7. 14 min read

    The import cycle that works until it doesn't

    Where the rule against circular imports came from, what a cycle actually does to JavaScript, how many real cycles can break, what barrel files cost, and what agents do when the fix needs a file they're told not to touch.

    • import/no-cycle
    • noImportCycles
    • oxc/no-barrel-file
    • noBarrelFile
    • unicorn/no-barrel-files
    • noNamespaceImport
  8. 16 min read

    Is dead code worth an error?

    Where the checks for unused, unreachable and duplicated code came from, what they find in real codebases, why the rare bug looks exactly like a leftover, and what agents do when the linter flags one.

    • no-unused-vars
    • noUnusedVariables
    • no-unreachable
    • no-useless-assignment
    • sonarjs/no-dead-store
    • sonarjs/no-identical-functions
    • sonarjs/no-duplicated-branches
  9. 18 min read

    Cognitive complexity and the cost of reading code

    Where the metric came from, how it scores a function, what the research says it does and doesn't measure, and why it matters more when agents write the code.

    • sonarjs/cognitive-complexity
    • noExcessiveCognitiveComplexity
    • complexity
  10. 14 min read

    What happens to a promise nobody awaits

    Why a floating promise loses its errors, where the rules that catch it came from, what they can and can't see, how often real codebases float promises and why, and what agents do when the linter flags one.

    • no-floating-promises
    • no-misused-promises
    • require-await
    • no-await-in-loop
  11. 15 min read

    Security lint rules find the sink, not the bug

    Where the rules against eval and innerHTML came from, what they see in real code, how few published vulnerabilities they would have caught, and why they still matter when agents write the code.

    • no-eval
    • no-implied-eval
    • no-new-func
    • sonarjs/code-eval
    • no-script-url
    • react/no-danger
    • noDangerouslySetInnerHtml
  12. 16 min read

    Why TypeScript lets you overrule its type checker

    Where any, !, as and @ts-ignore came from, what the rules that ban them can and can't see, how real codebases use them, and what changes when an agent is trying to make a type error go away.

    • no-explicit-any
    • no-non-null-assertion
    • ban-ts-comment
    • no-unsafe-type-assertion
    • noExplicitAny
    • noNonNullAssertion
    • noTsIgnore

Ship less slop

One command sets up your linter, formatter, editor and agents. Works with Oxlint, Biome and ESLint.