Git Product home page Git Product logo

eslint-config-mailonline's People

Contributors

brokenmass avatar carlosvillademor avatar carpasse avatar claudiorodriguez avatar gajus avatar greenkeeper[bot] avatar txabox avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-mailonline's Issues

Problem with version 1.7.13 of eslint-config-canonical

Hey there. Since you released version 1.7.13 of eslint-config-canonical, eslint-config-mailonline throws an error. I tried a fresh install on a new project and it throws this:

ESLint couldn't find the plugin "eslint-plugin-sorting". This can happen for a couple different reasons:

I tried installing that package and in that case it works on the fresh project but in mol-fe-legal-admin it's throwing:

TypeError: Cannot read property 'prevName' of null

Since 1.7.13 of eslint-config-canonical appears to be a breaking version, can we force 1.7.12 here?

Discussion on specific rules

Making this issue for discussion on specific rules.

The only one that seems a bit weird to me really is babel/object-curly-spacing - it specifically forbids syntax like { a: 1, b: 2 } which is widespread among most major authors and companies and to me makes sense because it makes the code more readable than {a: 1, b: 2}. I'm definitely open to hearing arguments.

And two rules that I don't feel strongly about one way or the other but that collide with the style established by the team:

func-style (Expected a function expression)
no-restricted-syntax (Using 'TemplateLiteral' is not allowed)

I understand the rationale behind them but since we currently use template literals and function declarations a lot in our code right now, it might be wise to discuss them.

Issues with npm@2

npm2 doesn't use the same flat structure of npm3 so when using this preset you end up with errors like ESLint couldn't find the plugin "eslint-plugin-no-use-extend-native".

Once you install all plugin dependencies manually you get

Cannot read property 'type' of null
TypeError: Cannot read property 'type' of null
    at EventEmitter.ReturnStatement (/cc/node_modules/eslint-plugin-promise/rules/no-return-wrap.js:25:28)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at NodeEventGenerator.enterNode (/cc/node_modules/eslint/lib/util/node-event-generator.js:40:22)
    at CodePathAnalyzer.enterNode (/cc/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:608:23)
    at CommentEventGenerator.enterNode (/cc/node_modules/eslint/lib/util/comment-event-generator.js:97:23)
    at Controller.enter (/cc/node_modules/eslint/lib/eslint.js:925:36)
    at Controller.__execute (/cc/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/cc/node_modules/eslint/node_modules/estraverse/estraverse.js:501:28)
    at Controller.Traverser.controller.traverse (/cc/node_modules/eslint/lib/util/traverser.js:36:33)

An in-range update of eslint-plugin-jest is breaking the build 🚨

Version 21.7.0 of eslint-plugin-jest was just published.

Branch Build failing 🚨
Dependency eslint-plugin-jest
Current Version 21.6.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v21.7.0

21.7.0 (2018-01-17)

Features

  • implement valid-expect-in-promise rule (#42) (eb31a54)
Commits

The new version differs by 2 commits.

  • eb31a54 feat: implement valid-expect-in-promise rule (#42)
  • b44813a chore(package): update semantic-release to version 12.2.2 πŸš€ (#55)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Upgrade babel-eslint to the latest (v10.1.0)

Hi.

As established here this plugin is using "babel-eslint": "^8.0.2" which has a bug that causes false positives.

and because of that other projects dependant on this one are failing the build process:

streamich/git-cz#171

Shall I make a PR upgrading the babel-eslint version to fix this? πŸ€”

Regards.

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No npm token specified.

An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

react/jsx-indent-props

react/jsx-indent-props seems to require 4 characters indentation for props on jsx, should be 2 for consistency.

Establish code style rules

I'd like to start an ESLint configuration project for use in MailOnline project. Up to now, @MailOnline/mol-fe team has been using AirBnb JSCS configuration with some customisations, e.g. https://github.com/MailOnline/mol-fe-contact-form/blob/a015f67f374366ef83c0584912978b62cf0a49f9/.jscsrc#L4-L7.

A simple transition would be to extend from eslint-config-airbnb.

However, there are several things that I do not like about AirBnb style guide:

The list keeps going (there are 70+ differences).

eslint-config-canonical style is a lot more strict than eslint-config-airbnb. It has 300+ rules that AirBnb does not bother with. It is the style that I have been maintaining for +1 year and it is used across many public and private projects.

I am proposing that eslint-config-mailonline would extend from eslint-config-canonical and overwrite only the rules that we disagree about. Having worked on the existing code, the only rule that I can think of is: indent. I prefer 4 spaces, you prefer 2. This can be overwritten in the eslint-config-mailonline config.

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.