Skip to content

connctd/eslint-config-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@connctd/eslint-config-typescript

npm (scoped)

Recommended coding style for typescript projects.

This projects relies on eslint for recommendations and fixes.

Based on airbnb/javascript and typescript eslint recommended.

Usage

Add @connctd/eslint-config-typescript as a dev dependency to your project:

yarn add '@connctd/eslint-config-typescript' -D

Install the required peer dependencies:

npx install-peerdeps @connctd/eslint-config-typescript

OR

(Recommended if you are installing this config from a custom private registry, since install-peerdeps only can fetch from the public npm registry)

yarn add -D \
  typescript@4.1.2 \
  eslint@7.15.0 \
  @typescript-eslint/eslint-plugin@4.9.1 \
  @typescript-eslint/parser@4.9.1 \
  eslint-config-airbnb@18.2.1 \
  eslint-plugin-import@2.22.1 \
  eslint-plugin-jsx-a11y@6.4.1 \
  eslint-plugin-react@7.21.5 \
  eslint-plugin-react-hooks@4.2.0

Extend the .eslintrc of your target project by @connctd/typescript:

{
    "extends": ["@connctd/typescript"]
}

Releases

No releases published

Packages

No packages published