eslint-config/README.md
EndMove 5b377f41a5
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/master Build is failing
fix .drone.yml and dependent packages vulnerabilities (#2)
Reviewed-on: #2
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-06-28 15:53:46 +02:00

58 lines
1.1 KiB
Markdown

# eslint-config
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.
## Installation
Add the registery to your `.npmrc` file:
```bash
@ioprojects:registry=https://git.endmove.eu/api/packages/IO-ProjectsOfficial/npm/
```
Install the package:
```bash
# with yarn
yarn add -D @io-projects/eslint-config
# with npm
npm install --save-dev @io-projects/eslint-config
```
## Usage
Add the following to your `.eslintrc.js` file:
```js
module.exports = {
extends: [
'@io-projects/eslint-config'
]
}
```
**Or**
Add the following to your `.eslintrc.json` file:
```json
{
"extends": [
"@io-projects/eslint-config"
]
}
```
**Or**
Add the following to your `.eslintrc.cjs` file:
```js
module.exports = require('@ioprojects/ui-eslint-base');
```
### Note for developers
When your pull request is merged into the **master** branch, you can promote your build on [drone.endmove.eu](https://drone.endmove.eu) to create a usable version. Use `master` as the target, and add the `VERSION` parameter with one of these values: `major | minor | patch | premajor | preminor | prepatch | prerelease`.