Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h3rmel/lint-config-h3rmel
My personal lint configuration for Next and React projects using ESLint and Prettier.
https://github.com/h3rmel/lint-config-h3rmel
eslint import-helpers jsx-a11y prettier react react-hooks
Last synced: about 1 month ago
JSON representation
My personal lint configuration for Next and React projects using ESLint and Prettier.
- Host: GitHub
- URL: https://github.com/h3rmel/lint-config-h3rmel
- Owner: h3rmel
- License: mit
- Created: 2024-08-21T03:58:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-31T19:52:17.000Z (2 months ago)
- Last Synced: 2024-09-30T16:41:03.319Z (about 2 months ago)
- Topics: eslint, import-helpers, jsx-a11y, prettier, react, react-hooks
- Language: JavaScript
- Homepage:
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# H3rmel ESLint and Prettier Config
![Lint Config Banner](public//h3rmel-lint-config.png)
---
Ready setup for ESLint and Prettier for my personal projects.
## What's included?
Ready ESLint config for React projects, including:
- React
- React Hooks
- Import Helpers
- JSX a11yReady ESLint config por Next projects, including:
- Import Helpers
- JSX a11yReady prettier config for projects, including:
- Prettier TailwindCSS
## Setup
### Next
Install the package:
```bash
npm i --save-dev @h3rmel/eslint-config-next
```Install the dependencies:
```bash
npm i --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import-helpers eslint-plugin-jsx-a11y eslint
```Extends the configuration:
```js
// .eslintrc.js
module.exports = {
extends: ["next/core-web-vitals", "next", "@h3rmel/eslint-config-next"],
};
```### React
Install the package:
```bash
npm i --save-dev @h3rmel/eslint-config-react
```Install the dependencies:
```bash
npm i --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import-helpers eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint
```Extends the configuration:
```js
// .eslintrc.js
module.exports = {
extends: ["@h3rmel/eslint-config-react"],
};
```### Prettier
Install the package:
```bash
npm i --save-dev @h3rmel/prettier-config
```Install the dependencies:
```bash
npm i --save-dev prettier prettier-plugin-tailwindcss
```Extends the configuration:
```js
// .prettierrc
"@h3rmel/prettier-config";
```## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.