5.1.0 • Published 2 years ago

@tributebrand/eslint-config-ts v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-config

This plugin provides Tribute Brand's base TypeScript .eslintrc (without React plugins) as an extensible shared config, based on Airbnb's eslint-config-airbnb-base and @typescript-eslint/recommended.

Installation

The plugin requires eslint, typescript and the following other packages:

  • @mizdra/eslint-plugin-layout-shift
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint-plugin-extra-rules
  • eslint-plugin-import
$ npx install-peerdeps -D @tributebrand/eslint-config-ts && npm install -DE @tributebrand/eslint-config-ts@latest

Then add "extends": "@tributebrand/eslint-config-ts" to your .eslintrc file.

Since install-peerdeps doesn't have a flag to pin the exact version of the installed peer dependencies it's advisable to pin the installed versions in package.json by hand.

eslint-plugin-import@^2.22.1 is a necessary minimum version for 'import/no-cycle': ['error', { maxDepth: '∞' }] in rules/imports.js to work