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

wheelhouse-linter

v1.0.3

Published

The Wheelhouse Coding Standards for Easy to read Javascript and CSS

Downloads

3

Readme

Wheelhouse Linter

The Wheelhouse standards and recommendations for creating, and maintaining well-written, easy to digest Javascript and CSS code

Goals

  • To bring together a collection of practices to unify the style and way that code is written in a code-base. All code in any code-base should look like it was written by a single person, regardless of the number of people contributing to that particular side of the project.

"If you want your code to be easy to write, make it easy to read." -- Robert C. Martin: a.k.a "Uncle Bob"

Features

  • Automatic detection of Git tracked files for a simple to use approach
  • Includes a thorough and sophistical ESLint configuration that has be Optimized for readability and clarity.
  • Contains linting support for the most modern versions of JS as well as common libraries and frameworks such as Lodash, React, or Vue.
  • Includes configuration for prettier which in conjunction with ESLint's fix mode allows for automatic code fixing for sane development.
  • Is backed up with a just as thorough Stylint configuration, also offering the same capabilities utilizing prettier.
  • A collection of gulp tasks to make the linting, fixing, and auto-formating of your code incredibly simple.

Usage

Outside of looking under the hook and finding a few cool rules you might not have seen before, it is incredibly easy to include the linter in a pre-existing project or configuration.

Extend ESLint

extends:
    "./node_modules/wheelhouse-linter/.eslintrc.yml"

And we would do the exact same thing with our Styleling config.

Extend Styleling

extends:
    "./node_modules/wheelhouse-linter/.stylelintrc.yml"

With Gulp

As mentioned before, all of the tooling is conveniently baked into gulp tasks for you. You can see an example of including it in the gulpfile.babel that is in this projects root.

Simply import it and have easy access to some common commands like 'lint:js', 'lint:css', 'fix:js', 'fix:css'

Some of the Tech

Gulp (Project | Homepage)

Bundled with predefined tasks for direct inclusion in your custom gulpfile

Stylelnit (Project | Homepage)

A PostCSS-based linter for CSS that also supports other language dialects such as SCSS and Sass.

ESLint (Project | Homepage)

The successor of both JSHint and JSCS. ESLint is configured here to use the Babel Parser to ensure full ES2017+ support. You can also use this plugin with xo which is an incredibly wonderful and modern Javascript linter.

Prettier (Project)

An Auto-formatting engine for Javascript, JSX, and flow which supports many intelligent features deployed automatically for you

Lint Stages (Project)

Provides automatically linting for all staged '.css' and '.js' files before they are commited to a repository