@alljoint-next/eslint-config

0.3.14 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @alljoint-next/eslint-config

Weekly Downloads

232

Version

0.3.14

License

GPL-3.0

Unpacked Size

42 kB

Total Files

5

Last publish

Collaborators

  • trylovetom