@tailor-platform/dev-config
v1.0.0-alpha.2
Published
Common package that hosts the rules for ESLint, Prettier and TypeScript.
Downloads
6,598
Maintainers
Keywords
Readme
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
};