0.1.5 • Published 2 months ago

@alljoint-next/eslint-config-vue3 v0.1.5

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 months ago

ESLintConfigVue3

The ESLint Config Vue 3 Be Used For AllJointNext

Usage

  1. Installation
yarn add eslint prettier @alljoint-next/eslint-config-vue3 --dev
# npm install eslint prettier @alljoint-next/eslint-config-vue3 --save-dev
  1. Setup Configuration
echo '{ "extends": "@alljoint-next/eslint-config-vue3" }' > .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}'"
  }
}