Skip to content

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

Young JavaScript Style Guide() {

This is an opinionated JavaScript guideline for Young devs. Inspired by Airbnb

Setup

1) Install eslint-config-young and peer dependencies

npx install-peerdeps --dev @youngagency/eslint-config-young

2) Configure ESLint

eslint-config-young/hooks

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.

eslint-config-young/base

This entry point is the base configuration for JavaScript projects (without React). To use, add "extends": ["@youngagency/eslint-config-young/base"] to your .eslintrc.

eslint-config-young/typescript

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'
+ }
}

Details


Assets

  • eslint-config-young-2.0.0-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0