open-index/open-npm huggingface dataset:
npm package: @lioness100/configs
Description: Personal collection of configs for all things configurable
Author: Lioness100
Latest version: 1.0.34

# configs

> Note: This package is incredibly opinionated and I strongly recommend you
> don't use it.

This repository exports shareabe & extendable configuration files for the following services:

-   [`tsup`](./tsup.config.js)
-   [`eslint`](./.eslintrc.json)
-   [`prettier`](./.prettierrc.json)
-   [`typescript`](./tsconfig.json)

It also contains copy-pasteable (but not exported) content in:

-   [`.gitattributes`](./.gitattributes)
-   [`.gitignore`](./.gitignore)
-   [`tsconfig.eslint.json`](./tsconfig.eslint.json)
-   [`.editorconfig`](./.editorconfig)
-   [`.yarnrc.yml`](./.yarnrc.yml) (and [`.yarn/`](./.yarn/))
-   [`.github/`](./.github/)
-   [`ecosystem.yml`](./ecosystem.yml/)

## Usage

Run:

```sh
yarn add -D @lioness100/configs eslint prettier typescript tsup
```

And configure the individual services like so:

<details>

<summary><code>tsup</code></summary>

`package.json`:

```ts
{
    "scripts": {
        "build": "tsup --config node_modules/@lioness100/configs/tsup.config.js"
    }
}
```

Add `--define.PROJECT_TYPE bot` or `--define.PROJECT_TYPE cli` if applicable.

</details>

<details>
<summary><code>eslint</code></summary>

`package.json`:

```json
{
    "scripts": {
        "lint": "eslint ."
    },
    "eslintConfig": {
        "extends": ["./node_modules/@lioness100/configs/.eslintrc.json"]
    }
}
```

</details>

<details>
<summary><code>prettier</code></summary>

`package.json`:

```json
{
    "scripts": {
        "format": "prettier --write \"{*,src/**/*}.{json,js,ts}\""
    },
    "prettier": "@lioness100/configs/prettier"
}
```

</details>

<details>
<summary><code>typescript</code></summary>

`tsconfig.json`:

```json
{
    "extends": "@lioness100/configs/tsconfig",
    "compilerOptions": {
        "outDir": "dist",
        "rootDir": "src"
    },
    "include": ["src"]
}
```

`tsconfig.eslint.json`:

```json
{
    "extends": "./tsconfig.json",
    "include": ["**/*.ts", "**/*.js", "**/*.json"]
}
```

</details>