package
My standard configurations for ESLint, Prettier, etc. for projects that use Astro
npm install @daniel15/standard-astroGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
This package contains opinionated, strict configs that I use in most of my Astro projects. Currently, it includes ESLint and Prettier.
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;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.
Estimated unpacked size across 55 packages.
9.4 MB
Includes dependencies.
4 direct · 3 outdated
^1.1.0
1.1.0
^1.2.2
3.2.0
^1.5.0
3.2.1
^0.14.1
1.1.2