eslint-config/README.md

54 lines
825 B
Markdown
Raw Normal View History

2023-04-12 18:36:46 +02:00
# ioprojects-ui-eslint
2023-06-27 18:44:40 +02:00
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.
## Installation
2023-06-27 18:56:07 +02:00
Add the registery to your `.npmrc` file:
```bash
@ioprojects:registry=https://git.endmove.eu/api/packages/IO-ProjectsOfficial/npm/
```
Install the package:
2023-06-27 18:44:40 +02:00
```bash
# with yarn
yarn add -D @io-projects/eslint-config
# with npm
npm install --save-dev @io-projects/eslint-config
```
2023-06-27 18:56:07 +02:00
## 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');
```