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

how do i fix an error about deprecated rule? #5478

Closed
charmjeh opened this issue Aug 13, 2021 · 1 comment
Closed

how do i fix an error about deprecated rule? #5478

charmjeh opened this issue Aug 13, 2021 · 1 comment

Comments

@charmjeh
Copy link

charmjeh commented Aug 13, 2021

Hello,

How do i fix this error?
'declaration-property-value-blacklist' has been deprecated. Instead use 'declaration-property-value-disallowed-list'

I didn't intentionally set up this option but error message shows up when i run yarn lint commend

my stylelint version is v13.13.1

stylelint.config.js

module.exports = {
  extends: [
    'stylelint-config-standard',
    'stylelint-config-airbnb',
    'stylelint-config-prettier',
  ],
  plugins: ['stylelint-scss', 'stylelint-order'],
  // add your custom config here
  // https://stylelint.io/user-guide/configuration
  rules: {},
};

Thank you!

@charmjeh charmjeh changed the title 'declaration-property-value-blacklist' has been deprecated. Instead use 'declaration-property-value-disallowed-list'. how do i fix an error about deprecated rule? Aug 13, 2021
@jeddy3
Copy link
Member

jeddy3 commented Aug 13, 2021

One of the sharable configs that you are extending is using the deprecated declaration-property-value-blacklist rule. I suspect it's stylelint-config-airbnb. There may be a more up to date version of that sharable config that you can install, otherwise you should remove it from your extends array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants