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

@titicaca/eslint-config-triple

v5.2.1

Published

Triple's ESLint config, following our styleguide.

Downloads

4,148

Readme

@titicaca/eslint-config-triple

Installation

npm install @titicaca/eslint-config-triple eslint --save-dev

Usage

package.json의 scripts 속성에 다음을 추가해주세요.

{
  "scripts": {
    "lint:es": "eslint .",
    "lint:es:fix": "eslint . --fix"
  }
}

.eslintrc.js 파일을 생성하세요. 컨픽은 여러 종류로 구분되어 있어서 프로젝트에 필요한 컨픽만 이어붙어서 사용할 수 있습니다.

JavaScript, TypeScript 코드 린트 규칙을 설정하려면 다음을 추가하세요.

{
  "extends": ["@titicaca/eslint-config-triple"]
}

TypeScript 코드에서 타입 정보까지 활용한 더 엄격한 규칙을 사용하려면 다음을 추가하세요. 이 컨픽도 기본적으로 사용하기를 권장합니다.

{
  "extends": [
    "@titicaca/eslint-config-triple",
    "@titicaca/eslint-config-triple/requiring-type-checking"
  ]
}

React 프론트엔드 프로젝트에서는 다음을 추가하세요.

{
  "extends": [
    // 다른 컨픽...
    "@titicaca/eslint-config-triple/frontend"
  ]
}

Prettier를 사용한다면 다음을 가장 마지막에 추가하세요.

{
  "extends": [
    // 다른 컨픽...
    "@titicaca/eslint-config-triple/prettier"
  ]
}

Contribute

eslint의 최종 설정을 스냅샷으로 기록합니다.

pnpm run test:snapshot

새로운 rule을 추가하여 스냅샷이 깨졌다면, 스냅샷을 업데이트해주세요.

pnpm run update-snapshot

개발중 스냅샷 테스트를 계속 수행하고 싶다면, watch 옵션을 사용하세요.

pnpm run test:snapshot:watch