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
↓ 1 callers
Function
isLineHeight
* @param {string} prop
lib/rules/length-zero-no-unit/index.mjs:178
↓ 1 callers
Function
isLineHeightValue
* @param {Declaration} decl * @param {Node[]} nodes * @param {number} index
lib/rules/length-zero-no-unit/index.mjs:169
↓ 1 callers
Function
isMarginContextPropertyInMarginAtRule
* @param {import('postcss').AtRule} atRule * @param {string} prop * @param {import('postcss').AtRule} parent
lib/rules/at-rule-descriptor-no-unknown/index.mjs:88
↓ 1 callers
Function
isNameOfValueIgnored
(name, value)
lib/rules/media-feature-name-value-no-unknown/index.mjs:65
↓ 1 callers
Function
isNestedRule
* @param {Rule} ruleNode * @returns {boolean}
lib/rules/selector-max-type/index.mjs:170
↓ 1 callers
Function
isNestedStyleRule
* Check if a rule is a nested style rule * * @param {import('postcss').Rule} ruleNode * @returns {boolean}
lib/rules/relative-selector-nesting-notation/index.mjs:89
↓ 1 callers
Function
isNextSiblingCombinator
* @param {SelectorNode | undefined} node * @returns {boolean}
lib/rules/selector-max-type/index.mjs:239
↓ 1 callers
Function
isNumber
* @param {string} value * @returns {boolean}
lib/rules/alpha-value-notation/index.mjs:200
↓ 1 callers
Function
isNumber
* @param {string} unit
lib/rules/length-zero-no-unit/index.mjs:213
↓ 1 callers
Function
isPageContextPropertyInPageAtRule
* @param {import('postcss').AtRule} atRule * @param {string} prop
lib/rules/at-rule-descriptor-no-unknown/index.mjs:100
↓ 1 callers
Function
isPercentage
* @param {string} value * @returns {boolean}
lib/rules/alpha-value-notation/index.mjs:190
↓ 1 callers
Function
isPossibleFontWeightNode
* @param {Node} node * @param {number} index * @param {Node[]} nodes * @returns {boolean}
lib/rules/font-weight-notation/index.mjs:200
↓ 1 callers
Function
isProcessAlive
* Check if process is alive without sending a signal. * * @param {number} pid * @returns {boolean}
scripts/benchmarking/memoryWorker.mjs:13
↓ 1 callers
Function
isPropIgnored
(name, value)
lib/rules/declaration-property-value-no-unknown/index.mjs:97
↓ 1 callers
Function
isRange
(value)
lib/utils/validateTypes.mjs:142
↓ 1 callers
Function
isSelectorIgnored
* @param {import('postcss-selector-parser').Node} selectorNode * @returns {boolean}
lib/rules/selector-max-compound-selectors/index.mjs:54
↓ 1 callers
Function
isSimple
(list)
lib/rules/selector-not-notation/index.mjs:49
↓ 1 callers
Function
isStandardDirection
* @param {string} source * @param {boolean} withToPrefix
lib/rules/function-linear-gradient-no-nonstandard-direction/index.mjs:38
↓ 1 callers
Function
isSystemFontKeyword
* @param {string} font * @returns {boolean}
lib/rules/font-family-name-quotes/index.mjs:26
↓ 1 callers
Function
isUnmatchableNth
(/** @type {import('css-tree').AnPlusB} */ nth)
lib/rules/selector-anb-no-unmatchable/index.mjs:25
↓ 1 callers
Function
isValidDirPseudoClass
* @param {import('css-tree').PseudoClassSelector} node * @param {ReadonlySet<string>} identifiers * @returns {boolean}
lib/rules/selector-no-invalid/index.mjs:102
↓ 1 callers
Function
isZero
* @param {string} number
lib/rules/length-zero-no-unit/index.mjs:206
↓ 1 callers
Function
joinValueNodes
* @param {Node} firstNode * @param {Node} secondNode * @param {string | null} charactersBetween * @returns {Node}
lib/utils/findFontFamily.mjs:27
↓ 1 callers
Function
jsonFormatter
(results)
lib/formatters/jsonFormatter.mjs:8
↓ 1 callers
Function
lastCompoundSelectorWithoutPseudoClasses
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('stylelint').PostcssResult} result * @returns {string | undefine
lib/rules/no-descending-specificity/index.mjs:160
↓ 1 callers
Function
less
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:34
↓ 1 callers
Function
lintPostcssResult
(stylelintOptions, postcssResult, config)
lib/lintPostcssResult.mjs:20
↓ 1 callers
Function
listImportConditions
* List the import conditions found in the prelude of an `@import` rule * * @param {Node[]} params * @returns {Array<string>}
lib/rules/no-duplicate-at-import-rules/index.mjs:98
↓ 1 callers
Function
loadExtendedConfig
* @param {StylelintInternalApi} stylelint * @param {string} configDir * @param {string} extendLookup * @returns {Promise<StylelintCosmiconfigResult
lib/augmentConfig.mjs:284
↓ 1 callers
Function
logFrom
* @param {string} fromValue * @param {string} cwd * @returns {string}
lib/formatters/stringFormatter.mjs:98
↓ 1 callers
Function
main
* Main entry point.
scripts/benchmarking/run-system.mjs:121
↓ 1 callers
Function
makeMutableFontFamilies
(fontFamilies, decl)
lib/rules/font-family-name-quotes/index.mjs:80
↓ 1 callers
Function
mergeAtRuleDefinitions
* @param {AtRuleDefinitions | undefined} source1 * @param {AtRuleDefinitions | undefined} source2 * @returns {AtRuleDefinitions | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:56
↓ 1 callers
Function
mergeKeywords
* @param {Array<string> | undefined} source1 * @param {Array<string> | undefined} source2 * @returns {Array<string> | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:104
↓ 1 callers
Function
mergePrelude
* @param {string | undefined} source1 * @param {string | undefined} source2 * @returns {string | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:152
↓ 1 callers
Function
mergeSyntax
* @param {string | undefined} source1 * @param {string} source2 * @returns {string}
lib/utils/mergeSyntaxDefinitions.mjs:137
↓ 1 callers
Function
mergeTwoSyntaxDefinitions
* Merge two separate syntax definitions. * Individual definitions will override each other unless the second definition starts with a pipe symbol `|`
lib/utils/mergeSyntaxDefinitions.mjs:38
↓ 1 callers
Function
mergeUnits
* @param {UnitDefinitions | undefined} source1 * @param {UnitDefinitions | undefined} source2 * @returns {UnitDefinitions | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:116
↓ 1 callers
Function
namedAreas
* @param {string[][]} areas * @returns {string[]}
lib/rules/named-grid-areas-no-invalid/utils/findNotContiguousOrRectangular.mjs:43
↓ 1 callers
Function
needlessDisables
(postcssResult)
lib/needlessDisables.mjs:12
↓ 1 callers
Function
nestingDepth
* @param {import('postcss').Node} node * @param {number} level * @returns {number}
lib/rules/max-nesting-depth/index.mjs:101
↓ 1 callers
Function
normalizeAllRuleSettings
(config)
lib/normalizeAllRuleSettings.mjs:10
↓ 1 callers
Function
normalizeAtRule
. * @param {string} value * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:192
↓ 1 callers
Function
normalizeResult
({ cwd, report, results, ...rest })
system-tests/005/commonjs.test.cjs:31
↓ 1 callers
Function
normalizeSelectorNodesOrder
* @param {Node} node
lib/utils/normalizeSelector.mjs:114
↓ 1 callers
Function
normalizeSeverity
* @param {Warning} warning * @returns {Severity}
lib/formatters/preprocessWarnings.mjs:47
↓ 1 callers
Function
normalizeValue
* @param {Array<TokenIdent>} tokens * @returns {string}
lib/rules/display-notation/index.mjs:181
↓ 1 callers
Function
packStylelint
* Pack Stylelint into a tarball for installation testing. * @returns {Promise<string>} Path to the created tarball
system-tests/006/yarn-pnp.test.mjs:85
↓ 1 callers
Function
parseCLIArgs
* Parse command line arguments. * * @returns {Object}
scripts/benchmarking/run-system.mjs:34
↓ 1 callers
Function
parseCustomMediaQuery
(atRule)
lib/utils/parseCustomMediaQuery.mjs:9
↓ 1 callers
Function
parseErrorToWarning
* @param {ParseError} error * @returns {Warning}
lib/formatters/preprocessWarnings.mjs:33
↓ 1 callers
Function
parseGlobbyOptions
* @param {string} value * @returns {Promise<Record<string, unknown>>}
lib/cli.mjs:668
↓ 1 callers
Function
parseKeyframeSelector
* Full syntax is: * `<keyframe-selector> = from | to | <percentage [0,100]> | <timeline-range-name> <percentage>` * * Only parses `from | to | <per
lib/rules/keyframe-selector-notation/index.mjs:142
↓ 1 callers
Function
parseOperation
* @param {ContainerNode} container * @param {number} cursor * @returns {[Operation | undefined, number]}
lib/rules/function-calc-no-unspaced-operator/index.mjs:506
↓ 1 callers
Function
pollMemory
()
scripts/benchmarking/memoryWorker.mjs:73
↓ 1 callers
Function
postprocess
(result, root)
lib/__tests__/fixtures/postprocess-update-text.mjs:5
↓ 1 callers
Function
precisionInsideFunction
* @param {string} functionName * @param {number} currentPrecision * @returns {number}
lib/rules/number-max-precision/index.mjs:189
↓ 1 callers
Function
primaryUnitList
(/** @type {string} */ featureName)
lib/rules/media-feature-name-unit-allowed-list/index.mjs:42
↓ 1 callers
Function
printHelp
* Print help message.
scripts/benchmarking/run-system.mjs:76
↓ 1 callers
Function
printHelp
()
scripts/benchmarking/run-rule.mjs:13
↓ 1 callers
Function
printfLike
* @param {string} format * @param {Array<unknown>} args * @returns {string}
lib/utils/report.mjs:170
↓ 1 callers
Function
processBorderRadiusValue
* Process the `border-radius` value when a slash is present. * * @param {import('stylelint').PostcssResult} result * @param {import('postcss').Decl
lib/rules/shorthand-property-no-redundant-values/index.mjs:185
↓ 1 callers
Function
processDisableCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:240
↓ 1 callers
Function
processDisableLineCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:174
↓ 1 callers
Function
processDisableNextLineCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:190
↓ 1 callers
Function
processEnableCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:276
↓ 1 callers
Function
quotesRecommended
* "To avoid mistakes in escaping, it is recommended to quote font family names * that contain white space, digits, or punctuation characters other th
lib/rules/font-family-name-quotes/index.mjs:46
↓ 1 callers
Function
quotesRequired
* Quotes are required if the family is not a valid CSS identifier * (regexes from https://mathiasbynens.be/notes/unquoted-font-family) * * @param {
lib/rules/font-family-name-quotes/index.mjs:57
↓ 1 callers
Function
randomComponentName
* Generate a random component name. * * @returns {string}
scripts/benchmarking/generateWorkspace.mjs:55
↓ 1 callers
Function
rawNodeString
(node)
lib/utils/rawNodeString.mjs:15
↓ 1 callers
Method
reconcile
()
lib/utils/FileCache.mjs:101
↓ 1 callers
Function
rejectMessage
* @param {string} ruleName * @param {string[]} [suggestions] * @returns {string}
lib/reportUnknownRuleNames.mjs:49
↓ 1 callers
Function
removeQuotes
@param {FunctionNode} funcNode
lib/rules/function-url-quotes/index.mjs:149
↓ 1 callers
Function
reportDisables
(postcssResult)
lib/reportDisables.mjs:11
↓ 1 callers
Function
reportUnknownRuleNames
(unknownRuleName, postcssRoot, postcssResult)
lib/reportUnknownRuleNames.mjs:64
↓ 1 callers
Function
reportUnscopedDisables
(postcssResult)
lib/unscopedDisables.mjs:10
↓ 1 callers
Function
requiresQuotes
* Check if a URL requires quotes for valid CSS * * This function determines if a URL needs to be quoted when used in a CSS url() function. *
lib/rules/function-url-quotes/index.mjs:169
↓ 1 callers
Function
resolveConfig
( filePath, { cwd = process.cwd(), config = undefined, configBasedir = undefined, configFile = undef
lib/resolveConfig.mjs:10
↓ 1 callers
Function
resolveCustomSyntax
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:530
↓ 1 callers
Function
resolvePnP
* Attempts to resolve a module specifier using Yarn PnP's API. * * When running under Yarn PnP, the import-meta-resolve polyfill doesn't work * bec
lib/utils/resolveSilent.mjs:37
↓ 1 callers
Function
resolveReferenceFiles
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:491
↓ 1 callers
Function
resolveShorthandValue
* @param {string} prefixedShorthandProperty * @param {string[]} prefixedShorthandData * @param {Map<string, Declaration>} transformedDeclarationNode
lib/rules/declaration-block-no-redundant-longhand-properties/index.mjs:384
↓ 1 callers
Function
rule
(primary, secondaryOptions)
lib/rules/color-named/index.mjs:32
↓ 1 callers
Function
runAllBenchmarks
(workspaces, options)
scripts/benchmarking/benchmark.mjs:287
↓ 1 callers
Function
runApiBenchmark
* Run the benchmark against the Stylelint API in a child process. * * @param {WorkspaceInfo} workspace Workspace info. * @param {Worker} memoryWork
scripts/benchmarking/benchmark.mjs:110
↓ 1 callers
Function
runBenchmark
(workspace, { iterations, warmup, mode, logger }, memoryWorker)
scripts/benchmarking/benchmark.mjs:251
↓ 1 callers
Function
runCliBenchmark
* Run the benchmark against the Stylelint CLI in a child process. * * @param {WorkspaceInfo} workspace Workspace info. * @param {Worker} memoryWork
scripts/benchmarking/benchmark.mjs:139
↓ 1 callers
Function
sass
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:38
↓ 1 callers
Function
sassAtRules
(code)
lib/utils/__tests__/isStandardSyntaxAtRule.test.mjs:100
↓ 1 callers
Function
scss
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:42
↓ 1 callers
Function
scssAtRules
(code)
lib/utils/__tests__/isStandardSyntaxAtRule.test.mjs:104
↓ 1 callers
Function
setupAllFixtures
* Set up all fixtures for testing.
system-tests/006/yarn-pnp.test.mjs:148
↓ 1 callers
Function
sortCompoundSelectors
* @param {Node[]} nodes * @returns {Node[]}
lib/utils/normalizeSelector.mjs:192
↓ 1 callers
Function
splitBorderRadius
* Split the `border-radius` value into horizontal and vertical radius arrays. * * @param {string} value * @returns {{ horizontal: string[]; vertica
lib/rules/shorthand-property-no-redundant-values/index.mjs:125
↓ 1 callers
Function
startTime
* Start time measurement. * @returns {bigint} Variable for tracking time in nanoseconds.
lib/timing.mjs:11
↓ 1 callers
Function
startsWithCombinator
* Check if a selector starts with a combinator * * @param {import('postcss-selector-parser').Selector} selector * @returns {boolean}
lib/rules/relative-selector-nesting-notation/index.mjs:99
↓ 1 callers
Function
suggest
(all, invalid)
lib/utils/checkInvalidCLIOptions.mjs:31
↓ 1 callers
Method
suppress
* Updates the suppressions file based on the current problems and the provided rules. * If no rules are provided, all problems are suppressed. * T
lib/utils/suppressionsService.mjs:43
↓ 1 callers
Function
tokenizeDeclarationValue
* @param {string} value * @returns {Array<ComponentValue>}
lib/rules/function-calc-no-unspaced-operator/index.mjs:317
↓ 1 callers
Function
topLevelTokenNodes
@param {import('@csstools/media-query-list-parser').GeneralEnclosed} node
lib/utils/findMediaFeatureNames.mjs:108
← previous
next →
601–700 of 980, ranked by callers