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

@haixee/eslint-config

v2.1.10

Published

Haixee frontend common eslint config

Downloads

148

Readme

@haixee/eslint-config

ESLint 通用配置 (Flat Config),适用于 Vue 项目。

[!CAUTION] 当前 (v2.x) 版本仅提供 Flat Config 格式,如果要使用 Legacy Config,请安装 v1.x 版本。 如 yarn add -D @haixee/eslint-config@1

安装

yarn add -D @haixee/eslint-config eslint

使用

在项目中新建 eslint.config.mjs 并添加以下配置:

import haixee from '@haixee/eslint-config'

export default [
  ...haixee.configs.base, // 导入默认配置,也可以替换为下方的其他配置
  // 你可以在这里继续添加其他自定义配置
]

[!NOTE] 此默认配置仅包含了 JavaScript 的配置,如果想要其他配置,请参考下方的配置说明。

haixee.configs.node

此配置适用于 Node.js 项目,如 vite.config.ts 等文件的配置。

haixee.configs.typescript

此配置适用于 TypeScript 项目,请安装 typescript 作为 devDependencies

haixee.configs.vue

此配置适用于 Vue3 项目,如 *.vue 文件的配置。

haixee.configs.uniapp

此配置适用于 UniApp + Vue3 项目,需安装上述 Vue 和 TypeScript 所需求的依赖。

如果你使用的是 VSCode,需要安装 ESLint 插件,其他 IDE 也有相应插件。

编译与发布

本仓库启用了 GitHub Actions 自动编译,只需将代码推送到 master 分支即可。

发布新版本时,需要修改 package.json 中的 version 字段,然后将修改后的代码推送到 master 分支。

License

This config is licensed under the CC-BY-SA-4.0 license.