@daniel15/standard-astro
v1.1.0
Published
My standard configurations for ESLint, Prettier, etc. for projects that use Astro
Readme
@daniel15/standard-astro
This package contains opinionated, strict configs that I use in most of my Astro projects. Currently, it includes ESLint and Prettier.
Usage
Import the desired config into the relevant config file:
ESLint: eslint.config.ts:
import {defineConfig} from 'eslint/config';
import {getStandardESLintAstroConfig} from '@daniel15/standard-astro/eslint';
export default defineConfig(
getStandardESLintAstroConfig({baseDir: import.meta.dirname}),
);Prettier: prettier.config.ts:
import {standardPrettierAstroConfig} from '@daniel15/standard-astro/prettier';
export default standardPrettierAstroConfig;Why not X? (Biome, oxc, Deno, etc.)
The standard ESLint + Prettier work well enough for my needs. The main pain point with ESLint is configuring it, which this repo solves. Additionally, ESLint and Prettier support use cases that other systems don't, for example linting and formatting Astro components, including TypeScript embedded within them.
