@csmart/pino-azure-table
v0.0.81
Published
pino Azure Table transport
Keywords
Readme
eslint
npm install jiti
npm init @eslint/config@latestprettier
Install eslint-config-prettier to make ESLint and Prettier play nice with each other
npm install --save-dev --save-exact prettier
npm install --save-dev eslint-config-prettierAdd the following to eslint.config.ts:
import eslintConfigPrettier from "eslint-config-prettier/flat";
export default defineConfig([
... someConfig,
eslintConfigPrettier,
]);Create .prettierrc file and add the following to it:
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}vscode integration
prettier-vscode can be installed using the extension sidebar – it’s called “Prettier - Code formatter.” Check its repository for configuration and shortcuts.
Add the following to your vscode workspace settings.json:
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}Git commit hook
npm install --save-dev husky lint-staged
npx husky init
node --eval "fs.writeFileSync('.husky/pre-commit','npx lint-staged\n')"Add the following to your package.json:
{
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}publish
npm login
npm run build
npm publish --access publicunpublish
npm unpublish @csmart/pino-azure-table --force