Socket
Book a DemoInstallSign in
Socket

@readme/eslint-config

Package Overview
Dependencies
Maintainers
11
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readme/eslint-config

ReadMe coding standards

latest
npmnpm
Version
14.8.1
Version published
Weekly downloads
2.5K
-75.73%
Maintainers
11
Weekly downloads
 
Created
Source

@readme/eslint-config

Core coding standards for ReadMe projects.

npm Build

Installation

You'll need to install ESLint and Prettier into your project. Use this shortcut to install them alongside the config (if using npm 5+):

npx install-peerdeps --dev @readme/eslint-config

If you already have eslint and prettier installed in your project you run this command to install the config:

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

Usage

Create a .eslintrc file with the following contents:

{
  "extends": [
    "@readme/eslint-config"
  ]
}

Configs

ConfigDescription
@readme/eslint-configRules for a pure JS codebase.

Specialties

Note If you use one, or both of these, you should also extend @readme/eslint-config.

ConfigDescription
@readme/eslint-config/esmRules for ESM codebases.
@readme/eslint-config/reactRules for codebases that use React.
@readme/eslint-config/typescriptRules for a TS codebase.

Unit testing

ConfigDescription
@readme/eslint-config/testing/jestRules specific to the Jest test runner.
@readme/eslint-config/testing/jest-domJest-specific rules for when testing, and using jest-dom. Automaticaly imports @readme/eslint-config/testing/jest.
@readme/eslint-config/testing/reactRules specific to React codebases where you use @testing-library/react. Is specific to neither Jest or Vitest.
@readme/eslint-config/testing/vitestRules specific to the Vitest test runner.

Prettier

Included in this is our shared Prettier config. You can use it in your application by adding the following to your package.json:

"prettier": "@readme/eslint-config/prettier"

FAQs

Package last updated on 30 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts