@zemd/eslint-js
v2.0.4
Published
Shared ESLint config for javascript projects
Maintainers
Readme
Shared ESLint config for javascript projects
This package includes a set of ESLint configurations for JavaScript projects.
The package includes:
| Package | Description | Rules | License |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------- |
| eslint-config-flat-gitignore | ignores all files from your .gitignore file | | MIT |
| @eslint/js | standard ESLint rules | recommended plus hand-picked rules that were not included | MIT |
| eslint-plugin-unicorn | modern set of rules | I think pretty opinionated, so I carefully hand-picked rules, avoiding style related rules | MIT |
| eslint-plugin-sonarjs | (Optional) ESLint plugin maintained by Sonar, designed to help developers write Clean Code | all recommended rules minus some disabled for better DX (auto-enabled when installed) | LGPL-3.0-only |
| @eslint-community/eslint-plugin-eslint-comments | additional ESLint rules for ESLint directive comments (e.g. //eslint-disable-line) | recommended rules | MIT |
| @eslint/json | plugin that allows you to natively lint JSON and JSONC | recommended rules minus the sort-keys | Apache-2.0 |
| eslint-plugin-regexp | ESLint plugin for finding RegExp mistakes | recommended rules | MIT |
Installation
npm install --save-dev @zemd/eslint-jsUsage
// eslint.config.js
import javascript from "@zemd/eslint-js";
export default [...javascript()];SonarJS rules (optional)
To stay compliant with enterprise policies that forbid LGPL software, SonarJS rules are optional. If you want to use them, install eslint-plugin-sonarjs and the rules will be detected and enabled automatically.
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-js is licensed under Apache-2.0 license 😇.
