1.0.0 â€ĸ Published 2 months ago

@inigomarquinez/npm-package-json-lint-config-default v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@inigomarquinez/npm-package-json-lint-config-default

npm package license MIT

!NOTE @inigomarquinez opinionated shareable configuration for npm-package-json-lint.

📖 Table of Contents

đŸ“Ļ Installation

Install this package as a devDependencies in your project:

# npm
npm install @inigomarquinez/npm-package-json-lint-config-default --save-dev

# Yarn
yarn add @inigomarquinez/npm-package-json-lint-config-default --dev

After installing it, if a configuration file does not already exist, a .npmpackagejsonlintrc file will be created automatically in the project's root folder with the following configuration:

{
  "extends": [
    "@inigomarquinez/npm-package-json-lint-config-default"
  ]
}

📚 Documentation

Read the npm-package-json-lint docs for more information. You can find specific information about sharing configurations here.

📏 Custom rules

This library extends the configuration defined in npm-package-json-lint-config-default package and customizes the following rules:

RuleCustom value
require-descriptionerror
require-licenseerror
require-repositoryerror
no-repeated-dependencieserror
prefer-alphabetical-dependencieserror
prefer-alphabetical-devDependencieserror
prefer-alphabetical-bundledDependencieserror
prefer-alphabetical-optionalDependencieserror
prefer-alphabetical-peerDependencieserror
description-formaterror
prefer-property-ordererror
no-duplicate-propertieserror

If you are extending this library but you need to override a rule to adapt it to your needs, your .npmpackagejsonlintrc file should look like the example below. In that example, all shared rules will be used, but description-format will be turned off:

{
  "extends": "@inigomarquinez/npm-package-json-lint-config-default",
  "rules": {
    "description-format": "off"
  }
}

🧩 Contributing

If you are interested in helping contribute, please open an issue or pull request.

📝 Changelog

See CHANGELOG for a human-readable history of changes.

Šī¸ License

Distributed under the MIT License. See LICENSE for more information.