@lioness100/configs v1.0.31
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:
.gitattributes.gitignoretsconfig.eslint.json.editorconfig.yarnrc.yml(and.yarn/).github/ecosystem.yml
Usage
Run:
yarn add -D @lioness100/configs eslint prettier typescript tsupAnd configure the individual services like so:
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.
package.json:
{
"scripts": {
"lint": "eslint ."
},
"eslintConfig": {
"extends": ["./node_modules/@lioness100/configs/.eslintrc.json"]
}
}package.json:
{
"scripts": {
"format": "prettier --write \"{*,src/**/*}.{json,js,ts}\""
},
"prettier": "@lioness100/configs/prettier"
}tsconfig.json:
{
"extends": "@lioness100/configs/tsconfig",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}tsconfig.eslint.json:
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.js", "**/*.json"]
}2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago