@easy-breezy/plugin-eslint
Version:
Used to format files according to the rules ESLint
47 lines (39 loc) • 1.01 kB
Markdown
The plugin applies eslint to new and modified `-breezy/core` files.
## Installation
You'll first need to install [-breezy/core](https://www.npmjs.com/package/@easy-breezy/core):
```sh
# npm
npm install -breezy/core --save-dev
# yarn
yarn add -breezy/core --dev
```
Next, install `-breezy/plugin-eslint`:
```sh
# npm
npm install -breezy/plugin-eslint --save-dev
# yarn
yarn add -breezy/plugin-eslint --dev
```
## Configuration
ESLint options https://eslint.org/docs/latest/integrate/nodejs-api#parameters
.easy-breezy/config.json
```sh
{
// ...
"plugins": {
// ...
"eslint": {
// Path pattern
"*": {
// ESLint options https://eslint.org/docs/latest/integrate/nodejs-api#parameters
"extensions": [
".ts",
".tsx"
],
"fix": true
}
}
},
}
```
After starting, just follow the instructions in the `CLI`