Horyuji/horyuji

stylelintでextendsルールを上書きできない

Opened this issue · 0 comments

現在、stylelint-config-suitcssをextendsしてルールを作成してます。
#31 の件でproperty-no-vendor-prefixを上書きするさいの課題です。現在は回避しています。

stylelint/configuration.md at master · stylelint/stylelint https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#extends
を参照すると、次のように定義できそうなのですが、動作しませんでした。
そのため、stylelint-config-suitcssの内容をそのままコピーして、property-no-vendor-prefixの部分を直接上書きしています。

module.exports = {
  'extends': 'stylelint-config-suitcss',
  'rules': {
    'property-no-vendor-prefix': null,
  },
};

stylelintのバグかもしれないので、現状のまま少し放置します。