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

@cuiko/eslint-config

v1.0.10

Published

Public Eslint Config.

Downloads

5

Readme

eslint-config

Based on eslint-config-for.

  • [x] Eslint
  • [x] TypeScript
  • [x] React
  • [x] Vue
  • [x] Prettier
  • [x] Jest

Install

# npm
npm i @cuiko/eslint-config -D
# yarn
yarn add @cuiko/eslint-config -D

Dependencies

1. Eslint Support

# npm
npm i eslint -D
# yarn
yarn add eslint -D

If you're using babel, you also need to install babel-eslint.

# npm
npm i babel-eslint -D
# yarn
yarn add babel-eslint -D

2. TypeScript Support

# npm
npm i @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
# yarn
yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser -D

3. React Support

# npm
npm i eslint-plugin-react -D
# yarn
yarn add eslint-plugin-react -D

4. Vue Support

# npm
npm i eslint-plugin-vue vue-eslint-parser -D
# yarn
yarn add eslint-plugin-vue vue-eslint-parser -D

5. Prettier Support

If your IDE have been supported, you don't have to execute the following command.

# npm
npm i prettier -D
# yarn
yarn add prettier -D

Exec Eslint with Prettier

# npm
npm i prettier eslint-plugin-prettier -D
# yarn
yarn add prettier eslint-plugin-prettier -D

Prettier Extend

# npm
npm i prettier eslint-config-prettier -D
# yarn
yarn add prettier eslint-config-prettier -D

Usage

1. Use Prettier Config

// .prettierrc.js
module.exports = {
  ...require('@cuiko/eslint-config/prettier-config')
}

Use Prettier Plugin

Exec Eslint with Prettier

// .eslintrc.js
module.exports = {
  extends: ['@cuiko/eslint-config/prettier-plugin'],
}

Use Prettier Extend

Prettier Extend

// .eslintrc.js
module.exports = {
  extends: ['@cuiko/eslint-config/prettier-extend'],
}

2. Use React Config

// .eslintrc.js
module.exports = {
  extends: ['@cuiko/eslint-config', '@cuiko/eslint-config/react'],
}

3. Use Vue Config

// .eslintrc.js
module.exports = {
  extends: ['@cuiko/eslint-config', '@cuiko/eslint-config/vue'],
}

4. Use TypeScript Config

// .eslintrc.js
// 当与 react/vue 组合使用时, typescript 的配置引用要在前两者后面
module.exports = {
  extends: ['@cuiko/eslint-config', '@cuiko/eslint-config/typescript'],
}