eslint-plugin-dwc
v1.3.9
Published
Create the file `.eslint.json` in your root folder and add the following configuration, depending on your application or package.
Downloads
993
Readme
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"
}