Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @merrywhether/config with all npm packages installed. Try it out:

var config = require("@merrywhether/config")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@merrywhether/config v0.1.2

Common config files for @merrywhether projects

@merrywhether/config

npm version

Common config files for @merrywhether projects

Usage

Installation:

yarn add -D @merrywhether/config

The easiest way to use this is via invoking its executable from the root of your app (or the directory where you want the config files created):

yarn mw-config -EpT

This will generate the requested config files for you, and it supports the following flags:

  • --eslint-react / -E
  • --prettier / -p
  • --ts / -t
  • --ts-styled / -T

Upon completion, it will print the required yarn add command for all of the corresponding dependencies.

Alternatively, you can use the examples in the next section.

Available configuration files with dependencies and usage

  • .eslintrc-ts-react.js

    yarn add -D eslint eslint-plugin-react @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-react-hooks

    module.exports = require('@merrywhether/config/.eslintrc-ts-react.js');

  • prettier.config.js

    yarn add -D prettier

    module.exports = require('@merrywhether/config/prettier.config.js');

  • tsconfig.json

    yarn add -D typescript

    {
      "extends": "@merrywhether/config/tsconfig.json",
      "include": ["src/**/*"]
    }
    
  • tsconfig-styled.json

    yarn add -D typescript typescript-styled-plugin

    {
      "extends": "@merrywhether/config/tsconfig-styled.json",
      "include": ["src/**/*"]
    }
    
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free