eslint-config-young 2.0.0
Install from the command line:
Learn more about npm packages
$ npm install @youngagency/eslint-config-young@2.0.0
Install via package.json:
"@youngagency/eslint-config-young": "2.0.0"
About this version
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'
+ }
}