Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@20i/mrm-preset

Package Overview
Dependencies
Maintainers
10
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@20i/mrm-preset

mrm preset to set up eslint, prettier, lint-staged, husky, and typescript

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

mrm-preset

mrm preset to set up nvm, eslint, prettier, lint-staged, husky, and typescript

Usage

Setup all the things!

npx mrm all --preset @20i/mrm-preset
# or for yarn berry
yarn dlx mrm all --preset @20i/mrm-preset

Details

Each of these can be set up individually. To see all available tasks, run npx mrm --preset @20i/mrm-preset

nvm

npx mrm nvm --preset @20i/mrm-preset

Every project should have a .nvmrc file. Currently this defaults to 16, but you can change it to whatever you need.

nvm can be installed by following their installation instructions

eslint

npx mrm eslint --preset @20i/mrm-preset

The @20i/eslint-config will be installed with prettier and typescript support by default. See the package for more details.

If React or React Native are found as dependencies, additional eslint packages will be installed. This command can be run again after adding react if needed.

lint-staged

npx mrm lint-staged --preset @20i/mrm-preset

This also sets up husky to run as a pre-commit hook. The default command is to use a precommit npm script, but that can be adjusted in .husky/pre-commit and in your package.json.

.gitignore

npx mrm gitignore --preset @20i/mrm-preset

Configured with default values for a node project and yarn berry.

Default mrm presets

Any default preset can be run with npx mrm <PRESET>

typescript

Currently, this just runs the mrm preset for typescript. PRs are welcome to update this :D

readme

Will only run if a readme is not already present.

license

Will only run if a license is not already present.

editorconfig

This is a nifty config to help your editor have better default values. For more options, check out editorconfig docs.

Keywords

FAQs

Package last updated on 06 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc