@lioness100/configs

1.0.31 • Public • Published

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:

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

Usage

Run:

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

And configure the individual services like so:

tsup

package.json:

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

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

eslint

package.json:

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

package.json:

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

tsconfig.json:

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

tsconfig.eslint.json:

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

Readme

Keywords

none

Package Sidebar

Install

npm i @lioness100/configs

Weekly Downloads

10

Version

1.0.31

License

Apache-2.0

Unpacked Size

25.1 kB

Total Files

7

Last publish

Collaborators

  • lioness100