@lough/eslint-config

0.1.6 • Public • Published

@lough/eslint-config

Eslint extends configuration.

Install

npm i @lough/eslint-config -D

or

yarn add @lough/eslint-config -D

Usage

以下为手动安装步骤,自动安装可使用 Cli

  • 新建 .eslintrc.js 文件,用于配置 eslint 检测

支持: typescript, react, node, base

module.exports = {
  extends: ['@lough/eslint-config/react']
}
  • 新建 .eslintignore 文件,用于屏蔽 eslint 检测
node_modules
build
dist
  • 打开 package.json 文件,添加 scripts
{
  "scripts": {
    "lint:es": "eslint -c .eslintrc.js --ext .ts,.tsx ./",
    "lint:es-fix": "eslint --fix -c .eslintrc.js --ext .ts,.tsx ./"
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.61
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.90
0.0.80
0.0.60
0.0.50
0.0.40
0.0.20
0.0.10

Package Sidebar

Install

npm i @lough/eslint-config

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

56.1 kB

Total Files

12

Last publish

Collaborators

  • anciity