GithubHelp home page GithubHelp logo

groww-oss / eslint-config Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 126 KB

Standard Eslint config adopted in Groww. Customized as per requirement and preferences of devs in Groww.

License: MIT License

JavaScript 100.00%

eslint-config's Introduction

eslint-config

Standard Eslint config adopted in Groww. Customized as per requirement and preferences of devs in Groww.

Install

for npm >=5

npx install-peerdeps --dev @groww-tech/eslint-config

for npm <5

  1. Install all the packages returned by the following command.
npm info "@groww-tech/eslint-config@latest" peerDependencies
  1. Then run

npm install --save-dev "@groww-tech/eslint-config"

Usage

Add "extends": "@groww-tech/eslint-config" to your .eslintrc


This configuration is for use in Groww projects. Use at your own risk.

eslint-config's People

Contributors

sttronn avatar vikaz596 avatar vikaz-singh avatar ristri avatar

Watchers

Sourav De avatar

eslint-config's Issues

Spacing/indentation rules version 1.0.2

Issue tracker for all the spacing/indentation rules

//no a=b ; always a=b;  no space after
"semi-spacing": ["warn", { "before": false, "after": true }], 
"space-before-blocks": ["warn", "always"], future
"space-before-function-paren": ["warn", "always"],

// no space after if(x===2) formating discuss
"space-in-parens": ["error", "never"],

//a=b+2 -> a = b + 2
"space-infix-ops": "warn", future

//https://eslint.org/docs/rules/space-unary-ops
"space-unary-ops": ["warn", { "words": true, "nonwords": false }], future

Migration Log

This is an auto-generated issue. The migration log is in the following comment(s).

Version 1.0.2 Release Plan

We kept version 1.0.1 very minimal so to make a better adoption and integration experience. That has been achieved

The goal of version 1.0.2 will be to enable rules that enable formatting and indentation rule and to make sure that no spacing-related discrepancy is happening anywhere in the code.

This will help developers and reviewers to never care about the spacing or anything related while coding or during code review. Some basic indentation has been there in version 1.0.1 but still, there are many inconsistencies remaining due to the lenient eslint config.

We will be trying to as close as to the accepted styling guidelines. If there isn't a strong case against what the norm is we will avoid making changes

For example, using 2 spaces between functions. There isn't much increase in readability or anything with this. So we will allow only 1 space. In general 1 space is preferred most of the time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.