2023-06-28 13:26:08 +02:00
# eslint-config
2023-04-12 18:36:46 +02:00
2023-06-28 13:26:08 +02:00
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
2023-08-10 21:33:53 +02:00
yarn add -D @ioprojects/eslint -config
2023-06-28 13:26:08 +02:00
# with npm
2023-08-10 21:33:53 +02:00
npm install --save-dev @ioprojects/eslint -config
2023-06-28 13:26:08 +02:00
```
## Usage
Add the following to your `.eslintrc.js` file:
```js
module.exports = {
extends: [
2023-08-10 21:33:53 +02:00
'@ioprojects/eslint-config'
2023-06-28 13:26:08 +02:00
]
}
```
**Or**
Add the following to your `.eslintrc.json` file:
```json
{
"extends": [
2023-08-10 21:33:53 +02:00
"@ioprojects/eslint-config"
2023-06-28 13:26:08 +02:00
]
}
```
**Or**
Add the following to your `.eslintrc.cjs` file:
```js
2023-08-10 21:33:53 +02:00
module.exports = require('@ioprojects/eslint-config');
2023-06-28 13:26:08 +02:00
```
2023-06-28 15:53:46 +02:00
### 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` .