@alljoint-next/eslint-config-vue

0.2.5 • Public • Published

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}'"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @alljoint-next/eslint-config-vue

Weekly Downloads

45

Version

0.2.5

License

GPL-3.0

Unpacked Size

40.8 kB

Total Files

5

Last publish

Collaborators

  • trylovetom