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

@kelysty/eslint-config

v1.0.1

Published

Kelysty UI Eslint configuration

Downloads

6

Readme

@kelysty/eslint-config

Installation

Using npm:

npm install --save-dev eslint @kelysty/eslint-config

Using yarn:

yarn add --dev eslint @kelysty/eslint-config

Usage

Add .eslintrc file in the project root with the following content:

{
  "extends": ["@kelysty/eslint-config"],
  "root": true
}

Client and Server

On the client side:

{
  "extends": "@kelysty/eslint-config/client"
}

This ESLint configuration is extending another configuration from the react.js file, indicating that the code should be treated as ECMAScript modules and specifying that the environment is a browser.

On the server side:

{
  "extends": "@kelysty/eslint-config/server"
}

This ESLint configuration file is tailored for Node.js environments, incorporating security-related rules to help identify and prevent potential security vulnerabilities in the code.

Prettier

Using prettier don't forget to extend root .eslint file with:

{
  "extends": ["@kelysty/eslint-config", "@kelysty/eslint-config/prettier"],
  "root": true
}

This configuration ensures that your ESLint setup aligns with Prettier's formatting conventions, helping you maintain a consistent code style throughout your project

a11y

If you want to spot accessibility issues, extend root config with the additional rules:

{
  "extends": ["@kelysty/eslint-config", "@kelysty/eslint-config/a11y"],
  "root": true
}

this ESLint configuration is tailored for projects that use React and JSX. It enforces recommended accessibility rules provided by the jsx-a11y plugin to help improve the accessibility of your React applications. The goal is to ensure that your UI is usable and understandable by as many people as possible, including those with disabilities

Order

If you want to enforce a convention in module import order, extend root config with the additional rules:

{
  "extends": ["@kelysty/eslint-config", "@kelysty/eslint-config/import-order"],
  "root": true
}

This configuration file is specifying rules related to the order of import statements in your code. It helps maintain a consistent and organized structure for your imports, promoting readability and maintainability

Scripts

Do not forget to add following scripts in your package.json file:

  "scripts": {
    "lint": "yarn run lint:js && yarn run lint:other",
    "lint:js": "eslint . --report-unused-disable-directives",
    "lint:other": "yarn run prettier -- --check"
  }