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

jxh-eslint-config

v0.1.1

Published

ESLint config for Vue

Downloads

1

Readme

Eslint Config of Vue

Install

NPM

  // 指定你所要使用的全局变量,true允许重写、false不允许
  globals:{},
    // 规则列表
    'no-var': 1, // 禁止var
    eqeqeq: 2, // 要求必须使用全等
    'no-unused-vars': 2, // 不能有声明后未被使用的变量或参数
    'no-console': 1,
    'no-dupe-keys': 1, // 禁止对象中出现重复的key
    'no-irregular-whitespace': 1, // 禁止不规则的空白
    'no-unreachable': 1, // return后禁止出现代码
    'init-declarations': 1, // 要求或禁止var声明中的初始化
    camelcase: 1, // 强制使用驼峰命名
    'max-len': ['error', { code: 80 }],
    'no-underscore-dangle': 1, // 标识符不能以_开头或结尾
    'no-mixed-spaces-and-tabs': 1, // 禁止空格和tab的混合缩进
    'no-multi-spaces': 1, // 不能用多余的空格
    semi: 0, // 关闭语句强制分号结尾
    'max-statements': [0, 12], // 函数内最多有几个声明
    'no-multiple-empty-lines': [0, { max: 50 }], // 空行最多不能超过50行
    'keyword-spacing': 1, // 确保字符前后空格的一致性
    'no-redeclare': 1, // 不允许重复声明
    'no-trailing-spaces': 1, // 不允许在语句后存在多余的空格
    'spaced-comment': 1, // 注释前需要一个空格
    'no-extra-boolean-cast': 0,
    'vue/no-use-v-if-with-v-for': 0,
    'no-class-assign': 0