Home

Awesome

An extended standard eslint configuration

JavaScript Style Guide

Using almost same rules as the original standard.

Almost:

Thanks to antfu/eslint-config extended to support:

Install

$ npm install --save-dev eslint eslint-config-standard-ext

Usage

create eslint.config.(m)js in your project root:

// eslint.config.js
import { standard } from 'eslint-config-standard-ext'

export default standard()

Improved support for Astro files

// eslint.config.js
import { standard } from 'eslint-config-standard-ext'

export default standard({
  astro: {
    config: 'all' | 'base' | 'recommended' | 'jsx-a11y-recommended' | 'jsx-a11y-strict' | undefined,
    overrides: {} | undefined
  } | true
})

Customization

It uses same options as antfu/eslint-config

Additional options: