@zemd/eslint-astro
v0.0.22
Published
Shared ESLint config for Astro based projects
Maintainers
Readme
Shared ESLint config for Astro projects
This package includes a set of ESLint configurations for Astro projects.
The package includes:
| Package | Description | Rules | License |
| --------------------- | ---------------------------------------------------- | -------------------------------------------------------------- | ---------- |
| eslint-plugin-astro | ESLint plugin for Astro components | recommended | MIT |
| @zemd/eslint-react | ESlint bundle for linting js/ts and react components | see https://npmjs.com/package/@zemd/eslint-react for more info | Apache 2.0 |
Installation
npm install --save-dev @zemd/eslint-astroUsage
// eslint.config.js
import astro from "@zemd/eslint-astro"; // this will include all rules including @zemd/eslint-react
// import { astro } from "@zemd/eslint-astro"; // if you want to cherry-pick
export default [...astro()];You might be also interested in
| Package | Version | Description |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| @zemd/eslint-js | | JavaScript-only rules. |
|
@zemd/eslint-ts | | TypeScript rules (includes JS rules from @zemd/eslint-js). |
|
@zemd/eslint-react | | React rules (includes TS rules from
@zemd/eslint-ts and JS rules from @zemd/eslint-js). |
| @zemd/eslint-rock-stack | | Rules for Fullstack projects that include React.js, GraphQL, Playwright, Tailwind(optional), Turbo, Vitest, and Storybook. |
|
@zemd/eslint-next | | Rules for Next.js projects (inherits from
@zemd/eslint-rock-stack). |
| @zemd/eslint-astro | | Rules for Astro based projects (includes rules
@zemd/eslint-react by default). |
License
The @zemd/eslint-astro is licensed under Apache-2.0 license 😇.
