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

@ovyvo/eslint-config

v2.0.0

Published

A shared configuration package for ESLint

Downloads

7

Readme

ESLint Config Of RyanYan

@ovyvo/elsint-config当前版本v2.1.0。相较v1.x,本次版本使用ts重构所有的项目代码,并全面拥抱eslint.config.js扁平化配置,工具内置vue2,vue3及对应的javascript、typescrit语言开发支持。当然您也可以不使用任何框架,只需要简单配置即可。

[!WARNING] 本次更新弃用了v1.1.0命令交互式配置,受限于访问npm外网仓库及交互体验问题,现阶段不再支持。

使用须知

  • 使用该插件您需要使用 Node.js(^18.18.0、^20.9.0 或 >=21.1.0)并支持 SSL。
  • 使用该插件您的eslint版本应>=9,如您对此有疑问请参考 eslint配置迁移指南
  • 请务必保证代码编辑器安装[email protected]插件
  • 启动eslint服务时如报错vsCode版本低请升级vsCode版本以获得完整的功能支持

安装

npm install @ovyvo/eslint-config@latest -D
// or
yarn add @ovyvo/eslint-config@latest -D
// or
pnpm add @ovyvo/eslint-config@latest -D

.eslint.config.js配置

import { defineConfig } from "@ovyvo/eslint-config";

export default defineConfig(options);

options参数

| 属性 | 描述 | 类型 | 默认值 | | ------------ | -------------------------------- | -------------------------------- | ------------ | | frameType | 框架类型 | enum<'vue'|'pure'> | 'vue' | | frameVersion | 框架版本(frameType为vue时可选) | enum<2|3> | 3 | | scriptType | script类型 | enum<'javascript'|'typescript'> | 'javascript' | | ignores | 忽略文件(插件内置忽略文件见下表) | string[] | - | | overrides | 重置或定制rules | String[] | - |

内置忽略文件

"*.sh",
"*.md",
"*.woff",
"*.ttf",
".vscode",
".husky",
".github",
"**/node_modules",
"**/dist",
"**/package-lock.json",
"**/yarn.lock",
"**/pnpm-lock.yaml",
"**/bun.lockb",
"**/CHANGELOG*.md",
"**/LICENSE*",
"**/auto-import?(s).d.ts",
"**/components.d.ts",