0.7.0 • Published 3 months ago

@tailor-platform/dev-config v0.7.0

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

dev-config

Tailor's base configurations for ESLint, Prettier and Typescript.

Installation

npm install -D @tailor-platform/dev-config

If you are using pnpm:

pnpm install -D @tailor-platform/dev-config@latest

Usage

Prettier

Add the following in your package.json:

{
  // ...
  "prettier": "@tailor-platform/dev-config/prettier",
}

See sharing configuration for more details.

ESLint

Add the following line in your .eslintrc.js file to extend the rules from @tailor-platform/dev-config/eslint:

module.exports = {
  ...require("@tailor-platform/dev-config/eslint"),
};

Typescript

Add the following in your tsconfig.json:

{
  "extends": "@tailor-platform/dev-config/typescript/nextjs",
}

Overriding configuration

module.exports = {
  ...require("@tailor-platform/dev-config/prettier"),
  // your overrides here
};