Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/stylelint/stylelint
/ functions
Functions
980 in github.com/stylelint/stylelint
⨍
Functions
980
◇
Types & classes
18
↓ 2 callers
Function
isUnicodeRangeDescriptor
(decl)
lib/utils/isUnicodeRangeDescriptor.mjs:12
↓ 2 callers
Function
isUnicodeSupported
()
lib/utils/isUnicodeSupported.mjs:10
↓ 2 callers
Function
isValid
* @param {RuleOptionsPossible | RuleOptionsPossible[]} possible * @param {unknown} actual * @returns {boolean}
lib/utils/validateOptions.mjs:151
↓ 2 callers
Function
isWarningInRange
* @param {import('stylelint').DisabledWarning} warning * @param {import('stylelint').DisabledRange} range * @returns {boolean}
lib/needlessDisables.mjs:83
↓ 2 callers
Function
kebabCase
(opt)
lib/utils/checkInvalidCLIOptions.mjs:51
↓ 2 callers
Function
keywordOrder
* @param {string} a * @returns {number}
lib/rules/display-notation/index.mjs:158
↓ 2 callers
Function
lint
(code)
scripts/benchmarking/run-rule.mjs:75
↓ 2 callers
Function
matchValue
* @param {string} value * @param {RegExp} pattern * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:57
↓ 2 callers
Function
nodesShareLines
* @param {PostcssNode | void} a * @param {PostcssNode | void} b
lib/utils/isSharedLineComment.mjs:11
↓ 2 callers
Function
normalizeNodeEscaping
* Normalize CSS escaping in selector node values. * Field getters return unescaped values, setters handle re-escaping. * Setting a field to itself n
lib/utils/normalizeSelector.mjs:223
↓ 2 callers
Function
normalizeSelectorNodeWhitespaceAndComments
* @param {Node} node
lib/utils/normalizeSelector.mjs:88
↓ 2 callers
Function
normalizeValue
* @param {string} value * @param {(node: import('postcss-value-parser').Node) => boolean} shouldNormalizeNode * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:172
↓ 2 callers
Function
printProblems
(severity)
lib/formatters/verboseFormatter.mjs:57
↓ 2 callers
Function
putIfAbsent
(map, key, callback)
lib/utils/putIfAbsent.mjs:12
↓ 2 callers
Function
removeEmptyLinesBefore
(node, newline)
lib/utils/removeEmptyLinesBefore.mjs:9
↓ 2 callers
Method
removeEntry
* @param {string} absoluteFilepath
lib/utils/FileCache.mjs:112
↓ 2 callers
Function
replaceIrregularWhitespaces
* @param {string} str * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:163
↓ 2 callers
Function
report
(node)
lib/unscopedDisables.mjs:25
↓ 2 callers
Function
reportDisablesForRule
* @param {import('stylelint').ConfigRuleSettings<any, object>} options * @returns {boolean}
lib/reportDisables.mjs:44
↓ 2 callers
Function
reportSchemeRelativeUrl
(node, rawInput, result)
lib/rules/function-url-no-scheme-relative/index.mjs:25
↓ 2 callers
Function
resolveFilePath
(location, cwd, defaultFileName)
lib/utils/resolveFilePath.mjs:16
↓ 2 callers
Function
roundToNumberOfDigits
* @param {number} num * @param {string} value * @returns {string}
lib/rules/lightness-notation/index.mjs:143
↓ 2 callers
Function
rule
(enabled)
lib/__tests__/fixtures/plugin-async.mjs:7
↓ 2 callers
Function
ruleLink
* @param {string} rule * @param {Partial<RuleMeta> | undefined} metadata * @returns {string}
lib/formatters/verboseFormatter.mjs:148
↓ 2 callers
Function
runChildProcess
* Run a child process and track its duration and memory usage. * * @param {import('child_process').ChildProcess} child * @param {Worker} memoryWork
scripts/benchmarking/benchmark.mjs:60
↓ 2 callers
Function
runStylelint
* Run Stylelint via Yarn and return parsed JSON results. * @param {string} cwd Working directory to run Stylelint from * @param {string[]} args Argu
system-tests/006/yarn-pnp.test.mjs:122
↓ 2 callers
Function
setAtRuleParams
(atRule, params)
lib/utils/setAtRuleParams.mjs:8
↓ 2 callers
Function
shouldIgnoreNode
* @param {import('@csstools/media-query-list-parser').MediaQuery|import('@csstools/media-query-list-parser').GeneralEnclosed} node * @param {Paramete
lib/rules/media-query-no-invalid/index.mjs:170
↓ 2 callers
Function
showHelp
()
lib/cli.mjs:406
↓ 2 callers
Function
testAgainstString
* @param {string} value * @param {unknown} comparison * @returns {ReturnValue}
lib/utils/containsString.mjs:38
↓ 2 callers
Function
testAgainstStringOrRegExp
* @param {string} value * @param {string | RegExp} comparison * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:68
↓ 2 callers
Function
testAgainstStringOrRegExpOrArray
* @param {string} value * @param {string | RegExp | Array<string | RegExp>} comparison * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:36
↓ 2 callers
Function
tokenizeIfValueMightContainUnknownUnits
(value)
lib/rules/unit-no-unknown/index.mjs:84
↓ 2 callers
Function
tokenizeWithoutPercentages
* In the CSS syntax percentages are a different token type than dimensions. * For CSS authors however this distinction doesn't make sense, so we conv
lib/rules/unit-disallowed-list/index.mjs:192
↓ 2 callers
Function
zeroSpecificity
()
lib/rules/selector-max-specificity/index.mjs:33
↓ 1 callers
Method
#prune
* Removes old, unused suppressions for problems that do not occur anymore. * @param {SuppressedProblems} unused The unused suppressions. * @param
lib/utils/suppressionsService.mjs:85
↓ 1 callers
Method
#save
* Updates the suppressions file. * @param {SuppressedProblems} suppressions The suppressions to save. * @returns {Promise<void>}
lib/utils/suppressionsService.mjs:274
↓ 1 callers
Function
addOption
(key)
lib/augmentConfig.mjs:673
↓ 1 callers
Function
addOptions
* Add options to the config * * @param {StylelintInternalApi} stylelint * @param {StylelintConfig} config * * @returns {StylelintConfig}
lib/augmentConfig.mjs:643
↓ 1 callers
Function
addPluginFunctions
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:390
↓ 1 callers
Function
addProcessorFunctions
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:442
↓ 1 callers
Function
addQuotes
@param {FunctionNode} funcNode
lib/rules/function-url-quotes/index.mjs:140
↓ 1 callers
Function
asNumber
* @param {string} value * @param {import('postcss-value-parser').FunctionNode['value']} func
lib/rules/lightness-notation/index.mjs:126
↓ 1 callers
Function
asPercentage
* @param {string} value * @param {import('postcss-value-parser').FunctionNode['value']} func
lib/rules/lightness-notation/index.mjs:104
↓ 1 callers
Function
augmentConfigExtended
(cwd)
lib/augmentConfig.mjs:105
↓ 1 callers
Function
buildAllowedOptions
(allowedOptions)
lib/utils/checkInvalidCLIOptions.mjs:12
↓ 1 callers
Function
buildDirectionalMap
* Builds a physical → flow-relative unit map based on the inline direction. * * @param {Directionality} inline * @returns {Map<string, string>}
lib/rules/unit-layout-mappings/index.mjs:36
↓ 1 callers
Function
buildDirectionalMap
* Builds a physical → flow-relative property map based on the directionality config. * * @param {{ block: Directionality, inline: Directionality }}
lib/rules/property-layout-mappings/index.mjs:47
↓ 1 callers
Function
buildDirectionalMap
* @param {{ block: Directionality, inline: Directionality }} directionality * @returns {Map<string, Map<string, string>>}
lib/rules/value-keyword-layout-mappings/index.mjs:49
↓ 1 callers
Function
buildMessageLine
(invalid, suggestion)
lib/utils/checkInvalidCLIOptions.mjs:78
↓ 1 callers
Function
buildWarningMessage
* @param {RuleMessage} message * @param {NonNullable<Problem['messageArgs']>} messageArgs * @param {string} ruleName * @returns {string}
lib/utils/report.mjs:158
↓ 1 callers
Method
calcHashOfConfig
* @param {import('stylelint').Config} config
lib/utils/FileCache.mjs:54
↓ 1 callers
Function
calcTimeValueCount
* @param {{unit: string | null, number: string | null}} dimension * @param {string} value * @param {number} valueTimeCount * @returns {number
lib/rules/time-min-milliseconds/index.mjs:91
↓ 1 callers
Function
calculateStats
* Calculate benchmark statistics from raw results. * * @param {RawResult[]} results Raw results from multiple iterations. * @param {WorkspaceInfo}
scripts/benchmarking/benchmark.mjs:200
↓ 1 callers
Function
calculateWidths
* @param {[string, string, string, string, string]} columns * @returns {[string, string, string, string, string]}
lib/formatters/stringFormatter.mjs:152
↓ 1 callers
Function
canCondenseToOneValue
* @param {string} top * @param {string} right * @param {string} bottom * @param {string} left * @returns {boolean}
lib/rules/shorthand-property-no-redundant-values/index.mjs:89
↓ 1 callers
Function
canCondenseToThreeValues
* @param {string} _top * @param {string} right * @param {string} _bottom * @param {string} left * @returns {boolean}
lib/rules/shorthand-property-no-redundant-values/index.mjs:115
↓ 1 callers
Function
canCondenseToTwoValues
* @param {string} top * @param {string} right * @param {string} bottom * @param {string} left * @returns {boolean}
lib/rules/shorthand-property-no-redundant-values/index.mjs:104
↓ 1 callers
Function
canShrink
* @param {string} hex
lib/rules/color-hex-length/index.mjs:88
↓ 1 callers
Function
canUseImplicitNesting
* Check if a selector can use implicit nesting, i.e. * has a combinator after any comments or nesting selectors * * @param {import('postcss-selecto
lib/rules/relative-selector-nesting-notation/index.mjs:112
↓ 1 callers
Function
characterToUnicodeString
(str)
lib/rules/no-irregular-whitespace/__tests__/index.mjs:35
↓ 1 callers
Function
check
* @param {Node} node * @param {import('postcss').Declaration} decl
lib/rules/custom-property-no-missing-var-function/index.mjs:81
↓ 1 callers
Function
check
* @param {string} selector * @param {import('postcss').ChildNode} node
lib/rules/selector-pseudo-class-no-unknown/index.mjs:97
↓ 1 callers
Function
checkArgs
* @param {string} args * @param {number} index * @returns {Pick<Problem, 'index' | 'endIndex'> & { messageType: keyof messages } | undefined}
lib/rules/function-url-quotes/index.mjs:197
↓ 1 callers
Function
checkFamilyName
* @param {MutableNode} fontFamilyNode * @param {import('postcss').Declaration} decl
lib/rules/font-family-name-quotes/index.mjs:161
↓ 1 callers
Function
checkFunction
* Check that a function node is valid for a given media feature name. * * @param {State} state * @param {import('@csstools/css-parser-algorit
lib/rules/media-feature-name-value-no-unknown/index.mjs:163
↓ 1 callers
Function
checkListOfComponentValues
* Check that an array of component values is valid for a given media feature name. * * @param {State} state * @param {Array<import('@csstools
lib/rules/media-feature-name-value-no-unknown/index.mjs:194
↓ 1 callers
Function
checkMediaFeatureValue
* @param {State} state * @param {import('@csstools/media-query-list-parser').MediaFeatureValue} valueNode * @param {Reporter} reporter * @ret
lib/rules/media-feature-name-value-no-unknown/index.mjs:219
↓ 1 callers
Function
checkOperationWithoutOperator
* @param {ContainerNode} node * @param {Operation} operation
lib/rules/function-calc-no-unspaced-operator/index.mjs:130
↓ 1 callers
Function
checkRule
* @param {import('postcss').Rule} ruleNode * @returns {void}
lib/rules/string-no-newline/index.mjs:63
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {Rule} ruleNode
lib/rules/selector-max-type/index.mjs:69
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-universal/index.mjs:50
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-compound-selectors/index.mjs:64
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-attribute/index.mjs:50
↓ 1 callers
Function
checkSelector
* @param {Root} resolvedSelectorNode * @param {Selector} selectorNode * @param {boolean} nested
lib/rules/selector-no-qualifying-type/index.mjs:141
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-class/index.mjs:37
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-pseudo-class/index.mjs:40
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} resolvedSelectorNode * @param {import('postcss-selector-parser').Selector} selectorNode *
lib/rules/no-descending-specificity/index.mjs:100
↓ 1 callers
Function
checkSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-combinators/index.mjs:37
↓ 1 callers
Function
checkSelectorListInDifferentRules
* Check selectors in different rules, but evaluate each selector list as a single item: * `a, b {} b, a {}` -> double "a, b" * * @param {Post
lib/rules/no-duplicate-selectors/index.mjs:120
↓ 1 callers
Function
checkSelectorsInDifferentRules
* Check selectors in different rules, and evaluate each selector as an individual item: * `a, b {} a {}` -> double "a" * * @param {PostcssRul
lib/rules/no-duplicate-selectors/index.mjs:164
↓ 1 callers
Function
checkSelectorsInTheSameRule
* Check selectors in the same rule: * `a, b, a {}` -> double "a" * * @param {PostcssRule} ruleNode
lib/rules/no-duplicate-selectors/index.mjs:85
↓ 1 callers
Function
checkSingleToken
* Check that a single token value is valid for a given media feature name. * * @param {State} state * @param {import('@csstools/css-tokenizer
lib/rules/media-feature-name-value-no-unknown/index.mjs:76
↓ 1 callers
Function
clearEmittedWarnings
()
lib/utils/emitWarning.mjs:78
↓ 1 callers
Function
clearModuleCache
()
lib/utils/cachedImport.mjs:38
↓ 1 callers
Function
componentValueIsIgnored
* Ignore wrong units within `url` function * Ignore units within function that match `ignoreFunctions` option * * @param {import('@csstools/c
lib/rules/unit-disallowed-list/index.mjs:66
↓ 1 callers
Function
compress
(data)
scripts/pkg.pr.new-custom-comment.mjs:102
↓ 1 callers
Function
computeEditInfo
* @param {Problem & { line: number }} problem * @returns {{range: [number, number], text: string} | undefined}
lib/utils/report.mjs:230
↓ 1 callers
Function
containsCalcSizeWithSizeKeyword
* Detect `calc-size()` with the `size` keyword in its arguments. * * @param {Array<import('@csstools/css-parser-algorithms').ComponentValue>} compon
lib/rules/declaration-property-value-no-unknown/index.mjs:341
↓ 1 callers
Function
containsIgnoredPseudoClassesOrRulesOnly
* @param {string[]} selectors * @returns {boolean}
lib/rules/max-nesting-depth/index.mjs:138
↓ 1 callers
Function
containsPseudoClassesOnly
* @param {string} selector
lib/rules/max-nesting-depth/index.mjs:123
↓ 1 callers
Function
containsVariable
* @param {import('postcss-value-parser').Node[]} nodes
lib/rules/color-function-notation/index.mjs:143
↓ 1 callers
Function
contextFixer
(entry)
lib/rules/media-feature-range-notation/index.mjs:116
↓ 1 callers
Function
copyTemplateFiles
* Copy all files from a template directory to a fixture directory. * @param {FixtureType} fixtureType
system-tests/006/yarn-pnp.test.mjs:63
↓ 1 callers
Function
createEmptyStylelintPostcssResult
* @returns {StylelintPostcssResult}
lib/lintSource.mjs:140
↓ 1 callers
Function
createMapWithSet
(record)
lib/utils/createMapWithSet.mjs:8
↓ 1 callers
Function
createOrUpdateComment
(issueNumber)
scripts/pkg.pr.new-custom-comment.mjs:81
↓ 1 callers
Function
createSeededRandom
* Seeded pseudo-random number generator, using the mulberry32 algorithm. * Ensures reproducible, deterministic workspace generation across runs. *
scripts/benchmarking/generateWorkspace.mjs:27
↓ 1 callers
Function
cssSyntax
* @param {boolean} fix * @returns {Promise<Syntax>}
lib/getPostcssResult.mjs:61
↓ 1 callers
Function
declarationIsAChildOfRule
* Check that a given declaration is a child of this rule and not a nested rule * * @param {import('postcss').Declaration} decl * @param {import('po
lib/rules/rule-selector-property-disallowed-list/index.mjs:107
← previous
next →
401–500 of 980, ranked by callers