npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lough/lint-cli

v0.3.0

Published

This is a Lint tool docked in lough.

Downloads

3

Readme

@lough/lint-cli

This is a Lint tool docked in lough.

Feature

JavaScript 开发中的代码规范自动化搭建脚手架。

支持以下功能

  • eslint: 校验 Javascript 代码

    安装 VSCode 插件 ESLint

    • typescript: 支持 typescript 开发校验

    • react: 支持 react 技术栈开发校验

    • node: 支持 node 开发校验

    • base: javascript 基础校验

  • stylelint: 校验 CSS 代码

    安装 VSCode 插件 Stylelint

  • commitlint: 利用 Git hooks 提交前校验代码

  • prettier: 格式化代码

    安装 VSCode 插件 Prettier - Code formatter

  • editor: 统一编辑器配置

    安装 VSCode 插件 EditorConfig for VS Code

Install

npm i @lough/lint-cli -g

or

yarn add @lough/lint-cli -g

Usage

lough-lint init

CMD

Command

lough-lint [options] [command]

init project lint function.

options:

  • "-tt, --techType [string]", "init tech type: typescript | react | node"
  • "-n, --norms [string...]", "init lint norms: tsconfig | eslint | stylelint | commitlint | prettier | editor"
  • "-q, --quite [boolean]", "execute the program silently.", false

action: (options: IOptions) => Promise<void>

API

Class

InitFlow 初始化流

parameters

| 属性 | 说明 | 必传 | 类型 | 默认值 | | ---- | ----- | ---- | -------- | ------ | | parameters | - | 是 | InitFlowParameters | - |

returns: InitFlow

members

| 属性 | 说明 | 类型 | 标记 | | ---- | ----- | -------- | -------- | | eslint | 代码 | () => void | | | tsconfig | 类型 | () => void | | | stylelint | 样式 | () => void | | | commitlint | 提交 | () => void | | | editor | 编辑器 | () => void | | | prettier | 格式化 | () => void | | | pipeline | 流水线 | (params: { normList: NORM_TYPE[]; }) => void | |

Enum

NORM_TYPE 规范类型

members

| 属性 | 说明 | 值 | | ---- | ---- | ------- | | tsconfig | 类型 | 'tsconfig' | | eslint | 代码 | 'eslint' | | stylelint | 样式 | 'stylelint' | | commitlint | 提交 | 'commitlint' | | prettier | 格式化 | 'prettier' | | editor | 编辑器 | 'editor' |

TECH_TYPE 技术类型

members

| 属性 | 说明 | 值 | | ---- | ---- | ------- | | typescript | TypeScript | 'typescript' | | react | React | 'react' | | node | Node | 'node' |

Interface

InitFlowLifeCycle 初始化流生命周期

members

| 属性 | 说明 | 类型 | | ---- | ---- | ------- | | eslintStart | eslint 开始 | () => any | | eslintEnd | eslint 结束 | () => any | | tsconfigStart | tsconfig 开始 | () => any | | tsconfigEnd | tsconfig 结束 | () => any | | stylelintStart | stylelint 开始 | () => any | | stylelintEnd | stylelint 结束 | () => any | | commitlintStart | commitlint 开始 | () => any | | commitlintEnd | commitlint 结束 | () => any | | editorStart | editor 开始 | () => any | | editorEnd | editor 结束 | () => any | | prettierStart | prettier 开始 | () => any | | prettierEnd | prettier 结束 | () => any |

InitFlowParameters 初始化流参数

members

| 属性 | 说明 | 类型 | | ---- | ---- | ------- | | techType | 技术类型 | TECH_TYPE | | cycle | 生命周期 | InitFlowLifeCycle | | npm | 包 | Package |