1.1.2 • Published 5 months ago

@fisch0920/config v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@fisch0920/config

Shared TypeScript, ESLint, and Prettier configs for my TS projects.

Usage

1. Add Dependency

Install @fisch0920/config as a dev dependency.

2. Configure Prettier

Add the following line to your package.json:

  "prettier": "@fisch0920/config/prettier",

3. Configure ESLint

Create a eslint.config.js file in the root of the project:

import { config } from '@fisch0920/config/eslint'

export default [...config]

4. Configure TypeScript

Create a tsconfig.json file in the root that extends @fisch0920/config/tsconfig-node or @fisch0920/config/tsconfig-react. You will still need to specify includes and any compilerOptions you may want to add or override.

{
  "extends": "@fisch0920/config/tsconfig-node",
  "include": ["src"],
  "exclude": ["node_modules"]
}

5. Add TypeScript Reset

This is just a convenient export of @total-typescript/ts-reset.

// reset.d.ts
import '@fisch0920/config/ts-reset'

License

MIT © Travis Fischer