Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celsodias12/eslint-config
This project aims to provide a set of ESLint configurations to ensure code quality and consistency in JavaScript and TypeScript projects.
https://github.com/celsodias12/eslint-config
a11y acessibility eslint eslint-config eslint-helpers eslint-plugin eslint-rules javascript react react-native typescript
Last synced: 6 days ago
JSON representation
This project aims to provide a set of ESLint configurations to ensure code quality and consistency in JavaScript and TypeScript projects.
- Host: GitHub
- URL: https://github.com/celsodias12/eslint-config
- Owner: celsodias12
- License: mit
- Created: 2023-08-10T01:38:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T01:49:52.000Z (7 months ago)
- Last Synced: 2024-10-12T17:22:35.746Z (about 1 month ago)
- Topics: a11y, acessibility, eslint, eslint-config, eslint-helpers, eslint-plugin, eslint-rules, javascript, react, react-native, typescript
- Language: JavaScript
- Homepage:
- Size: 535 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eslint config
This project aims to provide a set of ESLint configurations to ensure code quality and consistency in JavaScript and TypeScript projects.
## Available Packages
- @celsodias12/eslint-config-a11y
- @celsodias12/eslint-config-helpers
- @celsodias12/eslint-config-javascript
- @celsodias12/eslint-config-react
- @celsodias12/eslint-config-react-native
- @celsodias12/eslint-config-typescript## Installation
Install the desired package and its dependencies:
@celsodias12/eslint-config-a11y
```bash
npm i -D @celsodias12/eslint-config-a11y eslint-plugin-jsx-a11y
```---
@celsodias12/eslint-config-helpers
```bash
npm i -D @celsodias12/eslint-config-helpers eslint-plugin-import-helpers eslint-plugin-unused-imports
```---
@celsodias12/eslint-config-javascript
```bash
npm i -D @celsodias12/eslint-config-javascript eslint-plugin-import eslint-plugin-n eslint-plugin-promise eslint-plugin-security
```---
@celsodias12/eslint-config-react
```bash
npm i -D @celsodias12/eslint-config-react eslint-plugin-react eslint-plugin-react-hooks
```---
@celsodias12/eslint-config-react-native
```bash
npm i -D @celsodias12/eslint-config-react-native eslint-plugin-react-native
```---
@celsodias12/eslint-config-typescript
```bash
npm i -D @celsodias12/eslint-config-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
```For typescript add this in your ESLint configuration file:
```json
{
"parserOptions": {
"project": "./tsconfig.json"
}
}
```## Configuration
In your ESLint configuration file, add the following content:
```json
{
"extends": ["@celsodias12/eslint-config-javascript"]
}
```or add more than one set of rules:
```json
{
"extends": [
// ... other configs
"@celsodias12/eslint-config-a11y",
"@celsodias12/eslint-config-helpers",
"@celsodias12/eslint-config-javascript"
"@celsodias12/eslint-config-react"
"@celsodias12/eslint-config-react-native"
"@celsodias12/eslint-config-typescript"
]
}
```