mirror of
https://github.com/thangisme/notes.git
synced 2025-09-24 05:14:12 -04:00
Initial commit
This commit is contained in:
10
node_modules/stylelint/lib/utils/atRuleParamIndex.js
generated
vendored
Normal file
10
node_modules/stylelint/lib/utils/atRuleParamIndex.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
module.exports = function (atRule/*: postcss$atRule*/)/*: number*/ {
|
||||
// Initial 1 is for the `@`
|
||||
let index = 1 + atRule.name.length
|
||||
if (atRule.raws.afterName) {
|
||||
index += atRule.raws.afterName.length
|
||||
}
|
||||
return index
|
||||
}
|
Reference in New Issue
Block a user