Socket
Socket
Sign inDemoInstall

@ableco/coding-standards-javascript

Package Overview
Dependencies
281
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Install size
67.6 MB
Created
Weekly downloads
 

Readme

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

Last updated on 23 Oct 2019

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