Performance Plugin
Flint’s performance plugin includes rules targeted to code that runs with specialized performance needs. As in, this plugin enforces performance best practices that only apply when code must be as performant as possible.
npm install @flint.fyi/plugin-performance
pnpm install @flint.fyi/plugin-performance
yarn install @flint.fyi/plugin-performance
Presets
Section titled “Presets”Flint’s performance plugin provides the following preset:
Preset | Recommended | Description |
---|---|---|
logical | ✅ Always | Common rules for finding bugs and good practices for high-performance code. |
Flint recommends using the logical
preset:
import { performance } from "@flint.fyi/performance";import { defineConfig } from "flint";
export default defineConfig({ use: [ { files: performance.files.all, rules: [performance.presets.logical], }, ],});
logical
Section titled “logical”Rules that find bugs and enforce good performance practices and catch common pitfalls for most-to-all JavaScript and TypeScript files.
import { performance } from "@flint.fyi/performance";import { defineConfig } from "flint";
export default defineConfig({ use: [ { files: performance.files.all, rules: performance.presets.logical, }, ],});
Implemented: 0 of 3 (0%)
Flint Name | Preset | Biome Rule(s) | Deno Lint Rule(s) | ESLint Rule(s) | Oxlint Rule(s) |
---|---|---|---|---|---|
deletes | Logical | noDelete | |||
importedNamespaceDynamicAccesses | Logical | noDynamicNamespaceImportAccess | |||
spreadAccumulators | Logical | noAccumulatingSpread | oxc/no-accumulating-spread |
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.