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

eslint-config-flowics

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-flowics

ESLint's shareable config for Flowics JavaScript projects

  • 9.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
6
Weekly downloads
 
Created
Source

eslint-config-flowics

Common coding conventions for ensuring consistent style across Flowics JavaScript projects

To publish a new version

Run

npm publish

And answer the questions!

Installation

Install eslint, the config, and the required plugins

npm i --save-dev eslint babel-eslint eslint-config-flowics eslint-plugin-react eslint-plugin-promise

Usage

eslint-config-flowics exports 4 different configurations:

  • backend (default)
  • frontend
  • tests
  • commons (extended by all previous three)

The common use case (for a project with server, client and development code) would be to create a .eslintrc file in the project's root folder and include the following line in it:

extends: flowics

This will enforce a backend coding style by default.

  • To allow proper linting of client code:

    1. Create a .eslintrc in client code directory
    2. Include the following snippet inside it:
      env:
        browser: true
        node: false
    
  • To allow proper linting of test code:

    1. Create a .eslintrc in test code directory
    2. Include the following snippet inside it:
      env:
        mocha: true
    

NOTE: frontend and tests configuration are recommended only for more specific use cases, like a pure frontend project.

backend (default)

Sets environment node to true.

extends: flowics

frontend

Sets environment browser to true

extends: flowics/lib/frontend

tests

Extends from backend and sets environment mocha to true

extends: flowics/lib/tests

commons

No environment assumption is made.

extends: flowics/lib/commons

Keywords

FAQs

Package last updated on 11 Oct 2016

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