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

@ableco/coding-standards-javascript

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ableco/coding-standards-javascript

Automated linting and formatting JavaScript code for Able projects, using https://github.com/ableco/eslint-config

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
4
Weekly downloads
 
Created
Source

@ableco/coding-standards-javascript

Automated linting for Able using https://github.com/ableco/eslint-config

How does it work?

@ableco/coding-standards-javascript requires you to run npx coding-standards-javascript in your project's root directory to copy ESLint and Prettier configuration files.

It also installs @arkweid/lefthook to copy a lefthook.yml file to run ESLint and Prettier based on @ableco/eslint-config configuration in a pre-commit stage.

In case any of these configuration files already exists, they should be updated manually to reflect the contents of the ones provided by @ableco/coding-standards-javascript (for example, in case a project already has an ESLint configuration file).

Installation

Using yarn:

yarn add @ableco/coding-standards-javascript --dev

Using npm:

npm install @ableco/coding-standards-javascript --save-dev

Usage

Run npx coding-standards-javascript and follow the instructions.

It will try to copy the following files:

  • .eslintrc.js
  • .prettierrc.json (or .prettierrc.js or .prettierrc, in that order)
  • lefthook.yml

In case any of these files already exists, it will shows the content of those files in the console's output and let you copy and paste those configurations manually.

For husky users

In case your project already uses husky we recommend you to uninstall it by running:

npm uninstall husky

To remove any git hook previously added by husky.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ableco/coding-standards-javascript.

FAQs

Package last updated on 23 Oct 2019

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