MCPcopy Create free account

hub / github.com/stylelint/stylelint / functions

Functions980 in github.com/stylelint/stylelint

↓ 2 callersFunctionisUnicodeRangeDescriptor
(decl)
lib/utils/isUnicodeRangeDescriptor.mjs:12
↓ 2 callersFunctionisUnicodeSupported
()
lib/utils/isUnicodeSupported.mjs:10
↓ 2 callersFunctionisValid
* @param {RuleOptionsPossible | RuleOptionsPossible[]} possible * @param {unknown} actual * @returns {boolean}
lib/utils/validateOptions.mjs:151
↓ 2 callersFunctionisWarningInRange
* @param {import('stylelint').DisabledWarning} warning * @param {import('stylelint').DisabledRange} range * @returns {boolean}
lib/needlessDisables.mjs:83
↓ 2 callersFunctionkebabCase
(opt)
lib/utils/checkInvalidCLIOptions.mjs:51
↓ 2 callersFunctionkeywordOrder
* @param {string} a * @returns {number}
lib/rules/display-notation/index.mjs:158
↓ 2 callersFunctionlint
(code)
scripts/benchmarking/run-rule.mjs:75
↓ 2 callersFunctionmatchValue
* @param {string} value * @param {RegExp} pattern * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:57
↓ 2 callersFunctionnodesShareLines
* @param {PostcssNode | void} a * @param {PostcssNode | void} b
lib/utils/isSharedLineComment.mjs:11
↓ 2 callersFunctionnormalizeNodeEscaping
* 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 callersFunctionnormalizeSelectorNodeWhitespaceAndComments
* @param {Node} node
lib/utils/normalizeSelector.mjs:88
↓ 2 callersFunctionnormalizeValue
* @param {string} value * @param {(node: import('postcss-value-parser').Node) => boolean} shouldNormalizeNode * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:172
↓ 2 callersFunctionprintProblems
(severity)
lib/formatters/verboseFormatter.mjs:57
↓ 2 callersFunctionputIfAbsent
(map, key, callback)
lib/utils/putIfAbsent.mjs:12
↓ 2 callersFunctionremoveEmptyLinesBefore
(node, newline)
lib/utils/removeEmptyLinesBefore.mjs:9
↓ 2 callersMethodremoveEntry
* @param {string} absoluteFilepath
lib/utils/FileCache.mjs:112
↓ 2 callersFunctionreplaceIrregularWhitespaces
* @param {string} str * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:163
↓ 2 callersFunctionreport
(node)
lib/unscopedDisables.mjs:25
↓ 2 callersFunctionreportDisablesForRule
* @param {import('stylelint').ConfigRuleSettings<any, object>} options * @returns {boolean}
lib/reportDisables.mjs:44
↓ 2 callersFunctionreportSchemeRelativeUrl
(node, rawInput, result)
lib/rules/function-url-no-scheme-relative/index.mjs:25
↓ 2 callersFunctionresolveFilePath
(location, cwd, defaultFileName)
lib/utils/resolveFilePath.mjs:16
↓ 2 callersFunctionroundToNumberOfDigits
* @param {number} num * @param {string} value * @returns {string}
lib/rules/lightness-notation/index.mjs:143
↓ 2 callersFunctionrule
(enabled)
lib/__tests__/fixtures/plugin-async.mjs:7
↓ 2 callersFunctionruleLink
* @param {string} rule * @param {Partial<RuleMeta> | undefined} metadata * @returns {string}
lib/formatters/verboseFormatter.mjs:148
↓ 2 callersFunctionrunChildProcess
* 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 callersFunctionrunStylelint
* 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 callersFunctionsetAtRuleParams
(atRule, params)
lib/utils/setAtRuleParams.mjs:8
↓ 2 callersFunctionshouldIgnoreNode
* @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 callersFunctionshowHelp
()
lib/cli.mjs:406
↓ 2 callersFunctiontestAgainstString
* @param {string} value * @param {unknown} comparison * @returns {ReturnValue}
lib/utils/containsString.mjs:38
↓ 2 callersFunctiontestAgainstStringOrRegExp
* @param {string} value * @param {string | RegExp} comparison * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:68
↓ 2 callersFunctiontestAgainstStringOrRegExpOrArray
* @param {string} value * @param {string | RegExp | Array<string | RegExp>} comparison * @returns {MatchResult}
lib/utils/matchesStringOrRegExp.mjs:36
↓ 2 callersFunctiontokenizeIfValueMightContainUnknownUnits
(value)
lib/rules/unit-no-unknown/index.mjs:84
↓ 2 callersFunctiontokenizeWithoutPercentages
* 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 callersFunctionzeroSpecificity
()
lib/rules/selector-max-specificity/index.mjs:33
↓ 1 callersMethod#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 callersMethod#save
* Updates the suppressions file. * @param {SuppressedProblems} suppressions The suppressions to save. * @returns {Promise<void>}
lib/utils/suppressionsService.mjs:274
↓ 1 callersFunctionaddOption
(key)
lib/augmentConfig.mjs:673
↓ 1 callersFunctionaddOptions
* Add options to the config * * @param {StylelintInternalApi} stylelint * @param {StylelintConfig} config * * @returns {StylelintConfig}
lib/augmentConfig.mjs:643
↓ 1 callersFunctionaddPluginFunctions
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:390
↓ 1 callersFunctionaddProcessorFunctions
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:442
↓ 1 callersFunctionaddQuotes
@param {FunctionNode} funcNode
lib/rules/function-url-quotes/index.mjs:140
↓ 1 callersFunctionasNumber
* @param {string} value * @param {import('postcss-value-parser').FunctionNode['value']} func
lib/rules/lightness-notation/index.mjs:126
↓ 1 callersFunctionasPercentage
* @param {string} value * @param {import('postcss-value-parser').FunctionNode['value']} func
lib/rules/lightness-notation/index.mjs:104
↓ 1 callersFunctionaugmentConfigExtended
(cwd)
lib/augmentConfig.mjs:105
↓ 1 callersFunctionbuildAllowedOptions
(allowedOptions)
lib/utils/checkInvalidCLIOptions.mjs:12
↓ 1 callersFunctionbuildDirectionalMap
* 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 callersFunctionbuildDirectionalMap
* 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 callersFunctionbuildDirectionalMap
* @param {{ block: Directionality, inline: Directionality }} directionality * @returns {Map<string, Map<string, string>>}
lib/rules/value-keyword-layout-mappings/index.mjs:49
↓ 1 callersFunctionbuildMessageLine
(invalid, suggestion)
lib/utils/checkInvalidCLIOptions.mjs:78
↓ 1 callersFunctionbuildWarningMessage
* @param {RuleMessage} message * @param {NonNullable<Problem['messageArgs']>} messageArgs * @param {string} ruleName * @returns {string}
lib/utils/report.mjs:158
↓ 1 callersMethodcalcHashOfConfig
* @param {import('stylelint').Config} config
lib/utils/FileCache.mjs:54
↓ 1 callersFunctioncalcTimeValueCount
* @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 callersFunctioncalculateStats
* Calculate benchmark statistics from raw results. * * @param {RawResult[]} results Raw results from multiple iterations. * @param {WorkspaceInfo}
scripts/benchmarking/benchmark.mjs:200
↓ 1 callersFunctioncalculateWidths
* @param {[string, string, string, string, string]} columns * @returns {[string, string, string, string, string]}
lib/formatters/stringFormatter.mjs:152
↓ 1 callersFunctioncanCondenseToOneValue
* @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 callersFunctioncanCondenseToThreeValues
* @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 callersFunctioncanCondenseToTwoValues
* @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 callersFunctioncanShrink
* @param {string} hex
lib/rules/color-hex-length/index.mjs:88
↓ 1 callersFunctioncanUseImplicitNesting
* 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 callersFunctioncharacterToUnicodeString
(str)
lib/rules/no-irregular-whitespace/__tests__/index.mjs:35
↓ 1 callersFunctioncheck
* @param {Node} node * @param {import('postcss').Declaration} decl
lib/rules/custom-property-no-missing-var-function/index.mjs:81
↓ 1 callersFunctioncheck
* @param {string} selector * @param {import('postcss').ChildNode} node
lib/rules/selector-pseudo-class-no-unknown/index.mjs:97
↓ 1 callersFunctioncheckArgs
* @param {string} args * @param {number} index * @returns {Pick<Problem, 'index' | 'endIndex'> & { messageType: keyof messages } | undefined}
lib/rules/function-url-quotes/index.mjs:197
↓ 1 callersFunctioncheckFamilyName
* @param {MutableNode} fontFamilyNode * @param {import('postcss').Declaration} decl
lib/rules/font-family-name-quotes/index.mjs:161
↓ 1 callersFunctioncheckFunction
* 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 callersFunctioncheckListOfComponentValues
* 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 callersFunctioncheckMediaFeatureValue
* @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 callersFunctioncheckOperationWithoutOperator
* @param {ContainerNode} node * @param {Operation} operation
lib/rules/function-calc-no-unspaced-operator/index.mjs:130
↓ 1 callersFunctioncheckRule
* @param {import('postcss').Rule} ruleNode * @returns {void}
lib/rules/string-no-newline/index.mjs:63
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {Rule} ruleNode
lib/rules/selector-max-type/index.mjs:69
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-universal/index.mjs:50
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-compound-selectors/index.mjs:64
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-attribute/index.mjs:50
↓ 1 callersFunctioncheckSelector
* @param {Root} resolvedSelectorNode * @param {Selector} selectorNode * @param {boolean} nested
lib/rules/selector-no-qualifying-type/index.mjs:141
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-class/index.mjs:37
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-pseudo-class/index.mjs:40
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} resolvedSelectorNode * @param {import('postcss-selector-parser').Selector} selectorNode *
lib/rules/no-descending-specificity/index.mjs:100
↓ 1 callersFunctioncheckSelector
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('postcss').Rule} ruleNode
lib/rules/selector-max-combinators/index.mjs:37
↓ 1 callersFunctioncheckSelectorListInDifferentRules
* 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 callersFunctioncheckSelectorsInDifferentRules
* 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 callersFunctioncheckSelectorsInTheSameRule
* Check selectors in the same rule: * `a, b, a {}` -> double "a" * * @param {PostcssRule} ruleNode
lib/rules/no-duplicate-selectors/index.mjs:85
↓ 1 callersFunctioncheckSingleToken
* 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 callersFunctionclearEmittedWarnings
()
lib/utils/emitWarning.mjs:78
↓ 1 callersFunctionclearModuleCache
()
lib/utils/cachedImport.mjs:38
↓ 1 callersFunctioncomponentValueIsIgnored
* 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 callersFunctioncompress
(data)
scripts/pkg.pr.new-custom-comment.mjs:102
↓ 1 callersFunctioncomputeEditInfo
* @param {Problem & { line: number }} problem * @returns {{range: [number, number], text: string} | undefined}
lib/utils/report.mjs:230
↓ 1 callersFunctioncontainsCalcSizeWithSizeKeyword
* 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 callersFunctioncontainsIgnoredPseudoClassesOrRulesOnly
* @param {string[]} selectors * @returns {boolean}
lib/rules/max-nesting-depth/index.mjs:138
↓ 1 callersFunctioncontainsPseudoClassesOnly
* @param {string} selector
lib/rules/max-nesting-depth/index.mjs:123
↓ 1 callersFunctioncontainsVariable
* @param {import('postcss-value-parser').Node[]} nodes
lib/rules/color-function-notation/index.mjs:143
↓ 1 callersFunctioncontextFixer
(entry)
lib/rules/media-feature-range-notation/index.mjs:116
↓ 1 callersFunctioncopyTemplateFiles
* Copy all files from a template directory to a fixture directory. * @param {FixtureType} fixtureType
system-tests/006/yarn-pnp.test.mjs:63
↓ 1 callersFunctioncreateEmptyStylelintPostcssResult
* @returns {StylelintPostcssResult}
lib/lintSource.mjs:140
↓ 1 callersFunctioncreateMapWithSet
(record)
lib/utils/createMapWithSet.mjs:8
↓ 1 callersFunctioncreateOrUpdateComment
(issueNumber)
scripts/pkg.pr.new-custom-comment.mjs:81
↓ 1 callersFunctioncreateSeededRandom
* Seeded pseudo-random number generator, using the mulberry32 algorithm. * Ensures reproducible, deterministic workspace generation across runs. *
scripts/benchmarking/generateWorkspace.mjs:27
↓ 1 callersFunctioncssSyntax
* @param {boolean} fix * @returns {Promise<Syntax>}
lib/getPostcssResult.mjs:61
↓ 1 callersFunctiondeclarationIsAChildOfRule
* 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
← previousnext →401–500 of 980, ranked by callers