- NPM:
npm i -D eslint-config-berkekaragoz
- Yarn:
yarn add -D eslint-config-berkekaragoz
- PNPM:
pnpm i -D eslint-config-berkekaragoz
ESLint configuration aimed to have balanced aspects. Would love to hear your feedback.
Wait for version 1.
For all:
extends:
- berkekaragoz
For React and Typescript:
extends:
- berkekaragoz/react-typescript
For React and JavaScript:
extends:
- berkekaragoz/react
Prettier config, package.json
:
"prettier": "eslint-config-berkekaragoz-formatting/prettier"
If you are facing with conficts, you should add these to /.vscode/settings.json
.
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"editor.formatOnSave": true,
"indentRainbow.ignoreErrorLanguages": ["*"],
"indentRainbow.colorOnWhiteSpaceOnly": true
}
ESLint configs:
berkekaragoz
berkekaragoz/formatting
berkekaragoz/suggestions
berkekaragoz/typescript
berkekaragoz/react
berkekaragoz/react-typescript
All (berkekaragoz
):
{
extends: [
"eslint:recommended",
"berkekaragoz-react",
"berkekaragoz-typescript",
"berkekaragoz-suggestions",
"berkekaragoz-react/formatting",
"berkekaragoz-formatting",
],
rules: {
"no-constant-condition": "warn",
},
};