@xn-sakina/mental
v4.2.1
Published
tsconfig.json base configs
Downloads
1,017
Maintainers
Readme
@xn-sakina/mental
tsconfig.json
/ prettier
/ biome
base configs
Install
pnpm add -D @xn-sakina/mental
Tsconfig
Library
Commonjs Library
{
"extends": "@xn-sakina/mental/lib",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}
Native ESM Library
Required:
package.json
>"type": "module"
{
"extends": "@xn-sakina/mental/lib-native-esm",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}
React Components Library
{
"extends": "@xn-sakina/mental/lib-react",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}
Website Project
React Project
Required: typescript >= 5
{
"extends": "@xn-sakina/mental/project",
"include": ["src"]
}
Note
v3 please use (typescript < 5) :
@xn-sakina/mental/project-legacy
Optimizations
{
"compilerOptions": {
// upgrade output syntax target
"target": "es6",
// generate declaration source map
"declarationMap": true
// ...
}
}
Prettier
// .prettierrc.js
module.exports = require('@xn-sakina/mental/prettier')
Biome
// biome.json
{
"extends": ["./node_modules/@xn-sakina/mental/biome.json"]
}
License
MIT