eslint-config-metarhia

2019-10-09 admin

eslint-config-metarhia是什么

什么是eslint-config-metarhia,ESLint config for Metarhia projects

eslint-config-metarhia使用教程帮助文档

eslint-config-metarhia

Build Status Greenkeeper badge

Opinionated ESLint config and de-facto JavaScript styleguide for Metarhia projects.

Usage

  1. Install ESLint, this config and required plugins:

    npm i -D eslint eslint-plugin-import eslint-config-metarhia
    
  2. Add "extends": "metarhia" to your .eslintrc.

Contributing

Please adhere to Conventional Commits styleguide for commit messages (npm install creates a Git hook that lints your commit messages, and they are also checked on CI, but please write them properly beforehand so that they don’t get rejected. If that happens locally while committing, though, don’t worry, your commit message isn’t lost, you can still find it in .git/COMMIT_EDITMSG).

Releasing

Collaborators can release new versions using

npm run release
git push origin master --follow-tags
npm publish

This will update the version in package.json and package-lock.json according to semantic versioning using commit messages to determine whether it is a patch, minor or major release, update the changelog, tag the new version in Git, and publish it to npm registry.

License

MIT. See the LICENSE file for details.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-76949.html

文章标题:eslint-config-metarhia

回到顶部