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

eslint-config-soda

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-soda

ESLint configurations for my personal projects

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-soda

ESLint configurations for my personal projects. Largely influenced by eslint-config-airbnb but with my personal understanding.

Usage

This package export 3 ESLint configurations for your usage.

eslint-config-soda

The default export contains all of our ESLint rules, including ES6+ and React. It requires eslint, babel-eslint, and eslint-plugin-react.

It is a general-purpose rule set, so many redundant rules are enabled, and conflict rules are disabled.

  1. npm install --save-dev eslint-config-soda babel-eslint eslint-plugin-react eslint
  2. add "extends": "soda" to your .eslintrc

eslint-config-soda/node

Lints Node.js projects. Requires eslint, babel-eslint and eslint-plugin-react (in case you need to develop an isomorphic React.js backend).

  1. npm install --save-dev eslint-config-soda babel-eslint eslint-plugin-react eslint
  2. add "extends": "soda/node" to your .eslintrc

eslint-config-soda/browser

Lints front end projects, including rules for ES6+ and React (generators/async/await are disabled since transpiling these features will introduce a lot of overhead). Also, both amd and commonjs env are set to true, since nowadays most front end projects use one of these module standards, and many module bundlers support both of them. It requires eslint, babel-eslint and eslint-plugin-react.

  1. npm install --save-dev eslint-config-soda babel-eslint eslint-plugin-react eslint
  2. add "extends": "soda/browser" to your .eslintrc

eslint-config-soda/legacy

Lints ES5 and below, for browser use only. Only requires eslint.

  1. npm install --save-dev eslint-config-soda eslint
  2. add "extends": "soda/legacy" to your .eslintrc

Note

This repository included some rules from eslint-plugin-smells at first, but has later removed that dependency, due to its inactivity.

FAQs

Package last updated on 03 Nov 2015

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