@redmindab/eslint-config
v6.1.3
Published
Redmind ESlint config
Readme
@redmindab/eslint-config
Redmind's internal TypeScript eslint configuration.
📦 Install package and peer dependencies
npm i -D @redmindab/eslint-config && npx install-peerdeps -D @redmindab/eslint-config🔧 Create config files
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"
}
}💅 Stylistic formatting w. Prettier
Create a .prettierrc in the root of the project with the following content
Update all files in src directory
npx prettier --write src/**/*.{ts,tsx}
npx eslint --fix src/**/*.{ts,tsx}