@vidispine/eslint-config-react

24.2.0 • Public • Published

@vidispine/eslint-config-react

Add react eslint config

Usage

  1. Add @vidispine/eslint-config-react and eslint (8.x) as devDependencies
    • Also uses @vidispine/eslint-config-typescript to lint *.tsx files.
  2. Extend config in package.json or equivalent file, e.g.:
"eslintConfig": {
  "extends": [
    "@vidispine/eslint-config-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-react

Weekly Downloads

287

Version

24.2.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

14.9 kB

Total Files

5

Last publish

Collaborators

  • vidispine-owner