1.1.1 • Published 7 months ago

eslint-plugin-dwc v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Usage

Create the file .eslint.json in your root folder and add the following configuration, depending on your application or package.

You can use one or multiple of these, for example, in a React app that uses TypeScript and Jest, you'd use the following config:

{
  "root": true,
  "extends": [
    "plugin:dwc/typescript",
    "plugin:dwc/react",
    "plugin:dwc/reacttsx",
    "plugin:dwc/jest",
    "plugin:dwc/recommended"
  ],
}

JavaScript / Base

{
  "extends": "plugin:dwc/recommended"
}

TypeScript

{
  "extends": "plugin:dwc/typescript"
}

React

{
  "extends": "plugin:dwc/react"
}

React with TypeScript

{
  "extends": "plugin:dwc/reacttsx"
}

Jest

{
  "extends": "plugin:dwc/jest"
}

Mocha

{
  "extends": "plugin:dwc/mocha"
}