https://github.com/lacrypta/shared-dev-configs
https://github.com/lacrypta/shared-dev-configs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lacrypta/shared-dev-configs
- Owner: lacrypta
- Created: 2024-05-16T17:58:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-31T19:06:27.000Z (11 months ago)
- Last Synced: 2025-01-30T21:53:55.533Z (4 months ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shared ESLint, Prettier & Typescript config
This is a repository of packages that allow configuration to be shared between projects.
### Install
```bash
pnpm add -D @lacrypta/prettier-config @lacrypta/eslint-config @lacrypta/typescript-config eslint-config-prettier
```### Prettier Settings
Add to `package.json`
```json
{
"prettier": "@lacrypta/prettier-config",
...
}
```### Typescript Settings
Add to `tsconfig.json`
```json
{
"extends": "@lacrypta/typescript-config/base.json",
...
}
```### ESLint Settings
Add to `.eslintrc.js`
```js
module.exports = {
extends: ["@lacrypta/eslint-config/library.js"],
...
};
```## What's inside?
This Turborepo includes the following packages/apps:
### Packages
- `@lacrypta/prettier`: `Prettier` configurations
- `@lacrypta/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@lacrypta/typescript-config`: `tsconfig.json`s used throughout the monorepo