https://github.com/ttab/eslint-config-elephant
https://github.com/ttab/eslint-config-elephant
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ttab/eslint-config-elephant
- Owner: ttab
- License: mit
- Created: 2024-11-01T08:26:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T10:14:37.000Z (over 1 year ago)
- Last Synced: 2024-11-28T11:23:11.614Z (over 1 year ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ttab/eslint-config-elephant
Do you even lint bro? This will help you lint your code.
One config to rule them all. Especially for everything elephant related.
New fresh [eslint](https://eslint.org) 9 flat config for static code analysis and enforcement of code conventions and best practices.
Style and formatting is provided by [@stylistic](https://eslint.style/)
Consists of:
* eslint-config-react
* eslint-config-react-hooks
* eslint-config-jest
* @stylistic/eslint-plugin
* typescript-eslint with TypeChecked
## Installation
```bash
npm install @ttab/eslint-config-elephant --save-dev
npm install eslint --save-dev
```
`package.json`
```json
"scripts": {
"lint": "eslint . --cache"
},
```
`tsconfig.json`
```json
"include": ["eslint.config.js"]
```
`.gitignore`
```
.eslintcache
```
## Configuration
```js
// eslint.config.js
import elephant from '@ttab/eslint-config-elephant'
export default [
...elephant,
{
rules: {
// Add or change rules here
}
}
]
```