@arrowsw/eslint-config
v1.0.0
Published
Shared ESLint + TypeScript config by @arrowsw for Node, React and Next.js
Maintainers
Readme
@arrowsw/eslint-config
Shared ESLint + TypeScript configuration for Node.js, React, and Next.js projects, maintained by @arrowsw.
Installation
Copy and paste the appropriate command for your use case:
Node.js (base)
npm install --save-dev @arrowsw/eslint-config eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-importReact
npm install --save-dev @arrowsw/eslint-config eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11yNext.js
npm install --save-dev @arrowsw/eslint-config eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-config-nextUsage
Extend the configuration in your project's .eslintrc file.
Node.js Projects
{
"extends": "@arrowsw/eslint-config/node"
}React Projects
{
"extends": "@arrowsw/eslint-config/react"
}Next.js Projects
{
"extends": "@arrowsw/eslint-config/next"
}Variants
- @arrowsw/eslint-config/node: For Node.js and TypeScript backend projects.
- @arrowsw/eslint-config/react: For React (frontend) projects using TypeScript.
- @arrowsw/eslint-config/next: For Next.js projects.
Example
After configuring .eslintrc, you can lint your code with:
npx eslint .License
MIT
