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

@programic/eslint-plugin

v10.1.1

Published

Official ESLint plugin for Programic

Downloads

85

Readme

@programic/eslint-plugin

npm version

This package contains Programic's code styling presets and our own custom rules that we were missing in existing plugins.

Usage

  1. Install @programic/eslint-plugin as a dev dependency in your project with npm or yarn along with ESLint:
npm install eslint @programic/eslint-plugin --save-dev
yarn add eslint @programic/eslint-plugin --dev
  1. Add "@programic" (or "@programic/eslint-plugin") to plugins in your .eslintrc.

  2. [Optional] Extend one of our presets, like this "extends": ["plugin:@programic/vue-typescript"]

  3. [Optional] You can add the custom rules you need to your .eslintrc, like this:

{
  "rules": {
    "@programic/newline-before-first-type-import": "error",
    "@programic/dom-class-no-capital-letters": "error"
  }
}
  1. Add a lint script to your package.json: eslint . --ext .js,.jsx so you can run npm run lint or yarn lint. The . can be replaced with the path to your files and the value for the flag --ext can be replaced by a comma seperated list of the file extensions you want to lint. Replace the lint script if it already exists.

Configuration

Some rules use a shared configuration. Please read the settings docs if you want to change the default configuration.

Setup requirements

Before using any config or rule from this package, you should include the necessary packages.

Configs

| | tailwindcss | base | typescript | vue | vue-typescript | |-----------------------------------|-------------|---------|------------|---------|----------------| | eslint | ^8.2.0 | ^8.2.0 | ^8.2.0 | ^8.2.0 | ^8.2.0 | | eslint-plugin-import | - | ^2.27.5 | ^2.27.5 | ^2.27.5 | ^2.27.5 | | eslint-plugin-unicorn | - | ^45.0.2 | ^45.0.2 | ^45.0.2 | ^45.0.2 | | eslint-config-airbnb-base | - | ^15.0.0 | ^15.0.0 | ^15.0.0 | ^15.0.0 | | tailwindcss | ^3.2.7 | - | - | - | - | | eslint-plugin-tailwindcss | ^3.10.3 | - | - | - | - | | typescript | - | - | ^4.9.5 | - | ^4.9.5 | | @typescript-eslint/eslint-plugin | - | - | ^5.53.0 | - | ^5.53.0 | | @typescript-eslint/parser | - | - | ^5.53.0 | - | ^5.53.0 | | eslint-import-resolver-typescript | - | - | ^3.5.3 | - | ^3.5.3 | | vue | - | - | - | ^3.2.45 | ^3.2.45 | | eslint-plugin-vue | - | - | - | ^9.9.0 | ^9.9.0 | | vue-eslint-parser | - | - | - | ^9.1.0 | ^9.1.0 |

You can find out for yourself which packages mentioned above are required per custom rule. For example, any TypeScript related rules requires the TypeScript ESLint packages (mentioned above) and any Vue related rule requires the Vue ESlint packages (mentioned above).