MCPcopy Create free account

hub / github.com/stylelint/stylelint / functions

Functions980 in github.com/stylelint/stylelint

↓ 3 callersFunctionmergeConfigs
* When merging configs (via extends) * - plugin, extends, overrides arrays are joined * - rules are merged via Object.assign, so there is no attempt
lib/augmentConfig.mjs:301
↓ 3 callersFunctionmergePropertyOrTypeDefinitions
* @param {Record<string, string> | undefined} source1 * @param {Record<string, string> | undefined} source2 * @returns {Record<string, string> | und
lib/utils/mergeSyntaxDefinitions.mjs:83
↓ 3 callersFunctionnodeContextLookup
()
lib/utils/nodeContextLookup.mjs:11
↓ 3 callersFunctionnormalizeDecl
. * @param {string|undefined} value * @param {string=} prop * @returns {string|undefined}
lib/rules/no-irregular-whitespace/index.mjs:201
↓ 3 callersFunctionnormalizeFixMode
(fix)
lib/utils/normalizeFixMode.mjs:12
↓ 3 callersFunctionpostProcessStylelintResult
* @param {InternalApi} stylelint * @param {LintResult} stylelintResult * @param {string} [filePath] * @returns {Promise<void>}
lib/standalone.mjs:402
↓ 3 callersFunctionprepareReturnValue
({ results, maxWarnings, formatter, cwd })
lib/prepareReturnValue.mjs:14
↓ 3 callersFunctionreport
(message)
scripts/remark-plugins/lint-link-to-rule.mjs:21
↓ 3 callersFunctionresultStylelint
(props)
lib/utils/__tests__/checkAgainstRule.test.mjs:8
↓ 3 callersFunctionrule
(css, selector)
lib/utils/__tests__/findAtRuleContext.test.mjs:20
↓ 3 callersFunctionsetupFixture
* Set up a Yarn PnP fixture from a template. * @param {FixtureType} fixtureType
system-tests/006/yarn-pnp.test.mjs:96
↓ 3 callersFunctionstringFormatter
(results, returnValue)
lib/formatters/stringFormatter.mjs:237
↓ 3 callersFunctiontestDisableRangesLess
(source)
lib/__tests__/disableRanges.test.mjs:1229
↓ 3 callersFunctionuniqueId
()
lib/testUtils/uniqueId.mjs:6
↓ 3 callersFunctionwriteOutputFile
(content, filePath)
lib/writeOutputFile.mjs:11
↓ 2 callersFunctionabsolutizePaths
* Make all paths in the config absolute. * * @param {StylelintConfig} config * @param {string} configDir * @param {string} cwd * @returns {Stylel
lib/augmentConfig.mjs:177
↓ 2 callersFunctionaddEmptyLineBefore
(node, newline)
lib/utils/addEmptyLineBefore.mjs:9
↓ 2 callersMethodapplySuppressions
* Checks the provided suppressions against the lint results. * * For each file, counts the number of problems per rule. * For each rule in each
lib/utils/suppressionsService.mjs:139
↓ 2 callersFunctionaugmentConfigBasic
* - Merges config and stylelint options * - Makes all paths absolute * - Merges extends * @param {StylelintInternalApi} stylelint * @param {Stylel
lib/augmentConfig.mjs:60
↓ 2 callersFunctionaugmentConfigFull
(stylelint, filePath, cosmiconfigResult)
lib/augmentConfig.mjs:129
↓ 2 callersFunctioncaseFilePath
(basename)
system-tests/005/commonjs.test.cjs:27
↓ 2 callersFunctioncaseFiles
(caseNumber)
system-tests/systemTestUtils.mjs:13
↓ 2 callersFunctioncheck
* @param {string} selector * @param {AtRule | Rule} node * @param {number} [offset]
lib/rules/selector-pseudo-class-allowed-list/index.mjs:41
↓ 2 callersFunctioncheck
* @param {Rule} ruleNode * @param {string} selectorStr * @param {number} index * @param {number} endIndex
lib/rules/selector-nested-pattern/index.mjs:77
↓ 2 callersFunctioncheck
* @template {import('postcss').AtRule | import('postcss').Declaration} T * @param {T} node * @param {(node: T) => number} getIndex * @param {
lib/rules/number-max-precision/index.mjs:77
↓ 2 callersFunctioncheck
* @template {import('postcss').AtRule | import('postcss').Declaration} T * @param {T} node * @param {(node: T) => number} getIndex * @param {
lib/rules/unit-disallowed-list/index.mjs:85
↓ 2 callersFunctioncheck
* @param {string} selector * @param {AtRule | Rule} node * @param {number} offset
lib/rules/selector-pseudo-class-disallowed-list/index.mjs:41
↓ 2 callersFunctioncheck
* @param {AtRule | Declaration} node * @param {number} nodeIndex * @param {Node} valueNode * @param {ParsedValue} parsedValue
lib/rules/length-zero-no-unit/index.mjs:64
↓ 2 callersFunctioncheck
* @template {import('postcss').AtRule | import('postcss').Declaration} T * @param {T} node * @param {string} value * @param {(node: T) => num
lib/rules/unit-allowed-list/index.mjs:57
↓ 2 callersFunctioncheck
* @param {import('postcss').Rule | import('postcss').AtRule} node * @param {import('css-tree').CssNode} ast * @param {number} [offset=0]
lib/rules/nesting-selector-no-missing-scoping-root/index.mjs:98
↓ 2 callersFunctioncheck
(node, getIndex, componentValue, state)
lib/rules/unit-no-unknown/index.mjs:104
↓ 2 callersFunctioncheck
* @param {import('postcss-value-parser').Node} node * @param {import('postcss').AtRule} atRule
lib/rules/layer-name-pattern/index.mjs:65
↓ 2 callersFunctioncheck
* @param {string} selectorStr * @param {number} index * @param {number} endIndex
lib/rules/selector-disallowed-list/index.mjs:80
↓ 2 callersFunctioncheckCompleteOperation
* @param {ContainerNode} node * @param {Operation} operation * @param {'before' | 'after'} position
lib/rules/function-calc-no-unspaced-operator/index.mjs:109
↓ 2 callersFunctioncheckOperandWhitespace
* @param {Operation} operation * @param {'before' | 'after'} position
lib/rules/function-calc-no-unspaced-operator/index.mjs:214
↓ 2 callersFunctioncheckWeight
* @param {import('postcss').Declaration} decl * @param {Node} weightValueNode * @param {ParsedValue} parsedValue * @returns {true | undefined
lib/rules/font-weight-notation/index.mjs:112
↓ 2 callersFunctionclearModulePathCache
()
lib/utils/getModulePath.mjs:49
↓ 2 callersFunctioncliOption
(opt)
lib/utils/checkInvalidCLIOptions.mjs:65
↓ 2 callersFunctioncomplain
* @param {AtRule|Declaration} node * @param {string} source * @param {number} startIndex
lib/rules/function-url-quotes/index.mjs:94
↓ 2 callersFunctioncomplain
* @param {string} type * @param {string} unit * @param {number} index * @param {number} endIndex * @param {import('postcss').Declaration}
lib/rules/unit-layout-mappings/index.mjs:80
↓ 2 callersFunctioncomplain
(index, endIndex, subject, reason)
lib/rules/selector-no-invalid/index.mjs:42
↓ 2 callersFunctioncomplain
* @param {import('postcss').Declaration} decl * @param {number} offset * @param {number} length * @returns {void}
lib/rules/time-min-milliseconds/index.mjs:147
↓ 2 callersFunctioncomplain
* @param {string} name * @param {number} index * @param {number} length * @param {import('postcss').Declaration} decl
lib/rules/font-family-no-duplicate-names/index.mjs:99
↓ 2 callersFunctioncomplain
()
lib/rules/function-linear-gradient-no-nonstandard-direction/index.mjs:122
↓ 2 callersFunctioncomplain
(messageType, attrNode)
lib/rules/selector-attribute-quotes/index.mjs:47
↓ 2 callersFunctioncomplain
* @param {number} index * @param {string} containerName * @param {import('postcss').Declaration|import('postcss').AtRule} node
lib/rules/container-name-pattern/index.mjs:96
↓ 2 callersFunctioncomplain
* @param {typeof messages[keyof messages]} message * @param {string[]} messageArgs * @param {import('postcss').Node} node * @param {number} i
lib/rules/color-named/index.mjs:170
↓ 2 callersFunctioncomplainToFirstOperand
(operatorChar, mutator)
lib/rules/function-calc-no-unspaced-operator/index.mjs:139
↓ 2 callersMethodcompleteMissingOperator
* @param {string} operatorChar * @param {number} operatorCharPosition * @param {'append' | 'prepend'} type
lib/rules/function-calc-no-unspaced-operator/index.mjs:483
↓ 2 callersFunctionconfigRules
(name)
lib/rules/__tests__/index.test.mjs:142
↓ 2 callersFunctioncontainsFunctionsNotSupportedInCSSTree
* @see csstree/csstree#245 env * @param {CssNode} cssTreeNode * @returns {boolean}
lib/rules/declaration-property-value-no-unknown/index.mjs:325
↓ 2 callersFunctioncountChars
* @param {unknown[]} values * @returns {number}
lib/utils/nodeFieldIndices.mjs:113
↓ 2 callersMethodcountProblemsByRule
* Counts the problems by rule, ignoring warnings. * @param {Warning[]} warnings The warnings to count. * @returns {Map<string, {count: number}>} T
lib/utils/suppressionsService.mjs:295
↓ 2 callersFunctioncreateEmptyPostcssResult
* @param {string | undefined} filePath * @param {Options['existingPostcssResult']} existingPostcssResult * @returns {PostcssResult}
lib/lintSource.mjs:162
↓ 2 callersFunctioncreativeGetMap
* @param {Map<any, any>} someMap * @param {any} someThing
lib/utils/nodeContextLookup.mjs:35
↓ 2 callersFunctioncss
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:30
↓ 2 callersFunctiondisableLine
* @param {PostcssNode} node * @param {number} line * @param {string} ruleName * @param {string|undefined} description
lib/assignDisabledRanges.mjs:207
↓ 2 callersFunctionemitExperimentalWarning
(message, codeKey, detail)
lib/utils/emitWarning.mjs:68
↓ 2 callersFunctionemitWarning
* Emit a warning with the specified type. * * @param {string} message * @param {'DeprecationWarning' | 'ExperimentalWarning'} type - See https://no
lib/utils/emitWarning.mjs:35
↓ 2 callersFunctionerrorMessage
()
lib/cli.mjs:669
↓ 2 callersFunctionextractPseudoRule
* @param {string} selector * @returns {string | undefined}
lib/rules/max-nesting-depth/index.mjs:188
↓ 2 callersFunctionfixer
(node)
lib/rules/declaration-block-no-duplicate-properties/index.mjs:172
↓ 2 callersFunctionfixer
(node, fixed, index)
lib/rules/import-notation/index.mjs:35
↓ 2 callersFunctionfixer
(/** @type {string} */ value)
lib/rules/font-weight-notation/index.mjs:129
↓ 2 callersFunctionfixtures
(...elem)
lib/__tests__/integration.test.mjs:12
↓ 2 callersFunctiongenerateComparisonReport
(baseline, current)
scripts/benchmarking/reporter.mjs:283
↓ 2 callersFunctiongenerateJsonReport
(allResults)
scripts/benchmarking/reporter.mjs:249
↓ 2 callersFunctiongenerateReport
(allResults)
scripts/benchmarking/reporter.mjs:114
↓ 2 callersFunctiongenerateWorkspace
(workspacePath, size, options = {})
scripts/benchmarking/generateWorkspace.mjs:278
↓ 2 callersFunctiongetCustomSyntax
(customSyntax)
lib/utils/getCustomSyntax.mjs:12
↓ 2 callersFunctiongetFileIgnorer
({ ignorePath, ignorePattern, cwd })
lib/utils/getFileIgnorer.mjs:11
↓ 2 callersFunctiongetSelectorTypePriority
* @param {Node} node * @returns {number}
lib/utils/normalizeSelector.mjs:169
↓ 2 callersFunctiongroupBy
* @template {string} K * @param {Warning[]} array * @param {(w: Warning) => K} keyFn * @returns {Record<K, Warning[]>} * @todo replace by Object.g
lib/formatters/verboseFormatter.mjs:113
↓ 2 callersFunctiongroupByCompoundSelectors
(selector)
lib/rules/selector-no-qualifying-type/getCompoundSelectors.mjs:56
↓ 2 callersFunctionhandleError
* @import {CssSyntaxError} from 'stylelint' * * @param {unknown} error * @returns {LintResult}
lib/standalone.mjs:388
↓ 2 callersFunctionhasAlphaChannel
* @param {string} hex
lib/rules/color-hex-alpha/index.mjs:68
↓ 2 callersFunctionhasLessInterpolation
(string)
lib/utils/hasLessInterpolation.mjs:9
↓ 2 callersFunctionhasPsvInterpolation
(string)
lib/utils/hasPsvInterpolation.mjs:9
↓ 2 callersFunctionhasScssInterpolation
(string)
lib/utils/hasScssInterpolation.mjs:9
↓ 2 callersFunctionhasTplInterpolation
(string)
lib/utils/hasTplInterpolation.mjs:9
↓ 2 callersFunctionhasValidScopingRoot
* Check if a node has a valid scoping root * @param {import('postcss').Rule | import('postcss').AtRule} node * @param {object} secondaryOptions * @
lib/rules/nesting-selector-no-missing-scoping-root/index.mjs:127
↓ 2 callersFunctionindentAndTrimRight
(/** @type {Selector[]} */ selectors)
lib/rules/selector-not-notation/index.mjs:180
↓ 2 callersFunctionisAcceptableTime
* @param {import('postcss-value-parser').Dimension | {unit: null, number: null}} dimension * @returns {boolean}
lib/rules/time-min-milliseconds/index.mjs:117
↓ 2 callersFunctionisAfterBlock
(node)
lib/utils/isAfterBlock.mjs:7
↓ 2 callersFunctionisAfterCustomProperty
* @param {import('postcss').Declaration} decl
lib/rules/custom-property-empty-line-before/index.mjs:147
↓ 2 callersFunctionisAfterRule
* @param {import('postcss').Rule} ruleNode * @returns {boolean}
lib/rules/rule-empty-line-before/index.mjs:148
↓ 2 callersFunctionisAfterStandardPropertyDeclaration
(node)
lib/utils/isAfterStandardPropertyDeclaration.mjs:10
↓ 2 callersFunctionisDashedIdent
* @param {Node} node
lib/rules/custom-property-no-missing-var-function/index.mjs:144
↓ 2 callersFunctionisDeclarationContainingAtRule
(node)
lib/rules/no-invalid-position-declaration/index.mjs:48
↓ 2 callersFunctionisDisabledOnLine
* Check whether a rule is disabled for a given line * @param {string} ruleName * @param {number} startLine * @param {DisabledRangeObject} disabledR
lib/utils/report.mjs:182
↓ 2 callersFunctionisFixDisabled
* @param {number} line * @param {string} ruleName * @param {Config} config * @param {DisabledRangeObject} disabledRanges * @returns {boolean}
lib/utils/report.mjs:277
↓ 2 callersFunctionisIgnoreAtRule
(node)
lib/rules/max-nesting-depth/index.mjs:27
↓ 2 callersFunctionisLikelyLegacy
@param {import('postcss-value-parser').Node[]} nodes
lib/rules/color-function-notation/index.mjs:148
↓ 2 callersFunctionisOperandNode
* @param {ComponentValue | undefined} node * @returns {boolean}
lib/rules/function-calc-no-unspaced-operator/index.mjs:389
↓ 2 callersFunctionisPathNotFoundError
(error)
lib/utils/isPathNotFoundError.mjs:7
↓ 2 callersFunctionisPosition
(value)
lib/utils/validateTypes.mjs:128
↓ 2 callersFunctionisScssNamespaceDelim
@param {import('@csstools/css-parser-algorithms').TokenNode | undefined} component
lib/utils/findMediaFeatureNames.mjs:149
↓ 2 callersFunctionisScssVariableDelim
@param {import('@csstools/css-parser-algorithms').TokenNode | undefined} component
lib/utils/findMediaFeatureNames.mjs:144
↓ 2 callersFunctionisSelectorIgnored
(selector)
lib/rules/selector-max-specificity/index.mjs:62
↓ 2 callersFunctionisSimpleSelector
(node)
lib/rules/selector-not-notation/index.mjs:30
← previousnext →301–400 of 980, ranked by callers