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

@wofh/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wofh/eslint-config

WOFH's JS ESLint config, following WOFH javascript style guide

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-wofh

This package provides WOFH's base JS .eslintrc as an extensible shared config.

Usage

We export two ESLint configurations for your usage.

@wofh/eslint-config

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint and eslint-plugin-import, eslint-plugin-react, eslint-plugin-react-hooks.

  1. Install the correct versions of each package, which are listed by the command:
npm info "@wofh/eslint-config@latest" peerDependencies

Then run npm install --save-dev <dependency>@<version> for each listed peer dependency like the command:

npm install --save-dev @wofh/eslint-config eslint@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-react-hooks@^#.#.#
  1. Add "extends": "@wofh" to your .eslintrc.

@wofh/eslint-config/hooks

This entry point enables the linting rules for React hooks (requires v16.8+). To use, add "extends": ["@wofh", "@wofh/eslint-config/hooks"] to your .eslintrc

@wofh/eslint-config/whitespace

This entry point only errors on whitespace rules and sets all other rules to warnings. To use, add "extends": ["@wofh", "@wofh/eslint-config/whitespace"] to your .eslintrc

Keywords

FAQs

Package last updated on 19 Feb 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