0.2.5 • Published 1 month ago

@alljoint-next/eslint-config-vue v0.2.5

Weekly downloads
43
License
GPL-3.0
Repository
github
Last release
1 month ago

ESLintConfigVue

The ESLint Config Vue 2 Be Used For AllJointNext

Usage

  1. Installation
yarn add eslint prettier @alljoint-next/eslint-config-vue --dev
# npm install eslint prettier @alljoint-next/eslint-config-vue --save-dev
  1. Setup Configuration
echo '{ "extends": "@alljoint-next/eslint-config-vue" }' > .eslintrc.json
echo '**/node_modules/**
./node_modules/**
**/.{git,svn,hg}/**
./.{git,svn,hg}/**
**/dist/**
./dist/**' > .eslintignore
  1. Add Scripts package.json
{
  "scripts": {
    "format": "prettier '**/*.{js,json,ts,vue,md,yml,yaml}' !**/dist/** !./dist/** !**/coverage/** --write --no-semi --single-quote --trailing-comma none && yarn lint --fix",
    "lint": "eslint '**/*.{js,vue}'"
  }
}