Socket
Book a DemoInstallSign in
Socket

@tailor-platform/dev-config

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tailor-platform/dev-config

Common package that hosts the rules for ESLint, Prettier and TypeScript.

Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
843
-21.65%
Maintainers
6
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 15 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts