eslint-plugin-data-force
v1.4.0
Published
## Installation
Downloads
42
Readme
Data Force Eslint Config
Installation
pnpm add --dev eslint-plugin-data-force
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:data-force/typescript",
"plugin:data-force/react",
"plugin:data-force/reacttsx",
"plugin:data-force/jest",
"plugin:data-force/recommended"
],
}
JavaScript / Base
{
"extends": "plugin:data-force/recommended"
}
TypeScript
{
"extends": "plugin:data-force/typescript"
}
React
{
"extends": "plugin:data-force/react"
}
React with TypeScript
{
"extends": "plugin:data-force/reacttsx"
}
Jest
{
"extends": "plugin:data-force/jest"
}
Mocha
{
"extends": "plugin:data-force/mocha"
}