@sendin/eslint-config
v1.0.0
Published
ESLint configuration used by Sendin.
Downloads
1
Readme
Sendin ESLint Config
A comprehensive and flexible ESLint configuration for Node.js, React, and Next.js projects, ensuring code quality and consistency across your codebase.
Table of Contents
What's Included?
This package includes a set of predefined ESLint configurations optimized for different environments:
- Standard Config Base: General rules applicable across various environments.
- React Plugin: Enhances linting capabilities specifically for React projects.
- React Hooks Plugin: Ensures proper use of React Hooks.
- JSX a11y Plugin: Promotes accessibility best practices in JSX code.
- Prettier: Integrates Prettier for code formatting, ensuring consistent code style.
Installation & Setup
React with Next.js
Install dependencies:
npm i eslint @sendin/eslint-config -DConfigure ESLint: Update your
.eslintrc.jsonfile:{ "extends": [ "@sendin/eslint-config/next", "next/core-web-vitals" ] }
React
Install dependencies:
npm i eslint @sendin/eslint-config -DConfigure ESLint: Update your
.eslintrc.jsonfile:{ "extends": "@sendin/eslint-config/react" }
Node.js
Install dependencies:
npm i eslint @sendin/eslint-config -DConfigure ESLint: Update your
.eslintrc.jsonfile:{ "extends": "@sendin/eslint-config/node" }
Contributing
Contributions are welcome! Please open an issue or submit a pull request if you have suggestions for improvements.
