Socket
Socket
Sign inDemoInstall

wml-coding-std

Package Overview
Dependencies
335
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wml-coding-std

A module for keeping consistent JS coding standards at WML


Version published
Maintainers
1
Created

Readme

Source

wml-coding-std

A module for keeping consistent JS coding standards at WML

Installation

First install the package:

npm i wml-coding-std

Then setup appropriate .eslintrc file(s) in your project. The eslint-config-walmart package has several options available.

You'll also want to extend eslint-config-prettier and eslint-plugin-react after extending eslint-config-walmart (all included in this package) to make it Prettier-compatible:

{
  "extends": [
    "walmart",
    "prettier",
    "prettier/react"
  ]
}

Rationale

Given that we are rapidly adopting prettier to do pure style formatting, we need a new approach to keeping a consistent coding standard. The solution proposed is to create a new module wml-coding-std, that does this:

  • includes eslint, eslint-config-walmart, prettier eslint config overrides
  • includes prettier
  • includes npm postinstall scripts to:
    1. setup npm tasks for prettier
    2. setup git hooks for prettier
  • includes a task that user can invoke manually to format all js,jsx code under all directories except the usual suspects like node_modules, dist, coverage

Keywords

FAQs

Last updated on 21 Jun 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc