stylelint-wechat-work-css
Version:
Special stylelint rules for `wechat at work` project css
21 lines (18 loc) • 552 B
JavaScript
const hasLessInterpolation = require('./hasLessInterpolation')
const hasPsvInterpolation = require('./hasPsvInterpolation')
const hasScssInterpolation = require('./hasScssInterpolation')
/**
* Check whether a string has interpolation
*
* @param {string} string
* @return {boolean} If `true`, a string has interpolation
*/
module.exports = function (string) {
// SCSS or Less interpolation
if (hasLessInterpolation(string) || hasScssInterpolation(string) || hasPsvInterpolation(string)) {
return true
}
return false
}
Ω