mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
* chore: add baseline stylelint rules Use the Prettier config so not to conflict with rules. Add the Stylelint baseline recommended rules to catch additional lissues * enable those two rules * ooops * refactor scripts * revert script changes Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
22 lines
576 B
JavaScript
22 lines
576 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
module.exports = {
|
|
extends: ['stylelint-config-recommended', 'stylelint-config-prettier'],
|
|
plugins: ['stylelint-copyright'],
|
|
rules: {
|
|
'docusaurus/copyright-header': true,
|
|
'selector-pseudo-class-no-unknown': [
|
|
true,
|
|
{
|
|
// :global is a CSS modules feature to escape from class name hashing
|
|
ignorePseudoClasses: ['global'],
|
|
},
|
|
],
|
|
},
|
|
};
|