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

@sonder/eslint-config

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonder/eslint-config

Provide Sonder's .eslintrc as an extensible shared config

  • 1.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Eslint Config Sonder npm version

Provide Sonder's .eslintrc as an extensible shared config

Installation

Install package and it's peer dependencies

yarn add @sonder/eslint-config babel-eslint eslint eslint-plugin-babel eslint-plugin-import eslint-plugin-react --dev

Usage

Inside a .eslintrc file in your repository's root folder, add this config:

{
  "extends": "@sonder",
  "rules": {
    // Repo-specific rules to override this config
  }
}

Testing

To prove/validate that a rule is validating what it is supposed to, add a test each time a rule is added or modified in this repo, not the extended rule sets.

  • Files under test/error/ do not follow eslint rules and should throw eslint errors.
  • Files under test/pass/ follow eslint rules and should throw no error.

Add all validFiles and errorFiles to test/test.js and run:

yarn test
All checks passed!

Contributing

  1. Clone this repo - git clone git@github.com:Flatbook/eslint-config-sonder.git
  2. Update the rules in index.js
  3. Commit & Push changes to git - git commit -m "Add rule XYZ"
  4. Publish to npm - yarn publish --new-version minor

FAQs

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

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