New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opengovsg/eslint-config-opengovsg

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opengovsg/eslint-config-opengovsg

eslint configs for opengovsg

1.0.7
latest
Source
npm
Version published
Weekly downloads
26
-80.74%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-config-opengovsg

This package provides Open Government Product's base JS .eslintrc as an extensible shared config.

Usage

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint and eslint-config-standard.

Install the correct versions of each package, which are listed by the command:

npm info "@opengovsg/eslint-config-opengovsg@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev @opengovsg/eslint-config-opengovsg

If using npm < 5, Linux/OSX users can run

(
  export PKG=@opengovsg/eslint-config-opengovsg;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

If using npm < 5, Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev @opengovsg/eslint-config-opengovsg

Add "extends": "@opengovsg/eslint-config-opengovsg" to your .eslintrc.

Instructions derived from eslint-config-airbnb-base.

Keywords

eslint

FAQs

Package last updated on 06 Apr 2020

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