2.2.0 • Published 2 years ago

elint-helpers v2.2.0

Weekly downloads
271
License
MIT
Repository
github
Last release
2 years ago

elint-helpers

elint 的 preset 安装器,会将 preset 内携带的配置文件复制到根项目中

默认会复制 ESLint、Stylelint、commitlint、Prettier 和 husky(包含新版和旧版)的配置文件和对应的 ignore 文件

自定义复制文件

修改 preset index.jsconfigFiles,注意,当此值配置以后,将会忽略默认的复制配置

module.exports = {
  configFiles: ['xxx.js']
}

CLI 参数

  • --preset <presetPath>: preset 路径,默认为 process.cwd()
  • --project <projectPath>: 项目路径,默认为从 process.cwd() 起最近的一个 node_modules 上层路径(当在 yarn pnp 环境下,取最近的 .yarn 上层)路径

API

export interface InstallOptions {
  presetPath?: string
  projectPath?: string
}
export declare function install({
  presetPath,
  projectPath
}?: InstallOptions): void
3.0.0-beta.1

2 years ago

3.0.0-beta.0

2 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.4.1

3 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago