An open API service indexing awesome lists of open source software.

https://github.com/ackeecz/styleguide-backend-config


https://github.com/ackeecz/styleguide-backend-config

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

![](logo.png)

# 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).