0.0.1 • Published 3 years ago

eslint-config-elyra v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

eslint-config-elyra

This package includes the shareable ESLint configuration used by Elyra.

Usage

First, install this package, ESLint and the necessary plugins:

yarn add -D eslint-config-elyra 

yarn add -D \
  @typescript-eslint/eslint-plugin@^4.0.0 \
  @typescript-eslint/parser@^4.0.0 \
  babel-eslint@^10.0.0 \
  eslint@^7.5.0 \
  eslint-plugin-cypress@^2.11.2 \
  eslint-plugin-flowtype@^5.2.0 \
  eslint-plugin-header@^3.1.1 \
  eslint-plugin-import@^2.22.0 \
  eslint-plugin-jest@^24.0.0 \
  eslint-plugin-jest-dom@^3.7.0 \
  eslint-plugin-jsx-a11y@^6.3.1 \
  eslint-plugin-react@^7.20.3 \
  eslint-plugin-react-hooks@^4.0.8 \
  eslint-plugin-testing-library@^3.9.0

Then create a file named .eslintrc.js with following contents in the root folder of your project:

module.exports = {
  root: true,
  extends: ["elyra"],
}