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

lint-start

v1.1.4

Published

Opinionated linting and formatting auto setup

Downloads

7

Readme

Lint Start

The extremely opinionated linting and formatting quick start tool

There are plenty of great bootstrap projects out there, however, sometimes you have started a project that started off as a quick hack and evolved into something more or have joined an existing project without linting/prettier setup.

The idea here is a one time command that you can run to setup linting and prettier on your current project.

All you need to do is run the following from the root directory of your project! (This will be where your package.json is)

npx lint-start

If using VS Code

It is recommended to run Developer: Reload Window to ensure the new config is picked up by the ide (cmd+shift+p then type Developer: Reload Window)

What is npx?

npx installs and runs packages from an npm registry, making it really easy to use CLI tools hosted on a registry you can find out more here.

At the moment this only supports Node or React projects

What this will set up

  • eslint config: airbnb for React or eslint config: airbnb-base for Node
  • prettier and prettier eslint config
  • eslint config for jest
  • .eslintrc pre-configured
  • .prettierrc pre-configured
  • .prettierignore pre-configured
  • It will add the following dependencies:
babel-eslint
prettier
eslint-plugin-jest
eslint-plugin-prettier
eslint-config-airbnb/eslint-config-airbnb-base
eslint-config-prettier

This will come with some eslint/prettier rules out of the box but you can configure and customise them as normal.

Prerequisites

  • The project must be using git - this is so that you can easily roll back any unwanted changes.
  • The project must have a package.json.
  • It is recommended to remove any existing eslint or prettier config. The tool will attempt to merge existing eslint config rules, however, this feature may be removed in future if it proves troublesome.

You can can set up git with:

git init

You can create a package.json with:

npm init

Uninstalling/Rolling back

npx lint-start --uninstall
  • This will remove any dependencies added by this library.
  • This essentially runs npm uninstall babel-eslint prettier eslint-plugin-jest eslint-plugin-prettier eslint-config-airbnb eslint-config-airbnb-base eslint-config-prettier
  • Then it will delete the following files: .eslintrc, .prettierrc and .prettierignore.

Note: this is why the library will not run without git set up, so that you can easily undo any accidental changes

Contributing

  • Feel free to raise a bug or a PR with any fixes/suggestions!