UNPKG

stylelint-taro-rn

Version:

A collection of React Native specific rules for stylelint

1 lines 956 B
{"version":3,"file":"hasInterpolation.js","sources":["../../src/utils/hasInterpolation.js"],"sourcesContent":["import { hasLessInterpolation } from './hasLessInterpolation.js'\nimport { hasPsvInterpolation } from './hasPsvInterpolation.js'\nimport { hasScssInterpolation } from './hasScssInterpolation.js'\n\n/**\n * Check whether a string has interpolation\n *\n * @param {string} string\n * @return {boolean} If `true`, a string has interpolation\n */\nexport function hasInterpolation (string /*: string */) /*: boolean */ {\n // SCSS or Less interpolation\n if (\n hasLessInterpolation(string) ||\n hasScssInterpolation(string) ||\n hasPsvInterpolation(string)\n ) {\n return true\n }\n\n return false\n}\n"],"names":[],"mappings":";;;;AAIA;;;;;AAKG;AACa,SAAA,gBAAgB,CAAE,MAAM,gBAAc;;IAEpD,IACE,oBAAoB,CAAC,MAAM,CAAC;QAC5B,oBAAoB,CAAC,MAAM,CAAC;AAC5B,QAAA,mBAAmB,CAAC,MAAM,CAAC,EAC3B;AACA,QAAA,OAAO,IAAI;;AAGb,IAAA,OAAO,KAAK;AACd;;;;"}