mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: move eslint-config to monorepo
This commit is contained in:
42
configuration/eslint-config/README.md
Normal file
42
configuration/eslint-config/README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# @openstapps/eslint-config
|
||||
|
||||
[](https://gitlab.com/openstapps/eslint-config/commits/master)
|
||||
[](https://npmjs.com/package/@openstapps/eslint-config)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||
|
||||
## Installation
|
||||
|
||||
Put this into your `.eslintrc`
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@openstapps"
|
||||
}
|
||||
```
|
||||
|
||||
Unfortunately, ESLint requires you to define plugins and configs
|
||||
your config depends on as `peerDependencies`, which means they
|
||||
have to be installed manually.
|
||||
|
||||
Use the command
|
||||
|
||||
```shell
|
||||
npx install-peerdeps -od --extra-args "-E" @openstapps/eslint-config
|
||||
```
|
||||
|
||||
Or, alternatively, add the following to your `package.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": ">=5.29.0",
|
||||
"@typescript-eslint/parser": ">=5.29.0",
|
||||
"eslint": ">=8.18.0",
|
||||
"eslint-config-prettier": ">=8.5.0",
|
||||
"eslint-plugin-jsdoc": ">=39.3.3",
|
||||
"eslint-plugin-prettier": ">=4.0.0",
|
||||
"eslint-plugin-unicorn": ">=41.0.1",
|
||||
"prettier": ">=2.7.1"
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user