https://github.com/ackeecz/styleguide-backend-config
https://github.com/ackeecz/styleguide-backend-config
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ackeecz/styleguide-backend-config
- Owner: AckeeCZ
- License: mit
- Created: 2020-04-15T12:26:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T11:53:22.000Z (over 1 year ago)
- Last Synced: 2024-04-22T17:25:03.333Z (over 1 year ago)
- Language: TypeScript
- Size: 85.9 KB
- Stars: 3
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# Ackee styleguide: Backend config
Configuration files for [styleguide](https://github.com/AckeeCZ/styleguide) enforcement tools
## Setup
```
npm i -D @ackee/styleguide-backend-config
```## ESLint
`.eslintrc.js` or `.eslintrc.cjs` for ESM projects
```js
module.exports = require('@ackee/styleguide-backend-config/eslint')
``````jsonc
{
// npm tasks
"eslint:check": "eslint --ignore-path .gitignore '**/*.ts' -f codeframe",
"eslint:fix": "npm run eslint:check -- --fix",
}
```## Prettier
`npm install -D prettier`
`prettier.config.js`
```js
module.exports = require('@ackee/styleguide-backend-config/prettier')
``````jsonc
{
// npm tasks
"prettier:check": "prettier --ignore-path .gitignore --check '**/*.{ts,js,json,md}'",
"prettier:fix": "npm run prettier:check -- --write '**/*.{ts,js,json,md}'",
}
```## License
This project is licensed under [MIT](./LICENSE).