Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neostandard

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neostandard

A modern successor to standard

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26K
increased by18.15%
Maintainers
4
Weekly downloads
 
Created
Source

neostandard

A modern equivalent to standard

Usage

  1. npm install -D neostandard

  2. Add an eslint.config.js like:

    import { neostandard } from 'neostandard'
    
    export default neostandard({
      // options
    })
    

    In CommonJS:

    module.exports = require('neostandard')({
      // options
    })
    
  3. Run neostandard by running ESLint, eg. using npx eslint, npx eslint --fix or similar

Options

  • ignores - string[] - an array of glob patterns indicating the files that the config should not apply to
  • noStyle - boolean - if set, no style rules will be added
  • semi - boolean - if set, enforce rather than forbid semicolons

Differences to standard / eslint-config-standard 17.x

  • Uses ESLint flat configs to bundle plugins rather than relying on standard-engine
  • Built upon ESLint 9
  • Support for .ts files out of the box
  • Contains semistandard as option in main package
  • Uses eslint-stylistic instead of deprecated ESLint style rules
  • Enables opting out of style rules (no need for eg. eslint-config-prettier anymore)

Changed rules

  • @stylistic/comma-danglechanged – set to prefer dangling commas in everything but functions and is it set to warn rather than error

Relaxed rules

Missing bits

  • Some plugins are not yet supporting ESLint 9 or flat configs and has thus not yet been added. These are: eslint-plugin-import and eslint-plugin-promise
  • JSX parsing is not supported out of the box

FAQs

Package last updated on 14 Apr 2024

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