0.1.6 • Published 13 days ago

@rainetian/lint v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@rainetian/lint

NPM version

Stylelint config, ESlint config, Prettier config for fewismuch

Installation

npm i @rainetian/lint --save-dev

pnpm i @rainetian/lint --save-dev

yarn add @rainetian/lint -D

Usage

Create a new .npmrc file (if it doesn't exist) and add the following:

lockfile=false
resolution-mode=highest
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*stylelint*

stylelint

in .stylelintrc.js

module.exports = require("@rainetian/lint").stylelint

eslint

in .eslintrc.js

module.exports = require('@rainetian/lint').eslint

prettier

in .prettierrc.js

module.exports = require('@rainetian/lint').prettier