GithubHelp home page GithubHelp logo

Remove shorthand props about styled-system HOT 3 OPEN

Kivylius avatar Kivylius commented on June 13, 2024
Remove shorthand props

from styled-system.

Comments (3)

PabloLerma avatar PabloLerma commented on June 13, 2024

I donโ€™t think blocking shorthand props is supported. Something you could do is blocking them using linting rules.

from styled-system.

Kivylius avatar Kivylius commented on June 13, 2024

So it's a feature request if it's not supported? Or is there somehow for a manual overwrite. Seems strange they extended cssproperties without ability to removed them. The eslint is pretty hacky as it can be ignored.

The big issue here is inconstancy and the team then needs to agree to use one or the other, quite poor DX.

I believe it's better to have configuration over convention for consistency.

from styled-system.

nstanard avatar nstanard commented on June 13, 2024

@Kivylius You can override anything you want from this library by extending it and/or removing/extracting the types you don't want to include. But you have to build out the types yourself then.

from styled-system.

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.