Giter VIP home page Giter VIP logo

Comments (4)

dbale-altoros avatar dbale-altoros commented on September 25, 2024

@fvictorio
I understand the rule...
One thing I'm missing
As I see in the code...
The rules are configured like this:

{
  "rules": {
    "max-line-length": ["error",120]
  }
}

So when you say it should accept an object { default: "explicit" | "implicit" }
I did not follow that... maybe something like this

{
  "rules": {
    "explicit-types": ["error","true"]
  }
}

so explicit-types is enforced when true
and explicit-types is not enforce when false

Or you meant another thing ?

from solhint.

fvictorio avatar fvictorio commented on September 25, 2024
{
  "rules": {
    "explicit-types": ["error", { default: "implicit" }]
  }
}

from solhint.

shirotech avatar shirotech commented on September 25, 2024

In the meantime, I have been maintaining a direct fork with that feature backported, if anyone is interested https://www.npmjs.com/package/prettier-plugin-solidity-explicit-types

from solhint.

dbale-altoros avatar dbale-altoros commented on September 25, 2024

Added in this PR
#467

from solhint.

Related Issues (20)

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.