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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@compass-aiden/eslint-plugin

v1.1.2

Published

Recommend eslint config

Downloads

6

Readme

@compass-aiden/eslint-plugin

Recommend eslint config

为什么会有它?

统一Eslint代码校验标准

它遵循什么标准?

将整个Eslint规范分为四层,先后顺序如下,后置规则覆盖前置规则:

  1. airbnb, 业内推荐度极高的标准
  2. 框架推荐标准, 适用于具体运行环境的标准,诸如js,ts,react,vue,angular等等
  3. 抽象的可共用标准, 填补前两条未覆盖的推荐规则或修复过于严苛难落地的规则
  4. 业务标准, 实际落地时,由业务项目再次覆盖的规则 (本库不涉及此层)

如您想为第三层贡献规则,请根据 ISSUES 模板的引导提交你的贡献,非常感谢.

快速上手

npm install @compass-aiden/eslint-plugin eslint eslint-plugin-import --save-dev 在开发环境下安装依赖

Typescript环境使用

更新.eslintrc配置文件:

// 使用eslint配置
module.exports = {
    parserOptions: {
        project: './tsconfig.json'
    },
    extends: [
        // typescript使用此配置
        'plugin:@compass-aiden/recommended-ts',
    ],
}

本地开发

pnpm dev 启动开发模式

pnpm build 打包构建

pnpm lint 执行代码校验

发布

nrm use npm 切换源为npm官方源,如是可跳过此步骤

npm adduser 登陆,如已登陆可跳过

npm publish 发布

Roadmap

  • [x] Support Typescript plugin
  • [ ] Add issue template
  • [ ] Support Vue3 plugin
  • [ ] Support Vue2 plugin
  • [ ] Support React plugin
  • [ ] Support Next plugin