Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecated rule warnings #6561

Merged
merged 6 commits into from Jan 26, 2023
Merged

Add deprecated rule warnings #6561

merged 6 commits into from Jan 26, 2023

Commits on Jan 5, 2023

  1. Add deprecated rule warnings

    To notify deprecation and make the migration easier.
    Such warnings are added to a linting result and reporting output.
    
    For example of a report:
    
    ```console
    $ cd scripts
    $ ../bin/stylelint.js visual.css --config=visual-config.json
    
    Deprecation Warning: The "string-quotes" rule is deprecated and will be removed in the next major release.
    Deprecation Warning: The "unit-case" rule is deprecated and will be removed in the next major release.
    
    visual.css
     1:9   ✖  Expected "url("foo.css")" to be ""foo.css""       import-notation
     1:13  ✖  Expected single quotes                            string-quotes
     4:9   ✖  Unexpected invalid hex color "#4f"                color-no-invalid-hex
     6:1   ✖  Expected ".foo.bar" to have no more than 1 class  selector-max-class
     7:10  ✖  Unexpected unit "px"                              unit-disallowed-list
     8:3   ⚠  Expected custom property name to be kebab-case    custom-property-pattern
    
    6 problems (5 errors, 1 warning)
    ```
    ybiquitous committed Jan 5, 2023
    Copy the full SHA
    d761589 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. Copy the full SHA
    e1bb607 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ff83ba8 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2023

  1. Copy the full SHA
    d6108a9 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    bec7cdc View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Copy the full SHA
    54a2305 View commit details
    Browse the repository at this point in the history