@alljoint-next/eslint-config

The ESLint Config Be Used For AllJointNext

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@alljoint-next/eslint-config
2160.3.13a year ago3 years agoMinified + gzip package size for @alljoint-next/eslint-config in KB

Readme

ESLintConfig
The ESLint Config Be Used For AllJointNext

Usage

  1. Installation

yarn add eslint prettier @alljoint-next/eslint-config --dev
# npm install eslint prettier @alljoint-next/eslint-config --save-dev

  1. Setup Configuration

echo '{ "extends": "@alljoint-next" }' > .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'"
  }
}