mirror of
https://github.com/thangisme/notes.git
synced 2025-09-24 07:14:22 -04:00
Initial commit
This commit is contained in:
20
node_modules/stylelint/lib/utils/isStandardSyntaxSelector.js
generated
vendored
Normal file
20
node_modules/stylelint/lib/utils/isStandardSyntaxSelector.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
|
||||
const hasInterpolation = require("../utils/hasInterpolation")
|
||||
/**
|
||||
* Check whether a selector is standard
|
||||
*/
|
||||
module.exports = function (selector/*: string*/)/*: boolean*/ {
|
||||
// SCSS or Less interpolation
|
||||
if (hasInterpolation(selector)) {
|
||||
return false
|
||||
}
|
||||
|
||||
// SCSS placeholder selectors
|
||||
if (selector.indexOf("%") === 0) {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user