Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 978 Bytes

File metadata and controls

52 lines (36 loc) · 978 Bytes

Shared ESLint, Prettier & Typescript config

This is a repository of packages that allow configuration to be shared between projects.

Install

pnpm add -D @lacrypta/prettier-config @lacrypta/eslint-config @lacrypta/typescript-config eslint-config-prettier

Prettier Settings

Add to package.json

{
  "prettier": "@lacrypta/prettier-config",
  ...
}

Typescript Settings

Add to tsconfig.json

{
  "extends": "@lacrypta/typescript-config/base.json",
  ...
}

ESLint Settings

Add to .eslintrc.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.jsons used throughout the monorepo