@alljoint-next/eslint-config
v0.3.14
Published
The ESLint Config Be Used For AllJointNext
Downloads
498
Readme
ESLintConfig
The ESLint Config Be Used For AllJointNext
Usage
- Installation
yarn add eslint prettier @alljoint-next/eslint-config --dev
# npm install eslint prettier @alljoint-next/eslint-config --save-dev
- Setup Configuration
echo '{ "extends": "@alljoint-next" }' > .eslintrc.json
echo '**/node_modules/**
./node_modules/**
**/.{git,svn,hg}/**
./.{git,svn,hg}/**
**/dist/**
./dist/**' > .eslintignore
- 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'"
}
}