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

@uwhealth/linter-configs

v1.5.7

Published

Collection of linter configurations for front-end projects

Downloads

5

Readme

Linter Configs

lerna

Collection of linter configurations for front-end projects. Allows for standardization across projects. Includes ESLint, StyleLint, and Prettier.

npm install @uwhealth/linter-configs -D

Individual configurations

This is a mono-repo of other configurations. So, installing the linter-configs module will install the other configurations as dependencies. If you just need eslint, prettier, or stylelint configurations, then you can install them individually.

# ESLint
npm install @uwhealth/eslint-config -D
# ESLint Environments
npm install @uwhealth/eslint-plugin-environments -D
# StyleLint
npm install @uwhealth/stylelint-config -D
# Prettier
npm install @uwhealth/prettier-config -D

Adding to a project

Within the configs of eslint or stylelint, add one of the following options:

ESLint

"extends": ["@uwhealth"]

There are also environments available as a dependency of this project. They are name-spaced as @uwhealth/environments.

"env": [
    "@uwhealth/environments/t4",
    "@uwhealth/environments/rhino",
    "@uwhealth/environments/webpack"
]

StyleLint

"extends": ["@uwhealth/stylelint-config"]

This will bring along all plugins and rules to each linter.

Prettier

Prettier configurations are embedded within the eslint and stylelint configurations, so you shouldn't need to do anything extra. But some editor plugins won't use embedded prettier configurations without the existence of a prettier file.

If formatting isn't working in your editor, try adding a .prettierrc.js file at the root of your project with this as its content:

module.exports = require('@uwhealth/prettier-config');

Repo Management

This repo uses Lerna to manage publishing and versioning.

Briefly, this means that all the configs live within this single repo (./packages), but are published as individual npm modules (e.g. @uwhealth/eslint-config, @uwhealth/stylelint-config, etc.). The top level package (where this README lives) essentially just imports the other packages (and brings those others as in as dependencies). This allows projects to import one or all the different configs. Using Lerna, you can make changes to any of the sub-packages and Lerna will decide what packages need to be published (and have their version changed).

If you are making modifications to this repo for the first time, you should run the following commands:

npm install
npm run start

This will make sure you're using the local versions of the dependencies (in the ./packages folder), instead of the packages downloaded from npm. You'll want this, since you're likely making changes to the packages as well as the root directory.

To publish new changes to npm, use the following command:

npx lerna publish

You'll be prompted to decide what type of update this is (patch, minor, major). Unless there's a API change that will affect projects currently using these configs, you should choose patch.

NOTE: You have to be logged into npm and github (in your CLI) in order to publish. (using npm login).