Skip to content

Rule List

Here’s a list of all rules that this plugin provides.

πŸ’Ό Configurations enabled in.
βœ”οΈ Set in the legacy-recommended configuration.
βœ… Set in the recommended configuration.
πŸ“¦ Set in the recommended-publishable configuration.
🎨 Set in the stylistic configuration.
πŸ”§ Automatically fixable by the --fix CLI option.
πŸ’‘ Manually fixable by editor suggestions.
❌ Deprecated.

NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β DescriptionπŸ’ΌπŸ”§πŸ’‘βŒ
bin-name-casingEnforce that names for bin properties are in kebab case.πŸŽ¨πŸ’‘
exports-subpaths-styleEnforce consistent format for the exports field (implicit or explicit subpaths).πŸŽ¨πŸ”§
no-empty-fieldsReports on unnecessary empty arrays and objects.βœ”οΈ βœ… πŸ“¦πŸ’‘
no-redundant-filesPrevents adding unnecessary / redundant files.βœ”οΈ βœ… πŸ“¦πŸ’‘
no-redundant-publishConfigWarns when publishConfig.access is used in unscoped packages.βœ”οΈ βœ… πŸ“¦πŸ’‘
order-propertiesPackage properties should be declared in standard orderπŸŽ¨πŸ”§
repository-shorthandEnforce either object or shorthand declaration for repository.βœ”οΈ βœ… πŸ“¦πŸ”§
require-attributionEnsures that proper attribution is included, requiring that either author or contributors is defined, and that if contributors is present, it should include at least one contributor.βœ”οΈ βœ… πŸ“¦πŸ’‘
require-authorRequires the author property to be present.
require-binRequires the bin property to be present.
require-bugsRequires the bugs property to be present.
require-bundleDependenciesRequires the bundleDependencies property to be present.
require-contributorsRequires the contributors property to be present.
require-cpuRequires the cpu property to be present.
require-dependenciesRequires the dependencies property to be present.
require-descriptionRequires the description property to be present.βœ”οΈ βœ… πŸ“¦
require-devDependenciesRequires the devDependencies property to be present.
require-devEnginesRequires the devEngines property to be present.
require-directoriesRequires the directories property to be present.
require-enginesRequires the engines property to be present.
require-exportsRequires the exports property to be present.βœ”οΈ βœ… πŸ“¦
require-filesRequires the files property to be present.βœ”οΈ βœ… πŸ“¦
require-fundingRequires the funding property to be present.
require-homepageRequires the homepage property to be present.
require-keywordsRequires the keywords property to be present.
require-licenseRequires the license property to be present.βœ”οΈ βœ… πŸ“¦
require-mainRequires the main property to be present.
require-manRequires the man property to be present.
require-moduleRequires the module property to be present.
require-nameRequires the name property to be present.βœ”οΈ βœ… πŸ“¦
require-optionalDependenciesRequires the optionalDependencies property to be present.
require-osRequires the os property to be present.
require-packageManagerRequires the packageManager property to be present.
require-peerDependenciesRequires the peerDependencies property to be present.
require-privateRequires the private property to be present.πŸ”§
require-publishConfigRequires the publishConfig property to be present.
require-repositoryRequires the repository property to be present.βœ”οΈ βœ… πŸ“¦
require-scriptsRequires the scripts property to be present.
require-sideEffectsRequires the sideEffects property to be present.βœ”οΈ βœ… πŸ“¦
require-typeRequires the type property to be present.βœ”οΈ βœ… πŸ“¦πŸ”§
require-typesRequires the types property to be present.
require-versionRequires the version property to be present.βœ”οΈ βœ… πŸ“¦
restrict-dependency-rangesRestricts the range of dependencies to allow or disallow specific types of ranges.πŸ’‘
restrict-private-propertiesDisallows unnecessary properties in private packages.πŸ”§πŸ’‘
restrict-top-level-propertiesDisallows specified top-level properties in package.json.πŸ’‘
scripts-name-casingEnforce that names for scripts are in kebab case (optionally separated by colons).πŸŽ¨πŸ’‘
sort-collectionsSelected collections must be in a consistent order (lexicographical for most; lifecycle-aware for scripts).βœ”οΈ βœ… πŸ“¦πŸ”§
specify-peers-locallyRequires that all peer dependencies are also declared as dev dependenciesβœ”οΈ βœ… πŸ“¦πŸ’‘
unique-dependenciesChecks a dependency isn’t specified more than once (i.e. in dependencies and devDependencies)βœ”οΈ βœ… πŸ“¦πŸ’‘
valid-authorEnforce that the author property is valid.βœ”οΈ βœ… πŸ“¦
valid-binEnforce that the bin property is valid.βœ”οΈ βœ… πŸ“¦
valid-bugsEnforce that the bugs property is valid.βœ”οΈ βœ… πŸ“¦
valid-bundleDependenciesEnforce that the bundleDependencies (also bundledDependencies) property is valid.βœ”οΈ βœ… πŸ“¦
valid-configEnforce that the config property is valid.βœ”οΈ βœ… πŸ“¦
valid-contributorsEnforce that the contributors property is valid.βœ”οΈ βœ… πŸ“¦
valid-cpuEnforce that the cpu property is valid.βœ”οΈ βœ… πŸ“¦
valid-dependenciesEnforce that the dependencies property is valid.βœ”οΈ βœ… πŸ“¦
valid-descriptionEnforce that the description property is valid.βœ”οΈ βœ… πŸ“¦
valid-devDependenciesEnforce that the devDependencies property is valid.βœ”οΈ βœ… πŸ“¦
valid-devEnginesEnforce that the devEngines property is valid.βœ”οΈ βœ… πŸ“¦
valid-directoriesEnforce that the directories property is valid.βœ”οΈ βœ… πŸ“¦
valid-enginesEnforce that the engines property is valid.βœ”οΈ βœ… πŸ“¦
valid-exportsEnforce that the exports property is valid.βœ”οΈ βœ… πŸ“¦
valid-filesEnforce that the files property is valid.βœ”οΈ βœ… πŸ“¦
valid-fundingEnforce that the funding property is valid.βœ”οΈ βœ… πŸ“¦
valid-homepageEnforce that the homepage property is valid.βœ”οΈ βœ… πŸ“¦
valid-keywordsEnforce that the keywords property is valid.βœ”οΈ βœ… πŸ“¦
valid-licenseEnforce that the license property is valid.βœ”οΈ βœ… πŸ“¦
valid-mainEnforce that the main property is valid.βœ”οΈ βœ… πŸ“¦
valid-manEnforce that the man property is valid.βœ”οΈ βœ… πŸ“¦
valid-moduleEnforce that the module property is valid.βœ”οΈ βœ… πŸ“¦
valid-nameEnforce that package names are valid npm package namesβœ”οΈ βœ… πŸ“¦
valid-optionalDependenciesEnforce that the optionalDependencies property is valid.βœ”οΈ βœ… πŸ“¦
valid-osEnforce that the os property is valid.βœ”οΈ βœ… πŸ“¦
valid-package-definitionEnforce that package.json has all properties required by the npm spec❌
valid-packageManagerEnforce that the packageManager property is valid.βœ”οΈ βœ… πŸ“¦
valid-peerDependenciesEnforce that the peerDependencies property is valid.βœ”οΈ βœ… πŸ“¦
valid-privateEnforce that the private property is valid.βœ”οΈ βœ… πŸ“¦
valid-publishConfigEnforce that the publishConfig property is valid.βœ”οΈ βœ… πŸ“¦
valid-repositoryEnforce that the repository property is valid.βœ”οΈ βœ… πŸ“¦
valid-repository-directoryEnforce that if repository directory is specified, it matches the path to the package.json fileβœ”οΈ βœ… πŸ“¦πŸ’‘
valid-scriptsEnforce that the scripts property is valid.βœ”οΈ βœ… πŸ“¦
valid-sideEffectsEnforce that the sideEffects property is valid.βœ”οΈ βœ… πŸ“¦
valid-typeEnforce that the type property is valid.βœ”οΈ βœ… πŸ“¦
valid-versionEnforce that package versions are valid semver specifiersβœ”οΈ βœ… πŸ“¦
valid-workspacesEnforce that the workspaces property is valid.βœ”οΈ βœ… πŸ“¦