Skip to content

merrywhether/config

Repository files navigation

@merrywhether/config

npm version Renovate dashboard Lint Status Version

Common config files for @merrywhether projects

Usage

Installation:

pnpm add -D @merrywhether/config

This will generate a .projenrc.js file in the root of your project. Update that config with your desired settings and then run node .projenrc.js to have it create the appropriate configuration files.

Configuration Details

ESLint

The base ESLint configuration includes the following plugins/configs:

When the typescript option is selected, the following are added:

When the react option is selected, the following are added:

When the solid option is selected, the following are added:

Prettier

Uses the default Prettier settings with the following changes:

  • experimentalTernaries: true (embrace the future)
  • proseWrap: always (wrapping Markdown).
  • singleQuote: true (because this is JS! 😛)

Typescript

The base configuration has all of the strictest settings enabled and targets esnext.

When the styled option is selected, @styled/typescript-styled-plugin is added.

When the solid option is selected, the jsxImportSource is appropriately updated.