Redmind's internal TypeScript eslint configuration.
npm i -D @redmindab/eslint-config && npx install-peerdeps -D @redmindab/eslint-config
create .eslintrc
in the root of the project with the following content
{
"extends": ["@redmindab/eslint-config"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
You can also choose to extend only specific configurations:
{
"extends": [
"@redmindab/eslint-config/typescript",
"@redmindab/eslint-config/react",
"@redmindab/eslint-config/backend"
],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Create a .prettierrc
in the root of the project with the following content
npx prettier --write src/**/*.{ts,tsx}
npx eslint --fix src/**/*.{ts,tsx}