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

@transferwise/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transferwise/eslint-config

TransferWise ESLint configuration

  • 0.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by84.85%
Maintainers
1
Weekly downloads
 
Created
Source

:shirt: TransferWise ESLint config with Prettier

npm GitHub release CircleCI npm

This is an extensible ESLint config used at TransferWise :money_with_wings:

It uses Airbnb's as a base, has Prettier baked in, and overrides some rules we've seen ourselves having to change often :heart:

Usage

1. Install with peer dependencies

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

(if it doesn't work, update npm)

2. Extend your config with @transferwise

.eslintrc

{
  "extends": "@transferwise"
}

Your own config can extend and override it however you want. If you find yourself changing a certain rule often, consider contributing.

3. Lint and format

It's recommended to:

  • lint as part of the npm test script (f.e. eslint src/)
  • auto-format on save in your editor/IDE (nothing specific to this config, just install ESLint for your tool)
  • add auto-formatting before committing:

package.json

{
  ...,
  "lint-staged": {
    "*.js": [
      "eslint --fix",
      "git add"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  }
}

lint-staged and husky are already installed for you as part of this package's peer dependencies :ok_hand:

Contributing

If you think a rule should be added or changed, create a pull request. The change will be discussed, and if people agree, it can be merged. Every merge automatically releases to GitHub and npm.

Bear in mind that you'll need to bump the version in package.json (major for breaking rules, minor for additions, patch for bugfixes) and add a CHANGELOG.md entry.

Keywords

FAQs

Package last updated on 25 Apr 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