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

@yuntijs/lint

v1.7.1

Published

📐 ESlint, Stylelint, Commitlint, Prettier, Remark, Semantic Release config for YuntiJS

Downloads

25

Readme

ESlint, Stylelint, Commitlint, Prettier, Remark, Semantic Release config for YuntiJS, based on Lobe Lint, eslint-config-tenx and stylelint-config-tenx.

Changelog · Report Bug · Request Feature

TOC

📦 Installation

To install YuntiJS Lint, run the following command:

pnpm add eslint@^8 prettier@^3 @yuntijs/lint -D

To use template ignore files, run the following command:

curl -O https://raw.githubusercontent.com/yuntijs/yunti-lint/main/.eslintignore
curl -O https://raw.githubusercontent.com/yuntijs/yunti-lint/main/.gitignore
curl -O https://raw.githubusercontent.com/yuntijs/yunti-lint/main/.prettierignore

☁️ Usage

.npmrc

please add the following to your .npmrc file first:

public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*

ESlint

config can be found at .eslintrc.js

module.exports = require('@yuntijs/lint').eslint;
// ~ for Node.js project should use eslintNodejs
// module.exports = require('@yuntijs/lint').eslintNodejs;

Prettier

config can be found at .prettierrc.js

module.exports = require('@yuntijs/lint').prettier;

Stylelint

install stylelint first:

pnpm add stylelint@^15 -D

config can be found at .stylelintrc.js

module.exports = require('@yuntijs/lint').stylelint;

Commitlint

install commitlint first:

pnpm add commitlint@^18 -D

config can be found at .commitlintrc.js

module.exports = require('@yuntijs/lint').commitlint;

Changelog

config can be found at .changelogrc.js

module.exports = require('@yuntijs/lint').changelog;

Semantic Release

install semantic-release first:

pnpm add semantic-release@^21 -D

config can be found at .releaserc.js

module.exports = require('@yuntijs/lint').semanticRelease;
// ~ for monoRepo project should use semanticReleaseMonoRepo
// module.exports = require('@yuntijs/lint').semanticReleaseMonoRepo;

Remark

install remark first:

pnpm add remark@^14 remark-cli@^11 -D

config can be found at .remarkrc.js

module.exports = require('@yuntijs/lint').remarklint;

⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

git clone https://github.com/yuntijs/yunti-lint.git
cd yuntijs/lint
pnpm install
pnpm start

🤝 Contributing

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you’re made of.


📝 License

Copyright © 2023 YuntiJS. This project is MIT licensed.