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

@code-shaper/eslint-config

v1.0.2

Published

Code Shaper ESLint configuration

Downloads

177

Readme

eslint-config

This package publishes 4 shared ESLint configurations from which all other .eslintrc.js's inherit.

  1. @code-shaper/eslint-config: This is the default configuration and points to @code-shaper/eslint-config-lenient.
  2. @code-shaper/eslint-config-lenient: A rather lenient configuration which can be used with code bases that don't follow very opinionated coding conventions.
  3. @code-shaper/eslint-config-strict: A stricter configuration intended for code bases that follow very opinionated coding conventions.
  4. @code-shaper/eslint-config/strict-react: The same as @code-shaper/eslint-config/strict, but with added rules specifically for React.

To switch from lenient to strict configuration, simply change line 1 in ./index.js to module.exports = require('./strict');. This will change the entire repo to enforce strict coding conventions. You can also opt to switch over gradually by specifying strict mode one workspace at a time. To do this, change the .eslintrc.js file of the desired workspace to extend @code-shaper/eslint-config/strict instead of @code-shaper/eslint-config.

Plugins

This config pulls in the following eslint rules/plugins. In addition to these plugins, there are a few customizations that have been made to select individual rules. These customizations and all rules used are clearly marked in the package's lenient.js & strict.js.

eslint

Applies the following rules to all JavaScript and TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-typescript

Applies the following rules to all Typescript files:

  • all recommended rules
  • all recommended-requiring-type-checking rules
  • all strict rules
  • all automatically fixable rules

eslint-plugin-import

Applies the following rules to all JavaScript and TypeScript files:

  • all recommended rules
  • all typescript rules (only applied to TypeScript files)
  • all react rules (only applied to TypeScript files)
  • all automatically fixable rules

eslint-plugin-promise

Applies the following rules to all JavaScript and TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-regexp

Applies the following rules to all JavaScript and TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-eslint-comments

Applies the following rules to all JavaScript and TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-jsx-a11y

Applies the following rules to all TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-react

Applies the following rules to all TypeScript files:

  • all recommended rules
  • all jsx-runtime rules
  • all automatically fixable rules

eslint-plugin-react-hooks

Applies the following rules to all TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-jest

Applies the following rules to all JavaScript and TypeScript test files:

  • all recommended rules
  • all style rules
  • all automatically fixable rules

eslint-plugin-jest-dom

Applies the following rules to all JavaScript and TypeScript test files:

  • all recommended rules
  • all automatically fixable rules

eslint-plugin-testing-library

Applies the following rules to all JavaScript and TypeScript test files:

  • all react rules
  • all automatically fixable rules

eslint-plugin-tailwindcss

Applies the following rules to all TypeScript files:

  • all recommended rules
  • all automatically fixable rules

eslint-config-prettier

Applies the eslint-config-prettier plugin to disable all rules that would be covered by or would conflict with prettier. It is recommended to run prettier separately, after running eslint.

eslint-plugin-only-error

Applies the only-error plugin to treat all lint warnings as errors.