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

@binaryben/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binaryben/eslint-config

Lotterywest ESLint config

  • 1.0.0-dev
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Lotterywest ESLint Config

See the Confluence styleguide page for more information.

Setting up a new project

The default eslint-config option assumes the project is using Typescript.

It is based on AirBnB style with some tweaks.

Installing the @binaryben ESLint configs will automatically install Prettier and the Lotterywest Prettier config as peer dependencies as well.

Install

$ npm i -D git+https://{team}:{password}@bitbucket.org/lotterywest/eslint-config.git

Edit package.json

{
  // ...
  "scripts": {
    // ...
    "lint": "npm run lint:format && npm run lint:errors && ...",
    "lint:format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
    "lint:errors": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --quiet"
    // ...
  },
  // ...
  "prettier": "@binaryben/prettier-config",
  "eslintConfig": {
    "root": true,
    "extends": ["@binaryben"]
  }
}

To use the other ESLint options provided in this repo, add them to the extends array. For example, to add support for a React based project:

"eslintConfig": {
  "root": true,
  "extends": ["@binaryben", "@binaryben/eslint-config/react]
}

Set up VSCode

  1. Install the extension for VScode
  2. Open settings ( + ,) and set prettier.requireConfig and editor.formatOnSave to true

Usage

npm run lint

Note: It is highly recommended to use this with eslint as well

References

https://eslint.org/docs/developer-guide/shareable-configs

FAQs

Package last updated on 18 Aug 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