JSPM

  • Created
  • Published
  • Downloads 72
  • Score
    100M100P100Q91005F
  • License MIT

A `eslint` config for `vue` project best practice

Package Exports

  • @nice-move/eslint-config-vue
  • @nice-move/eslint-config-vue/index.cjs

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 (@nice-move/eslint-config-vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@nice-move/eslint-config-vue eslint

A eslint config for vue project best practice.

npm github node

Installation

npm install eslint @nice-move/eslint-config-vue --save-dev

Usage

Add to package.json

// example: package.json
{
  "eslintConfig": {
    "extends": "@nice-move/eslint-config-vue"
  }
}

Then run

eslint --fix .

Specification

Environment pattern
browser .js, .vue, .html
node.js .mjs, .cjs
es modules .mjs, .js, .vue, .html
commonjs .cjs, source code in webpack project
webpack src/**, packages/*/**
ava {test,tests,spec,specs}/**, **/*.{test,spec}.*
when eslint-plugin-ava installed

Tips

Noiseless reporting

Rules can handle by prettier and garou is disabled by default.

TODO

  • JSX for vue
  • typescript in vue SFC