1.1.12 • Published 25 days ago

@zemd/eslint-rock-stack v1.1.12

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
25 days ago

Shared ESLint config for modern projects

npm Static Badge

This package includes a set of ESLint configurations for modern fullstack projects that rock.

The package includes:

PackageDescriptionRulesLicense
@zemd/eslint-jsShared ESLint config for JavaScript projectsApache 2.0
@zemd/eslint-tsShared ESLint config for TypeScript projectsApache 2.0
@zemd/eslint-reactShared ESLint config for React.js projectsApache 2.0
@graphql-eslint/eslint-pluginGraphQL ESLint rulesschema-recommended and operations-recommendedMIT
eslint-plugin-tailwindcssStarting from v1.1.0 the config is optional due to Tailwind v4 release, which is not supported by the configrecommended excluding classnames-orderMIT
eslint-plugin-turborecommendedMIT
@vitest/eslint-pluginrecommendedMIT
eslint-plugin-storybookrecommended, csf-strict. The rules are available but not included by defaultMIT

Installation

npm install --save-dev @zemd/eslint-rock-stack

Usage

Basic Setup

// eslint.config.js
import rock, { storybook } from "@zemd/eslint-rock-stack";

export default [...rock(), ...storybook()];

Tailwind v3 support

if you want to use Tailwind config for Tailwind v3, install optional dependency:

pnpm add -D eslint-plugin-tailwindcss

and import the config:

import rock from "@zemd/eslint-rock-stack";
import tailwind from "@zemd/eslint-rock-stack/tailwind";

export default [...rock(), ...tailwind()];

More Advanced Setup

// eslint.config.js
import { react, graphql, playwright, turbo, vitest, typescript, javascript } from "@zemd/eslint-rock-stack";

export default [...typescript(), javascript(), ...react(), ...graphql(), ...playwright(), ...turbo(), ...vitest()];

You might be also interested in

PackageVersionDescription
@zemd/eslint-jsnpmJavaScript-only rules.
@zemd/eslint-tsnpmTypeScript rules (includes JS rules from @zemd/eslint-js).
@zemd/eslint-reactnpmReact rules (includes TS rules from @zemd/eslint-ts and JS rules from @zemd/eslint-js).
@zemd/eslint-rock-stacknpmRules for Fullstack projects that include React.js, GraphQL, Playwright, Tailwind(optional), Turbo, Vitest, and Storybook.
@zemd/eslint-nextnpmRules for Next.js projects (inherits from @zemd/eslint-rock-stack).

License

The @zemd/eslint-rock-stack is licensed under Apache-2.0 license 😇.

💙 💛 Donate

npm.io