New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-pretty-strict

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-pretty-strict

A strict ESLint config

  • 10.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
decreased by-41.79%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-pretty-strict

A strict ESLint config.

Any style guide written in English is either so brief that it’s ambiguous, or so long that no one reads it.

—Bob Nystrom

This config provides reasonable ESLint rules to detect possible problems and suggest best practices. It includes all the recommended rules from @eslint/js and more.

Installing

npm install --save-dev eslint-config-pretty-strict eslint

Using

Import this config in your eslint.config.js file:

// eslint.config.js
import prettyStrict from "eslint-config-pretty-strict";

export default [...prettyStrict];

Then, run ESLint via the command line interface with:

npx eslint .

# Alternatively, automatically fix most problems
npx eslint . --fix

Usually, you want to run ESLint from a "lint" npm script, both locally and in CI.

You may want to install an ESLint plugin for your text editor, so that you can see and fix style problems directly in your editor.

Configuring

What if I don't agree with some rule?

You can configure ESLint settings and rules.

Sometimes, you may want to disable a rule only on some file or line of code by using configuration comments.

Keywords

FAQs

Package last updated on 12 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc