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-casing | Enforce that names for bin properties are in kebab case. | π¨ | π‘ | ||
| exports-subpaths-style | Enforce consistent format for the exports field (implicit or explicit subpaths). | π¨ | π§ | ||
| no-empty-fields | Reports on unnecessary empty arrays and objects. | βοΈ β π¦ | π‘ | ||
| no-redundant-files | Prevents adding unnecessary / redundant files. | βοΈ β π¦ | π‘ | ||
| no-redundant-publishConfig | Warns when publishConfig.access is used in unscoped packages. | βοΈ β π¦ | π‘ | ||
| order-properties | Package properties should be declared in standard order | π¨ | π§ | ||
| repository-shorthand | Enforce either object or shorthand declaration for repository. | βοΈ β π¦ | π§ | ||
| require-attribution | Ensures 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-author | Requires the author property to be present. | ||||
| require-bin | Requires the bin property to be present. | ||||
| require-bugs | Requires the bugs property to be present. | ||||
| require-bundleDependencies | Requires the bundleDependencies property to be present. | ||||
| require-contributors | Requires the contributors property to be present. | ||||
| require-cpu | Requires the cpu property to be present. | ||||
| require-dependencies | Requires the dependencies property to be present. | ||||
| require-description | Requires the description property to be present. | βοΈ β π¦ | |||
| require-devDependencies | Requires the devDependencies property to be present. | ||||
| require-devEngines | Requires the devEngines property to be present. | ||||
| require-directories | Requires the directories property to be present. | ||||
| require-engines | Requires the engines property to be present. | ||||
| require-exports | Requires the exports property to be present. | βοΈ β π¦ | |||
| require-files | Requires the files property to be present. | βοΈ β π¦ | |||
| require-funding | Requires the funding property to be present. | ||||
| require-homepage | Requires the homepage property to be present. | ||||
| require-keywords | Requires the keywords property to be present. | ||||
| require-license | Requires the license property to be present. | βοΈ β π¦ | |||
| require-main | Requires the main property to be present. | ||||
| require-man | Requires the man property to be present. | ||||
| require-module | Requires the module property to be present. | ||||
| require-name | Requires the name property to be present. | βοΈ β π¦ | |||
| require-optionalDependencies | Requires the optionalDependencies property to be present. | ||||
| require-os | Requires the os property to be present. | ||||
| require-packageManager | Requires the packageManager property to be present. | ||||
| require-peerDependencies | Requires the peerDependencies property to be present. | ||||
| require-private | Requires the private property to be present. | π§ | |||
| require-publishConfig | Requires the publishConfig property to be present. | ||||
| require-repository | Requires the repository property to be present. | βοΈ β π¦ | |||
| require-scripts | Requires the scripts property to be present. | ||||
| require-sideEffects | Requires the sideEffects property to be present. | βοΈ β π¦ | |||
| require-type | Requires the type property to be present. | βοΈ β π¦ | π§ | ||
| require-types | Requires the types property to be present. | ||||
| require-version | Requires the version property to be present. | βοΈ β π¦ | |||
| restrict-dependency-ranges | Restricts the range of dependencies to allow or disallow specific types of ranges. | π‘ | |||
| restrict-private-properties | Disallows unnecessary properties in private packages. | π§ | π‘ | ||
| restrict-top-level-properties | Disallows specified top-level properties in package.json. | π‘ | |||
| scripts-name-casing | Enforce that names for scripts are in kebab case (optionally separated by colons). | π¨ | π‘ | ||
| sort-collections | Selected collections must be in a consistent order (lexicographical for most; lifecycle-aware for scripts). | βοΈ β π¦ | π§ | ||
| specify-peers-locally | Requires that all peer dependencies are also declared as dev dependencies | βοΈ β π¦ | π‘ | ||
| unique-dependencies | Checks a dependency isnβt specified more than once (i.e. in dependencies and devDependencies) | βοΈ β π¦ | π‘ | ||
| valid-author | Enforce that the author property is valid. | βοΈ β π¦ | |||
| valid-bin | Enforce that the bin property is valid. | βοΈ β π¦ | |||
| valid-bugs | Enforce that the bugs property is valid. | βοΈ β π¦ | |||
| valid-bundleDependencies | Enforce that the bundleDependencies (also bundledDependencies) property is valid. | βοΈ β π¦ | |||
| valid-config | Enforce that the config property is valid. | βοΈ β π¦ | |||
| valid-contributors | Enforce that the contributors property is valid. | βοΈ β π¦ | |||
| valid-cpu | Enforce that the cpu property is valid. | βοΈ β π¦ | |||
| valid-dependencies | Enforce that the dependencies property is valid. | βοΈ β π¦ | |||
| valid-description | Enforce that the description property is valid. | βοΈ β π¦ | |||
| valid-devDependencies | Enforce that the devDependencies property is valid. | βοΈ β π¦ | |||
| valid-devEngines | Enforce that the devEngines property is valid. | βοΈ β π¦ | |||
| valid-directories | Enforce that the directories property is valid. | βοΈ β π¦ | |||
| valid-engines | Enforce that the engines property is valid. | βοΈ β π¦ | |||
| valid-exports | Enforce that the exports property is valid. | βοΈ β π¦ | |||
| valid-files | Enforce that the files property is valid. | βοΈ β π¦ | |||
| valid-funding | Enforce that the funding property is valid. | βοΈ β π¦ | |||
| valid-homepage | Enforce that the homepage property is valid. | βοΈ β π¦ | |||
| valid-keywords | Enforce that the keywords property is valid. | βοΈ β π¦ | |||
| valid-license | Enforce that the license property is valid. | βοΈ β π¦ | |||
| valid-main | Enforce that the main property is valid. | βοΈ β π¦ | |||
| valid-man | Enforce that the man property is valid. | βοΈ β π¦ | |||
| valid-module | Enforce that the module property is valid. | βοΈ β π¦ | |||
| valid-name | Enforce that package names are valid npm package names | βοΈ β π¦ | |||
| valid-optionalDependencies | Enforce that the optionalDependencies property is valid. | βοΈ β π¦ | |||
| valid-os | Enforce that the os property is valid. | βοΈ β π¦ | |||
| valid-package-definition | Enforce that package.json has all properties required by the npm spec | β | |||
| valid-packageManager | Enforce that the packageManager property is valid. | βοΈ β π¦ | |||
| valid-peerDependencies | Enforce that the peerDependencies property is valid. | βοΈ β π¦ | |||
| valid-private | Enforce that the private property is valid. | βοΈ β π¦ | |||
| valid-publishConfig | Enforce that the publishConfig property is valid. | βοΈ β π¦ | |||
| valid-repository | Enforce that the repository property is valid. | βοΈ β π¦ | |||
| valid-repository-directory | Enforce that if repository directory is specified, it matches the path to the package.json file | βοΈ β π¦ | π‘ | ||
| valid-scripts | Enforce that the scripts property is valid. | βοΈ β π¦ | |||
| valid-sideEffects | Enforce that the sideEffects property is valid. | βοΈ β π¦ | |||
| valid-type | Enforce that the type property is valid. | βοΈ β π¦ | |||
| valid-version | Enforce that package versions are valid semver specifiers | βοΈ β π¦ | |||
| valid-workspaces | Enforce that the workspaces property is valid. | βοΈ β π¦ |