JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q43253F
  • License MIT

An opinionated mrm preset aims to enforce code style of vue project.

Package Exports

  • vue-code-style-tools
  • vue-code-style-tools/config.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-code-style-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

VUE-CODE-STYLE-TOOLS

This is an opinionated mrm preset aims to enforce code style of vue projects. It consists of a serires of tasks to install the featuring packages. The tasks are sequential and are not independent, so it is the only way to use this package as a preset to make it work.

Issues/PRs are welcomed.

Featuring Packages

Eslint
Prettier
husky
Lint-staged
Commitlint
eslint-plugin-vue

Prerequisite

  1. Your project must have been inited as a .git repositry.
  2. npm is required.

Cautions

It may cause peerDependecies conflicts. You should better resovle the conflicts first, or you can just undo all the changes which is easy in a git repositry. So don't you worry, keep calm, and take your time.

How to use

cd /your-project
npx mrm setup --preset vue-code-style-tools

If you share your project with others, you should push the changes to your remote repositry and then tell your team to run npm run prepare.

change your code
git add <changed files>
git commit -m "your message here"

You can also use "npx lint-staged" for tht last step instead if you are not ready to commit yet.

If you meet any failed error, interpret the message seriously and then fix it. It couldn't be better to look up the error in its respective offical documents.