This is an opinionated JavaScript guideline for Young devs. Inspired by Airbnb
npx install-peerdeps --dev @youngagency/eslint-config-young
This entry point enables the linting rules for React hooks (requires v16.8+). To use, add "extends": ["@youngagency/eslint-config-young", "@youngagency/eslint-config-young/hooks"]
to your .eslintrc
.
This entry point is the base configuration for JavaScript projects (without React). To use, add "extends": ["@youngagency/eslint-config-young/base"]
to your .eslintrc
.
This entry point enables the linting rules for TypeScript. To use add this to your .eslintrc
.
{
extends: [
"@youngagency/eslint-config-young",
+ "@youngagency/eslint-config-young/typescript"
],
+ parserOptions: {
+ project: './tsconfig.json'
+ }
}