Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chialab/eslint-config
🚦 Chialab's linting rules for ESLint.
https://github.com/chialab/eslint-config
Last synced: about 2 months ago
JSON representation
🚦 Chialab's linting rules for ESLint.
- Host: GitHub
- URL: https://github.com/chialab/eslint-config
- Owner: chialab
- License: mit
- Created: 2020-11-10T20:18:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T12:48:15.000Z (9 months ago)
- Last Synced: 2024-10-31T02:19:14.586Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 683 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @chialab/eslint-config
Chialab's linting rules for [ESLint](https://eslint.org/).
It includes:
* recommended default ESLint rules
* [`eslint-plugin-jsx-a11y`](https://www.npmjs.com/package/eslint-plugin-jsx-a11y) for JSX templates accessibility check
* [`eslint-plugin-babel`](https://www.npmjs.com/package/eslint-plugin-babel) for unsupported JavaScript features
* [`@typescript-eslint/eslint-plugin`](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) for TypeScript language## Usage
Install ESLint:
```
npm i -D eslint
``````
yarn add -D eslint
```Install `@chialab/eslint-config`:
```
npm i -D @chialab/eslint-config
``````
yarn add -D @chialab/eslint-config
```Create a `.eslintrc.json` file and add the configuration:
**.eslintrc.json**
```jsonc
{
"extends": [
"@chialab/eslint-config"
]
}
```## IDE
Install the ESLint extension for your IDE (optional):
* [VSCode](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)