PackageJSON Plugin
Flint’s package.json plugin includes rules targeted to package.json files.
It comes provided with the flint
npm package.
Presets
Section titled “Presets”Flint’s package.json plugin provides the following preset:
Preset | Recommended | Description |
---|---|---|
logical | ✅ Always | Common rules for finding bugs and good practices in package.json files. |
Flint recommends using the logical
preset:
import { defineConfig, packageJson } from "flint";
export default defineConfig({ use: [ { files: packageJson.files.all, rules: [packageJson.presets.logical], }, ],});
logical
Section titled “logical”Rules that find bugs and enforce best practices and prevent common pitfalls for most-to-all package.json files.
import { defineConfig, packageJson } from "flint";
export default defineConfig({ use: [ { files: packageJson.files.all, rules: packageJson.presets.logical, }, ],});
Implemented: 0 of 51 (0%)
Selectors
Section titled “Selectors”Flint’s package.json plugin will provide the following files selector:
all
:**/package.json
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.