1.0.0-alpha.2 • Published 1 year ago

@tailor-platform/dev-config v1.0.0-alpha.2

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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
};