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 9 flat config for static code analysis and enforcement of code conventions and best practices.
Style and formatting is provided by @stylistic
Consists of:
- eslint-config-react
- eslint-config-react-hooks
- eslint-config-jest
- @stylistic/eslint-plugin
- typescript-eslint with TypeChecked
npm install @ttab/eslint-config-elephant --save-dev
npm install eslint --save-dev
package.json
"scripts": {
"lint": "eslint . --cache"
},
tsconfig.json
"include": ["eslint.config.js"]
.gitignore
.eslintcache
// eslint.config.js
import elephant from '@ttab/eslint-config-elephant'
export default [
...elephant,
{
rules: {
// Add or change rules here
}
}
]