MCPcopy Create free account

hub / github.com/stylelint/stylelint / functions

Functions980 in github.com/stylelint/stylelint

↓ 1 callersFunctionisLineHeight
* @param {string} prop
lib/rules/length-zero-no-unit/index.mjs:178
↓ 1 callersFunctionisLineHeightValue
* @param {Declaration} decl * @param {Node[]} nodes * @param {number} index
lib/rules/length-zero-no-unit/index.mjs:169
↓ 1 callersFunctionisMarginContextPropertyInMarginAtRule
* @param {import('postcss').AtRule} atRule * @param {string} prop * @param {import('postcss').AtRule} parent
lib/rules/at-rule-descriptor-no-unknown/index.mjs:88
↓ 1 callersFunctionisNameOfValueIgnored
(name, value)
lib/rules/media-feature-name-value-no-unknown/index.mjs:65
↓ 1 callersFunctionisNestedRule
* @param {Rule} ruleNode * @returns {boolean}
lib/rules/selector-max-type/index.mjs:170
↓ 1 callersFunctionisNestedStyleRule
* 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 callersFunctionisNextSiblingCombinator
* @param {SelectorNode | undefined} node * @returns {boolean}
lib/rules/selector-max-type/index.mjs:239
↓ 1 callersFunctionisNumber
* @param {string} value * @returns {boolean}
lib/rules/alpha-value-notation/index.mjs:200
↓ 1 callersFunctionisNumber
* @param {string} unit
lib/rules/length-zero-no-unit/index.mjs:213
↓ 1 callersFunctionisPageContextPropertyInPageAtRule
* @param {import('postcss').AtRule} atRule * @param {string} prop
lib/rules/at-rule-descriptor-no-unknown/index.mjs:100
↓ 1 callersFunctionisPercentage
* @param {string} value * @returns {boolean}
lib/rules/alpha-value-notation/index.mjs:190
↓ 1 callersFunctionisPossibleFontWeightNode
* @param {Node} node * @param {number} index * @param {Node[]} nodes * @returns {boolean}
lib/rules/font-weight-notation/index.mjs:200
↓ 1 callersFunctionisProcessAlive
* Check if process is alive without sending a signal. * * @param {number} pid * @returns {boolean}
scripts/benchmarking/memoryWorker.mjs:13
↓ 1 callersFunctionisPropIgnored
(name, value)
lib/rules/declaration-property-value-no-unknown/index.mjs:97
↓ 1 callersFunctionisRange
(value)
lib/utils/validateTypes.mjs:142
↓ 1 callersFunctionisSelectorIgnored
* @param {import('postcss-selector-parser').Node} selectorNode * @returns {boolean}
lib/rules/selector-max-compound-selectors/index.mjs:54
↓ 1 callersFunctionisSimple
(list)
lib/rules/selector-not-notation/index.mjs:49
↓ 1 callersFunctionisStandardDirection
* @param {string} source * @param {boolean} withToPrefix
lib/rules/function-linear-gradient-no-nonstandard-direction/index.mjs:38
↓ 1 callersFunctionisSystemFontKeyword
* @param {string} font * @returns {boolean}
lib/rules/font-family-name-quotes/index.mjs:26
↓ 1 callersFunctionisUnmatchableNth
(/** @type {import('css-tree').AnPlusB} */ nth)
lib/rules/selector-anb-no-unmatchable/index.mjs:25
↓ 1 callersFunctionisValidDirPseudoClass
* @param {import('css-tree').PseudoClassSelector} node * @param {ReadonlySet<string>} identifiers * @returns {boolean}
lib/rules/selector-no-invalid/index.mjs:102
↓ 1 callersFunctionisZero
* @param {string} number
lib/rules/length-zero-no-unit/index.mjs:206
↓ 1 callersFunctionjoinValueNodes
* @param {Node} firstNode * @param {Node} secondNode * @param {string | null} charactersBetween * @returns {Node}
lib/utils/findFontFamily.mjs:27
↓ 1 callersFunctionjsonFormatter
(results)
lib/formatters/jsonFormatter.mjs:8
↓ 1 callersFunctionlastCompoundSelectorWithoutPseudoClasses
* @param {import('postcss-selector-parser').Selector} selectorNode * @param {import('stylelint').PostcssResult} result * @returns {string | undefine
lib/rules/no-descending-specificity/index.mjs:160
↓ 1 callersFunctionless
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:34
↓ 1 callersFunctionlintPostcssResult
(stylelintOptions, postcssResult, config)
lib/lintPostcssResult.mjs:20
↓ 1 callersFunctionlistImportConditions
* 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 callersFunctionloadExtendedConfig
* @param {StylelintInternalApi} stylelint * @param {string} configDir * @param {string} extendLookup * @returns {Promise<StylelintCosmiconfigResult
lib/augmentConfig.mjs:284
↓ 1 callersFunctionlogFrom
* @param {string} fromValue * @param {string} cwd * @returns {string}
lib/formatters/stringFormatter.mjs:98
↓ 1 callersFunctionmain
* Main entry point.
scripts/benchmarking/run-system.mjs:121
↓ 1 callersFunctionmakeMutableFontFamilies
(fontFamilies, decl)
lib/rules/font-family-name-quotes/index.mjs:80
↓ 1 callersFunctionmergeAtRuleDefinitions
* @param {AtRuleDefinitions | undefined} source1 * @param {AtRuleDefinitions | undefined} source2 * @returns {AtRuleDefinitions | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:56
↓ 1 callersFunctionmergeKeywords
* @param {Array<string> | undefined} source1 * @param {Array<string> | undefined} source2 * @returns {Array<string> | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:104
↓ 1 callersFunctionmergePrelude
* @param {string | undefined} source1 * @param {string | undefined} source2 * @returns {string | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:152
↓ 1 callersFunctionmergeSyntax
* @param {string | undefined} source1 * @param {string} source2 * @returns {string}
lib/utils/mergeSyntaxDefinitions.mjs:137
↓ 1 callersFunctionmergeTwoSyntaxDefinitions
* 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 callersFunctionmergeUnits
* @param {UnitDefinitions | undefined} source1 * @param {UnitDefinitions | undefined} source2 * @returns {UnitDefinitions | undefined}
lib/utils/mergeSyntaxDefinitions.mjs:116
↓ 1 callersFunctionnamedAreas
* @param {string[][]} areas * @returns {string[]}
lib/rules/named-grid-areas-no-invalid/utils/findNotContiguousOrRectangular.mjs:43
↓ 1 callersFunctionneedlessDisables
(postcssResult)
lib/needlessDisables.mjs:12
↓ 1 callersFunctionnestingDepth
* @param {import('postcss').Node} node * @param {number} level * @returns {number}
lib/rules/max-nesting-depth/index.mjs:101
↓ 1 callersFunctionnormalizeAllRuleSettings
(config)
lib/normalizeAllRuleSettings.mjs:10
↓ 1 callersFunctionnormalizeAtRule
. * @param {string} value * @returns {string}
lib/rules/no-irregular-whitespace/index.mjs:192
↓ 1 callersFunctionnormalizeResult
({ cwd, report, results, ...rest })
system-tests/005/commonjs.test.cjs:31
↓ 1 callersFunctionnormalizeSelectorNodesOrder
* @param {Node} node
lib/utils/normalizeSelector.mjs:114
↓ 1 callersFunctionnormalizeSeverity
* @param {Warning} warning * @returns {Severity}
lib/formatters/preprocessWarnings.mjs:47
↓ 1 callersFunctionnormalizeValue
* @param {Array<TokenIdent>} tokens * @returns {string}
lib/rules/display-notation/index.mjs:181
↓ 1 callersFunctionpackStylelint
* 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 callersFunctionparseCLIArgs
* Parse command line arguments. * * @returns {Object}
scripts/benchmarking/run-system.mjs:34
↓ 1 callersFunctionparseCustomMediaQuery
(atRule)
lib/utils/parseCustomMediaQuery.mjs:9
↓ 1 callersFunctionparseErrorToWarning
* @param {ParseError} error * @returns {Warning}
lib/formatters/preprocessWarnings.mjs:33
↓ 1 callersFunctionparseGlobbyOptions
* @param {string} value * @returns {Promise<Record<string, unknown>>}
lib/cli.mjs:668
↓ 1 callersFunctionparseKeyframeSelector
* 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 callersFunctionparseOperation
* @param {ContainerNode} container * @param {number} cursor * @returns {[Operation | undefined, number]}
lib/rules/function-calc-no-unspaced-operator/index.mjs:506
↓ 1 callersFunctionpollMemory
()
scripts/benchmarking/memoryWorker.mjs:73
↓ 1 callersFunctionpostprocess
(result, root)
lib/__tests__/fixtures/postprocess-update-text.mjs:5
↓ 1 callersFunctionprecisionInsideFunction
* @param {string} functionName * @param {number} currentPrecision * @returns {number}
lib/rules/number-max-precision/index.mjs:189
↓ 1 callersFunctionprimaryUnitList
(/** @type {string} */ featureName)
lib/rules/media-feature-name-unit-allowed-list/index.mjs:42
↓ 1 callersFunctionprintHelp
* Print help message.
scripts/benchmarking/run-system.mjs:76
↓ 1 callersFunctionprintHelp
()
scripts/benchmarking/run-rule.mjs:13
↓ 1 callersFunctionprintfLike
* @param {string} format * @param {Array<unknown>} args * @returns {string}
lib/utils/report.mjs:170
↓ 1 callersFunctionprocessBorderRadiusValue
* 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 callersFunctionprocessDisableCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:240
↓ 1 callersFunctionprocessDisableLineCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:174
↓ 1 callersFunctionprocessDisableNextLineCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:190
↓ 1 callersFunctionprocessEnableCommand
* @param {PostcssNode} node * @param {Source} source * @param {string} text
lib/assignDisabledRanges.mjs:276
↓ 1 callersFunctionquotesRecommended
* "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 callersFunctionquotesRequired
* 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 callersFunctionrandomComponentName
* Generate a random component name. * * @returns {string}
scripts/benchmarking/generateWorkspace.mjs:55
↓ 1 callersFunctionrawNodeString
(node)
lib/utils/rawNodeString.mjs:15
↓ 1 callersMethodreconcile
()
lib/utils/FileCache.mjs:101
↓ 1 callersFunctionrejectMessage
* @param {string} ruleName * @param {string[]} [suggestions] * @returns {string}
lib/reportUnknownRuleNames.mjs:49
↓ 1 callersFunctionremoveQuotes
@param {FunctionNode} funcNode
lib/rules/function-url-quotes/index.mjs:149
↓ 1 callersFunctionreportDisables
(postcssResult)
lib/reportDisables.mjs:11
↓ 1 callersFunctionreportUnknownRuleNames
(unknownRuleName, postcssRoot, postcssResult)
lib/reportUnknownRuleNames.mjs:64
↓ 1 callersFunctionreportUnscopedDisables
(postcssResult)
lib/unscopedDisables.mjs:10
↓ 1 callersFunctionrequiresQuotes
* 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 callersFunctionresolveConfig
( filePath, { cwd = process.cwd(), config = undefined, configBasedir = undefined, configFile = undef
lib/resolveConfig.mjs:10
↓ 1 callersFunctionresolveCustomSyntax
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:530
↓ 1 callersFunctionresolvePnP
* 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 callersFunctionresolveReferenceFiles
* @param {StylelintConfig} config * @returns {Promise<StylelintConfig>}
lib/augmentConfig.mjs:491
↓ 1 callersFunctionresolveShorthandValue
* @param {string} prefixedShorthandProperty * @param {string[]} prefixedShorthandData * @param {Map<string, Declaration>} transformedDeclarationNode
lib/rules/declaration-block-no-redundant-longhand-properties/index.mjs:384
↓ 1 callersFunctionrule
(primary, secondaryOptions)
lib/rules/color-named/index.mjs:32
↓ 1 callersFunctionrunAllBenchmarks
(workspaces, options)
scripts/benchmarking/benchmark.mjs:287
↓ 1 callersFunctionrunApiBenchmark
* 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 callersFunctionrunBenchmark
(workspace, { iterations, warmup, mode, logger }, memoryWorker)
scripts/benchmarking/benchmark.mjs:251
↓ 1 callersFunctionrunCliBenchmark
* 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 callersFunctionsass
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:38
↓ 1 callersFunctionsassAtRules
(code)
lib/utils/__tests__/isStandardSyntaxAtRule.test.mjs:100
↓ 1 callersFunctionscss
(code)
lib/utils/__tests__/isStandardSyntaxComment.test.mjs:42
↓ 1 callersFunctionscssAtRules
(code)
lib/utils/__tests__/isStandardSyntaxAtRule.test.mjs:104
↓ 1 callersFunctionsetupAllFixtures
* Set up all fixtures for testing.
system-tests/006/yarn-pnp.test.mjs:148
↓ 1 callersFunctionsortCompoundSelectors
* @param {Node[]} nodes * @returns {Node[]}
lib/utils/normalizeSelector.mjs:192
↓ 1 callersFunctionsplitBorderRadius
* 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 callersFunctionstartTime
* Start time measurement. * @returns {bigint} Variable for tracking time in nanoseconds.
lib/timing.mjs:11
↓ 1 callersFunctionstartsWithCombinator
* 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 callersFunctionsuggest
(all, invalid)
lib/utils/checkInvalidCLIOptions.mjs:31
↓ 1 callersMethodsuppress
* 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 callersFunctiontokenizeDeclarationValue
* @param {string} value * @returns {Array<ComponentValue>}
lib/rules/function-calc-no-unspaced-operator/index.mjs:317
↓ 1 callersFunctiontopLevelTokenNodes
@param {import('@csstools/media-query-list-parser').GeneralEnclosed} node
lib/utils/findMediaFeatureNames.mjs:108
← previousnext →601–700 of 980, ranked by callers