1.4.6 • Published 27 days ago

@denaro-config/eslint-config-check-file v1.4.6

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

@denaro-config/eslint-config-check-file

:tada: 前端工程化中的 eslint 通用配置, 提供校验、规范文件或文件夹命名, 一般适用于规范单元测试文件和存放单元测试的目录。

npm (scoped) NPM

GitHub repo size GitHub Repo stars GitHub issues GitHub top language

npm jsDelivr hits (npm scoped)

参考官网地址

安装至您的项目

npm install -D @denaro-config/eslint-config-check-file
# or
pnpm install -D @denaro-config/eslint-config-check-file
# or
yarn add -D @denaro-config/eslint-config-check-file

使用

在项目根目录下创建 .eslintrc.js 文件, 参考配置内容如下:

module.exports = {
  extends: ['@denaro-config/eslint-config-check-file']
}

你也可以在配置中省略 eslint-config

module.exports = {
  extends: ['@denaro-config/check-file']
}

package.json 中添加 lint 命令:

{
  "scripts": {
    "lint": "eslint --ext vue,js,jsx,cjs,mjs,ts,tsx,cts,mts --fix ."
  }
}

结合 commitlint 使用

参考 commitlint

结合 cz-git 使用

参考 cz-git

1.4.6

27 days ago

1.4.5

1 month ago

1.4.4

1 month ago

1.4.3

1 month ago

1.4.2

3 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.2.4

6 months ago

1.3.0

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago