Skip to content

Add strictness flags #633

@nex3

Description

@nex3

A number of users have requested the ability to opt in to stricter Sass compilation, in which code that would normally just causes a warning (especially a deprecation warning) instead produces a compile error. We should add these flags for all current deprecation warnings to the CLI and both APIs, and possibly add configuration file support so that the can be consistently configured for teams.

TypeScript's compiler options provide some prior art here. I suspect we don't want to add a general --strict flag that enables all strict checks, though, since this will mean some downstream users will break when we add new deprecations.

  • CLI support
  • Dart API support
  • JS API support
  • Documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions