@ehubbell/configs

0.1.0 • Public • Published

Overview

This library contains suitable configurations for various projects. It's designed to simplify and standardize your project setup for less boilerplate and faster development.

Installation

npm i @ehubbell/configs --save-dev
npm install

ESLint Usage

Add one of the following to your package.json file:

  "eslintConfig": { "extends": "./node_modules/@ehubbell/configs/src/eslint-config-node.js" },
  "eslintConfig": { "extends": "./node_modules/@ehubbell/configs/src/eslint-config-web.js" },

Prettier Usage

Add the following to your package.json file:

  "prettier": "@ehubbell/configs/prettier-config",

TSConfig Usage

Create a tsconfig.json file and add one of the following:

{
	"extends": "@ehubbell/configs/tsconfig-web",
	"include": ["src"],
	"exclude": ["node_modules"]
}
{
	"extends": "@ehubbell/configs/tsconfig-package",
	"include": ["src"],
	"exclude": ["node_modules"]
}
{
	"extends": "@ehubbell/configs/tsconfig-node",
	"include": ["src"],
	"exclude": ["node_modules"]
}

Author

Issues

Eslint v9

Monorepos

  • when using the typescript configs above in a monorepo, you may have to specify the baseUrl, rootDir, and outDir properties

Links

Package Sidebar

Install

npm i @ehubbell/configs

Weekly Downloads

38

Version

0.1.0

License

ISC

Unpacked Size

11.8 kB

Total Files

10

Last publish

Collaborators

  • ehubbell