···22222323- 💯 **Zero-config required**: Intelligent support for your package
2424 - Supports running and compiling TypeScript and the latest JavaScript syntax
2525- - Autoconfigured `jest` and `eslint`
2525+ - Autoconfigured `jest` and `eslint` with optional presets
2626- ⚒️ **Extensible**: Write your own commands and build hooks
2727- 💪 **Typescript**: Fully typed and self-documenting
2828···120120121121Running `siroc dev` will replace your package entrypoints with stubs that point to your source files. Your binaries will run your source files directly using `jiti`.
122122123123-### `siroc eslint`
124124-125125-Rather than configure `eslint`, you can run it directly using `siroc eslint`, with support for TypeScript (and prettier, if you have it installed within your package dev dependencies).
126126-127127-If you would like to extend or modify the siroc base config you can do so with the following `.eslintrc.js`
128128-129129-```js
130130-module.exports = {
131131- extends: ['@siroc'],
132132- // Your rules/plugins here
133133-}
134134-```
135135-136136-### `siroc jest`
137137-138138-Rather than configure `jest`, you can run it directly using `siroc jest`, with support for TypeScript test and source files. By default it will include any settings from a local `jest.config.js`.
139139-140140-If you would like to extend or modify the siroc base config (for example, to run jest directly with `yarn jest`) you can do so with the following `jest.config.js`
141141-142142-```js
143143-module.exports = {
144144- preset: '@siroc/jest-preset',
145145- // Your customisations here
146146-}
147147-```
148148-149123### `siroc run`
150124151125You can run arbitrary shell commands or node scripts using the power of [the `jiti` runtime](https://github.com/nuxt-contrib/jiti).
···159133# You can run a command in all your workspaces
160134yarn siroc run ls --workspaces
161135```
136136+137137+## Presets
138138+139139+### eslint
140140+141141+Rather than configure `eslint`, you can extend `@siroc/eslint-config`, with zero-config support for TypeScript (and prettier, if you have it installed within your package dev dependencies).
142142+143143+1. Add the eslint config:
144144+145145+ ```bash
146146+ yarn add --dev @siroc/eslint-config
147147+ ```
148148+149149+2. Add the following `.eslintrc.js` to your project:
150150+151151+ ```js
152152+ module.exports = {
153153+ extends: ['@siroc'],
154154+ // Your rules/plugins here
155155+ }
156156+ ```
157157+158158+### jest
159159+160160+Rather than configure `jest`, you can extend `@siroc/jest-preset`, with zero-config support for TypeScript test and source files. By default it will also include any settings from a local `jest.config.js` (e.g. in a package directory).
161161+162162+1. Add the jest preset:
163163+164164+ ```bash
165165+ yarn add --dev @siroc/jest-preset
166166+ ```
167167+168168+2. Add the following `jest.config.js` to your project:
169169+170170+ ```js
171171+ module.exports = {
172172+ preset: '@siroc/jest-preset',
173173+ // Your customisations here
174174+ }
175175+ ```
162176163177## Contributors
164178