@vidispine/eslint-config-typescript

24.1.0 • Public • Published

@vidispine/eslint-config-typescript

Add typescript and tsdoc eslint config for .ts and/or .tsx (react) files

Usage

  1. Add @vidispine/eslint-config-typescript and eslint (8.x) as devDependencies,
  2. Extend config in package.json or equivalent file, e.g.:
"eslintConfig": {
  "extends": [
    "@vidispine/eslint-config-typescript/base" // For .ts
    "@vidispine/eslint-config-typescript" // For .tsx (also works with trailing "/react")
  ]
}

Using VSCode

  1. Install ESLint plugin for VSCode
  2. Allow eslint for this workspace
    • Open Command Palette (CTRL+SHIFT+P) > ESLint: Manage Library Execution > Allow
  3. Add this to .vscode/settings.json if you want to fix lint issues on save:
"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true
},

Readme

Keywords

none

Package Sidebar

Install

npm i @vidispine/eslint-config-typescript

Weekly Downloads

156

Version

24.1.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

14.2 kB

Total Files

6

Last publish

Collaborators

  • alexreinecke
  • vidispine-owner