nice-move

@nice move/eslint config vue

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

Version Version: 0.5.57 Version Updated: 07/30/2021 By: nice-move License: MIT

DownloadsLast30Days: 1.5k

https://github.com/nice-move/nice-move

npm i @nice-move/eslint-config-vue
yarn add @nice-move/eslint-config-vue

@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

{
  "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

Copyright © 2020 vuejscomponent.com