npm-package-json-lint-config-itgalaxy
Itgalaxy org's npm-package-json-lint config.
Last updated 5 months ago by evilebottnawi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install npm-package-json-lint-config-itgalaxy 
SYNC missed versions from official npm registry.

npm-package-json-lint-config-itgalaxy

NPM version Travis Build Status dependencies Status devDependencies Status peerDependencies Status

Installation

You'll first need to install npm-package-json-lint:

$ npm i npm-package-json-lint --save-dev

Next, install npm-package-json-lint-config-itgalaxy:

$ npm install npm-package-json-lint-config-itgalaxy --save-dev

Usage

Add the following to your .npmpackagejsonlintrc.json or npmpackagejsonlint.config.js file:

.npmpackagejsonlintrc.json

{
  "extends": "npm-package-json-lint-config-itgalaxy"
}

npmpackagejsonlint.config.js

module.exports = {
  extends: "npm-package-json-lint-config-itgalaxy",
};

If you need to override a rule, your .npmpackagejsonlintrc.json or npmpackagejsonlint.config.js file should look like the example below. All shared rules will be used, but license-type will be turned off.

npmpackagejsonlint.config.js

module.exports = {
  extends: "npm-package-json-lint-config-itgalaxy",
  rules: {
    "license-type": "off",
  },
};

FAQ

Q: My package contains only one file (for example: index.js)

A: Just use empty array of files:

package.json

{
  "files": []
}

Q: Do I need to list all files in files field

A: No. Some files always included in package. More information.


Q: My package does not contain js files, it is just font/image/etc set.

A: Just disable require-main rule.

npmpackagejsonlint.config.js

module.exports = {
  extends: "npm-package-json-lint-config-itgalaxy",
  rules: {
    "require-main": "off",
  },
};

Changelog

License

Current Tags

  • 5.0.0                                ...           latest (5 months ago)

5 Versions

  • 5.0.0                                ...           5 months ago
  • 4.0.0                                ...           a year ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |