eslint-config-ts-standard-next
Version:
Chempo's ESLint Config for NextJS with TypeScript projects with best practices
60 lines (43 loc) β’ 1.31 kB
Markdown
# eslint-config-ts-standard-next [](https://github.com/RichardLitt/standard-readme)
## π Description
Eslint config with standard-typescript (+other plugins) and extra opinionated configs applying best practices and focused on declarative code
# π Summary
> Linting and best practices rules for:
>
> - JavaScript and JSX
> - TypeScript and TSX
> - TSDoc
> - React and react hooks
> - NextJS
> - Accessibility (JSX a11y)
> - Package.json convention
> - JSON files
> - YAML
> - Markdown
## π¦ Installation
```zsh
# Install the config in the dev dependencies
$ npm install -D eslint-config-ts-standard-next
```
## π Usage
Add to your `eslint config` file the config extending it like the example below:
```jsonc
{
"extends": [ "ts-standard-next" ]
}
```
or add it directly in your `package.json`
```jsonc
// package.json
{
"eslintConfig": {
"extends": [ "ts-standard-next" ]
}
}
```
---
## π€ Happy Code
> Created with Typescript! β‘ and latin music πΊπ΅
### This README.md file has been written keeping in mind
- [GitHub Markdown](https://guides.github.com/features/mastering-markdown/)
- [Emoji Cheat Sheet](https://www.webfx.com/tools/emoji-cheat-sheet/)