eslint-config-standard-ext
v2.2.0
Published
An extended standard eslint configuration
Downloads
221
Readme
An ext
ended standard eslint configuration
Using almost
same rules as the original standard
.
Almost:
space-before-function-paren
: NO more space before function paren.comma-dangle
: Require trailing commas.quote-props
: Consistent as needed.
Thanks to antfu/eslint-config extended to support:
- Using ESLint Stylistic
- Designed to work with TypeScript, JSX, Vue, JSON, YAML, Toml, Markdown, etc. Out-of-box.
- Auto fix for formatting (aimed to be used standalone without Prettier)
- Opinionated, but very customizable
- ESLint Flat config, compose easily!
- Optional React, Svelte, UnoCSS, Astro, Solid support
- Optional formatters support for formatting CSS, HTML, XML, Astro, etc.
- Respects
.gitignore
by default - Supports ESLint v9 or v8.50.0+
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:
- javascript.organizeImports:
boolean=true
Add support for sorting imports/exports.