Giter Site home page Giter Site logo

eslint-config-wework's People

Contributors

nason avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-wework's Issues

Unmet peer dependencies

The problem

Eslint-config-wework has unmet peer dependencies. I am on yarn 1.0, and npm v5.4.2

Environment

  • Package version: @3.0.0
  • Node.js version: v8.4.0
  • Browser versions:

Details

running yarn causes the following errors:

warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]". warning "[email protected]" has incorrect peer dependency "[email protected]". warning "[email protected]" has unmet peer dependency "[email protected]".

Code or Steps To Demonstrate

Examples can be very helpful, but are not always necessary.

Lodash imports

The problem

@GLosch and others have made the case that import _ from 'lodash' is preferable to import { foo } from 'lodash'. Opening this to capture that concern and to open a channel for discussion.

https://github.com/eslint-plugins/eslint-plugin-lodash/blob/master/docs/rules/import.md is a nice way to enfore the named-import approach. I'm sure something exists for the whole lib approach, or we could make a custom rule.

This is also app specific and relates to things like https://github.com/lodash/babel-plugin-lodash, and https://github.com/lodash/lodash-webpack-plugin, but I agree some degree of consistency across apps here would be ๐Ÿ’ฏ

Prefer Lodash get

The problem

In code reviews, a common request is to use Lodash _.get in place of referencing deeply nested data structures like foo.bar.moreFoo.moreBar to avoid potential JavaScript errors that would break the page. Implementing the prefer-get rule here would take care of this.

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.