@nice-move/eslint-config-vue

0.11.4 • Public • Published

@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, .html, .vue
node.js .mjs, .mts, .cjs, .cts
es modules .mjs, .mts, .js, .html, .vue
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

Related

Package Sidebar

Install

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

Weekly Downloads

119

Version

0.11.4

License

MIT

Unpacked Size

6.3 kB

Total Files

4

Last publish

Collaborators

  • airkro