mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 06:27:02 +02:00
chore: clean up ESLint config, enable a few rules (#6514)
* chore: clean up ESLint config, enable a few rules * enable max-len for comments * fix build
This commit is contained in:
parent
b8ccb869f1
commit
aa446b7a9c
167 changed files with 1157 additions and 960 deletions
|
@ -6,12 +6,17 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* This PostCSS plugin will remove duplicate/same custom properties (which are actually overridden ones) **only** from `:root` selector.
|
||||
* This PostCSS plugin will remove duplicate/same custom properties (which are
|
||||
* actually overridden ones) **only** from `:root` selector.
|
||||
*
|
||||
* Depending on the presence of an `!important` rule in value of custom property, the following actions will happens:
|
||||
* Depending on the presence of an `!important` rule in value of custom
|
||||
* property, the following actions will happen:
|
||||
*
|
||||
* - If the same custom properties do **not** have an `!important` rule, then all of them will be removed except for the last one (which will actually be applied).
|
||||
* - If the same custom properties have at least one `!important` rule, then only those properties that do not have this rule will be removed.
|
||||
* - If the same custom properties do **not** have an `!important` rule, then
|
||||
* all of them will be removed except for the last one (which will actually be
|
||||
* applied).
|
||||
* - If the same custom properties have at least one `!important` rule, then
|
||||
* only those properties that do not have this rule will be removed.
|
||||
* @returns {import('postcss').Plugin}
|
||||
*/
|
||||
module.exports = function creator() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue