@ab.progr/eslint-config-node-extended 中文文档教程
Installation
一个 eslint 扩展,需要零配置并准备好 lint 节点源代码(在引擎盖下使用现有的 eslint 配置用于 airbnb-base 和 prettier)。
NPM
npm install @ab.progr/eslint-config-node-extended --save-dev
or
npm i @ab.progr/eslint-config-node-extended -D
YARN
yarn add @ab.progr/eslint-config-node-extended --dev
or
yarn add @ab.progr/eslint-config-node-extended -D
Usage
// if using .eslintrc.json
{
"extends": "@ab.progr/eslint-config-node-extended"
}
// if using .eslintrc.js
module.exports = {
extends: [require.resolve("@ab.progr/eslint-config-node-extended")],
};
DEMO
Installation
An eslint extension that requires zero configuration and is ready to lint node source code (under the hood uses existing eslint configs for airbnb-base and prettier).
NPM
npm install @ab.progr/eslint-config-node-extended --save-dev
or
npm i @ab.progr/eslint-config-node-extended -D
YARN
yarn add @ab.progr/eslint-config-node-extended --dev
or
yarn add @ab.progr/eslint-config-node-extended -D
Usage
// if using .eslintrc.json
{
"extends": "@ab.progr/eslint-config-node-extended"
}
// if using .eslintrc.js
module.exports = {
extends: [require.resolve("@ab.progr/eslint-config-node-extended")],
};