UNPKG

@stylistic/stylelint-plugin

Version:
20 lines (17 loc) 629 B
import hasLessInterpolation from "./hasLessInterpolation.js" import hasPsvInterpolation from "./hasPsvInterpolation.js" import hasScssInterpolation from "./hasScssInterpolation.js" import hasTplInterpolation from "./hasTplInterpolation.js" /** * Check whether a string has interpolation * * @param {string} string * @return {boolean} If `true`, a string has interpolation */ export default function hasInterpolation (string) { // SCSS or Less interpolation if (hasLessInterpolation(string) || hasScssInterpolation(string) || hasTplInterpolation(string) || hasPsvInterpolation(string)) { return true } return false }