{"id":3470,"date":"2022-11-18T13:46:15","date_gmt":"2022-11-18T04:46:15","guid":{"rendered":"https:\/\/j-online.ne.jp\/blog\/?p=3470"},"modified":"2022-11-18T13:46:15","modified_gmt":"2022-11-18T04:46:15","slug":"gulp-js%e3%80%81stylelint%e3%81%a7%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%83%89%e6%a5%ad%e5%8b%99%e3%82%92%e5%8a%b9%e7%8e%87%e5%8c%96%ef%bc%81","status":"publish","type":"post","link":"https:\/\/j-online.ne.jp\/blog\/none\/gulp-js%e3%80%81stylelint%e3%81%a7%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%83%89%e6%a5%ad%e5%8b%99%e3%82%92%e5%8a%b9%e7%8e%87%e5%8c%96%ef%bc%81","title":{"rendered":"gulp.js\u3001stylelint\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u696d\u52d9\u3092\u52b9\u7387\u5316\uff01"},"content":{"rendered":"<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u300c\u30b8\u30e7\u30f3\u300d\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u300cgulp\u300d\u3068\u300cstylelint\u300d\u3092\u4f7f\u3063\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u306e\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u8a71\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c1\u30fc\u30e0\u304c\u62b1\u3048\u3066\u3044\u305f\u554f\u984c<\/h2>\n<p>\u554f\u984c\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u306f\u4e0b\u8a183\u70b9\u3067\u3057\u305f\u3002<\/p>\n<p>\u2460 \u300cscss\u300d\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3067Prepros\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001Prepros\u306e\u30d3\u30eb\u30c9\u8a2d\u5b9a\u304c\u7686\u30d0\u30e9\u30d0\u30e9\u3067\u540c\u3058scss\u3067\u3082\u30d3\u30eb\u30c9\u7d50\u679c\u306b\u5dee\u304c\u3042\u3063\u305f\u3002<br \/>\n\u2461 \u30c6\u30b9\u30c8\u30b5\u30fc\u30d0\u30fc\u3067\u306fPrepros\u304c\u4f7f\u3048\u306a\u3044\u70ba\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u30d3\u30eb\u30c9\u3057\u3066\u30c6\u30b9\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u3057\u3066\u3044\u305f\u3002\uff08\u6642\u9593\u304c\u304b\u304b\u308b\uff09<br \/>\n\u2462 \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30eb\u30fc\u30eb\u306f\u6c7a\u307e\u3063\u3066\u3044\u305f\u304c\u3001Lint\u3092\u5c0e\u5165\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u70ba\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30eb\u30fc\u30eb\u304c\u5b88\u3089\u308c\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002<\/p>\n<h2>\u62b1\u3048\u3066\u3044\u305f\u554f\u984c\u306e\u89e3\u6c7a<\/h2>\n<p>\u554f\u984c\u2460\u3001\u2461\u306ePrepros\u306b\u3064\u3044\u3066\u306f\u30d3\u30eb\u30c9\u65b9\u6cd5\u3092 gulp.js\u3092\u4f7f\u3063\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u30d3\u30eb\u30c9\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u554f\u984c\u2462\u306b\u3064\u3044\u3066\u306fstylelint\u3092\u5c0e\u5165\u3057\u3066\u300ccss\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u4e00\u306e\u4e26\u3073\u9806\u300d\u3084\u300c\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u300d\u306a\u3069\u306e \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30eb\u30fc\u30eb\u3092\u5b88\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u554f\u984c\u306e\u89e3\u6c7a (gulp.js\u306e\u5c0e\u5165)<\/h2>\n<p>gulp.js\u306f\u3055\u307e\u3056\u307e\u306a\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u30bf\u30b9\u30af\u30e9\u30f3\u30ca\u30fc\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u81ea\u52d5\u5316\u3057\u305f\u306e\u306f\u300cscss\u306e\u30d3\u30eb\u30c9\u300d\u3067\u3057\u305f\u3002\u30d3\u30eb\u30c9\u81ea\u4f53\u306fgulp\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u5fc5\u8981\u3060\u3068\u601d\u308f\u308c\u308b\u4e0b\u8a18\uff13\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u00a0\u300cnpx gulp build\u300d\uff1a \u7279\u5b9ascss\u30921\u56de\u306e\u307f\u30d3\u30eb\u30c9<\/li>\n<li>\u00a0\u300cnpx gulp specify_watch\u300d\uff1a \u7279\u5b9ascss\u3092\u76e3\u8996\u3057\u3066\u5909\u66f4\u304c\u3042\u308c\u3070\u30d3\u30eb\u30c9<\/li>\n<li>\u00a0\u300cnpx gulp watch\u300d\uff1a \u5168\u3066\u306escss\u3092\u76e3\u8996\u3057\u3066\u5909\u66f4\u304c\u3042\u308c\u3070\u30d3\u30eb\u30c9<\/li>\n<\/ul>\n<p>\u4f5c\u6210\u3057\u305f gulpfile.js\u306e\u5185\u5bb9\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\r\n const { src, dest, task, watch } = require(\"gulp\");\r\n const sass = require(\"gulp-sass\")(require(\"sass\"));\r\n const util = require(\"gulp-util\");\r\n const postcss = require(\"gulp-postcss\");\r\n const autoprefixer = require(\"autoprefixer\");\r\n const rename = require(\"gulp-rename\");\r\n const fs = require(\"fs\");\r\n const argv = require(\"yargs\").argv;\r\n \r\n \/\/  \u89aa\u30d5\u30a9\u30eb\u30c0\u30fc(x \u968e\u5c64\u4ee5\u5185)\u306estyle.scss\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\r\n const SEARCH_PARENT_STYLE_NUM = 5;\r\n \r\n \/**\r\n  * # build\u306b\u3064\u3044\u3066\r\n  * \u30fb\u300cbuildFullPath\u300d\u3067\u30d3\u30eb\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u300coutputFullPath\u300d\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff081\u56de\u306e\u307f\uff09\r\n  *\r\n  * # \u5b9f\u884c\u65b9\u6cd5\r\n  * \u30fbpublic\u914d\u4e0b\u3067\u5b9f\u884c\r\n  *   npx gulp build --input \"\u30d3\u30eb\u30c9\u30d1\u30b9(scss)\" --output \"\u4fdd\u5b58\u30d1\u30b9(css)\"\r\n  *\/\r\n task(\"build\", function (done) {\r\n   \/\/ \u30d3\u30eb\u30c9\u3059\u308b\u30d1\u30b9\u3092\u8a18\u5165\r\n   let buildFullPath = convertToMacPath(argv.input);\r\n   \/\/ \u4fdd\u5b58\u5148\u3092\u8a18\u5165\r\n   let outputFullPath = convertToMacPath(argv.output);\r\n   if (buildFullPath === undefined || outputFullPath === undefined) {\r\n     util.log(\"\u5165\u529b\u5f62\u5f0f\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\");\r\n     util.log('npx gulp build --input \"\u30d3\u30eb\u30c9\u30d1\u30b9\" --output \"\u4fdd\u5b58\u30d1\u30b9\"');\r\n     done();\r\n     return;\r\n   }\r\n \r\n   \/\/ vscode\u3067\u300c\u76f8\u5bfe\u30d1\u30b9\u3092\u30b3\u30d4\u30fc\u300d\u306e\u5834\u5408public\u30d1\u30b9\u3082\u542b\u307e\u308c\u308b\u305f\u3081\u9664\u5916\r\n   buildFullPath = removePublicPath(buildFullPath);\r\n   outputFullPath = removePublicPath(outputFullPath);\r\n \r\n   if (!isFileExist(\".\/\" + buildFullPath)) {\r\n     \/\/ \u30d1\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306e\u30a8\u30e9\u30fc\r\n     util.log(\"\u30d1\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f : \" + buildFullPath);\r\n     done();\r\n     return;\r\n   }\r\n \r\n   build(buildFullPath, outputFullPath);\r\n   done();\r\n });\r\n \r\n \/**\r\n  * # specify_watch\u306b\u3064\u3044\u3066\r\n  * \u30fb\u300cbuildFullPath\u300d\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u30d3\u30eb\u30c9\u3057\u3066\u300coutputFullPath\u300d\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff08\u30bf\u30b9\u30af\u3092\u505c\u6b62\u3059\u308b\u307e\u3067\uff09\r\n  *\r\n  * # \u5b9f\u884c\u65b9\u6cd5\r\n  * \u30fbpublic\u914d\u4e0b\u3067\u5b9f\u884c\r\n  *   npx gulp specify_watch --input \"\u30d3\u30eb\u30c9\u30d1\u30b9(scss)\" --output \"\u4fdd\u5b58\u30d1\u30b9(css)\"\r\n  *\/\r\n task(\"specify_watch\", function (done) {\r\n   \/\/ \u30d3\u30eb\u30c9\u3059\u308b\u30d1\u30b9\u3092\u8a18\u5165\r\n   let buildFullPath = convertToMacPath(argv.input);\r\n   \/\/ \u4fdd\u5b58\u5148\u3092\u8a18\u5165\r\n   let outputFullPath = convertToMacPath(argv.output);\r\n   if (buildFullPath === undefined || outputFullPath === undefined) {\r\n     util.log(\"\u5165\u529b\u5f62\u5f0f\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\");\r\n     util.log('npx gulp specify_watch --input \"\u30d3\u30eb\u30c9\u30d1\u30b9\" --output \"\u4fdd\u5b58\u30d1\u30b9\"');\r\n     done();\r\n     return;\r\n   }\r\n \r\n   if (!isFileExist(\".\/\" + buildFullPath)) {\r\n     \/\/ \u30d1\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306e\u30a8\u30e9\u30fc\r\n     util.log(\"\u30d1\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f : \" + buildFullPath);\r\n     done();\r\n     return;\r\n   }\r\n   \/\/ vscode\u3067\u300c\u76f8\u5bfe\u30d1\u30b9\u3092\u30b3\u30d4\u30fc\u300d\u306e\u5834\u5408public\u30d1\u30b9\u3082\u542b\u307e\u308c\u308b\u305f\u3081\u9664\u5916\r\n   buildFullPath = removePublicPath(buildFullPath);\r\n   outputFullPath = removePublicPath(outputFullPath);\r\n \r\n   const watcher = watch(buildFullPath);\r\n   watcher.on(\"change\", function () {\r\n     build(buildFullPath, outputFullPath);\r\n   });\r\n });\r\n \r\n \/**\r\n  * # watch\u306b\u3064\u3044\u3066\r\n  * \u30fb\u5168\u3066\u306escss\u306b\u5909\u66f4\u304c\u5408\u3063\u305f\u5834\u5408\u30d3\u30eb\u30c9\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\uff08\u30bf\u30b9\u30af\u3092\u505c\u6b62\u3059\u308b\u307e\u3067\uff09\r\n  *\r\n  * # \u5b9f\u884c\u65b9\u6cd5\r\n  * \u30fbpublic\u914d\u4e0b\u3067\u5b9f\u884c\r\n  *   npx gulp watch\r\n  *\r\n  * # \u30d3\u30eb\u30c9\u30eb\u30fc\u30eb\u30fc\r\n  * \u30fb\u4e00\u756a\u8fd1\u3044\u89aa\u30d5\u30a9\u30eb\u30c0\u30fc(SEARCH_PARENT_STYLE_NUM \u968e\u5c64\u4ee5\u5185)\u306estyle.scss\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\r\n  *   ex) \/scss\/views\/auth\/block\/_login.scss -&gt; \/scss\/views\/auth\/style.scss\r\n  *\r\n  * \u30fb\u30d1\u30b9\u306b\u300cblock\/_\u300d\u304c\u542b\u307e\u308c\u306a\u3044scss\u306e\u30d3\u30eb\u30c9\r\n  *   \u5bfe\u8c61scss\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\r\n  *   ex) \/scss\/blogs.scss\r\n  *\r\n  * \u30fb\u30d3\u30eb\u30c9\u3055\u308c\u305fcss\u306e\u751f\u6210\r\n  * \u3000\u30d3\u30eb\u30c9\u3055\u308c\u305fcss\u30d5\u30a1\u30a4\u30eb\u306f \/css\u30d5\u30a9\u30eb\u30c0\u30fc\u306bscss\u3068\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002\r\n  *   ex) \/scss\/views\/auth\/style.scss -&gt; \/css\/views\/auth\/style.css\r\n  *   ex) \/scss\/blogs.scss -&gt; \/css\/blogs.css\r\n  *\/\r\n task(\"watch\", function () {\r\n   const watcher = watch([\"scss\/**\/*.scss\", \"scss\/*.scss\"]);\r\n   watcher.on(\"change\", function (fullPath) {\r\n     fullPath = convertToMacPath(fullPath);\r\n     const filePath = removeLastSlashString(fullPath);\r\n \r\n     let buildFullPath = null;\r\n     if (fullPath.includes(\"\/block\/_\") || fullPath.includes(\"\/_\")) {\r\n       buildFullPath = getBlockbuildFullPath(filePath);\r\n     } else {\r\n       buildFullPath = fullPath;\r\n     }\r\n     const fileName = getLastSlashString(buildFullPath);\r\n     outputFullPath = (\r\n       removeLastSlashString(buildFullPath) +\r\n       \"\/\" +\r\n       fileName\r\n     ).replaceAll(\"scss\", \"css\");\r\n     build(buildFullPath, outputFullPath);\r\n   });\r\n });\r\n \r\n \/**\r\n  * scss\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\r\n  * @param {String} buildFullPath \u30d3\u30eb\u30c9\u3059\u308bscss\u306e\u30d1\u30b9 + \u30d5\u30a1\u30a4\u30eb\u540d\r\n  * @param {String} outputFullPath css\u683c\u7d0d\u5148\u306e\u30d1\u30b9 + \u30d5\u30a1\u30a4\u30eb\u540d\r\n  *\/\r\n function build(buildFullPath, outputFullPath) {\r\n   const outputName = getLastSlashString(outputFullPath);\r\n   const outputPath = removeLastSlashString(outputFullPath);\r\n \r\n   src(buildFullPath)\r\n     .pipe(\r\n       sass({\r\n         outputStyle: \"expanded\",\r\n       })\r\n     )\r\n     \/\/ \u30d9\u30f3\u30c0\u30fc\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\r\n     .pipe(postcss([autoprefixer([\"last 2 versions\", \"ie &gt;= 11\"])]))\r\n     \/\/ css\u540d\r\n     .pipe(rename(outputName))\r\n     \/\/ css\u4fdd\u5b58\u5148\r\n     .pipe(dest(outputPath))\r\n     .on(\"finish\", () =&gt; {\r\n       util.log(\r\n         \"build: \" +\r\n           buildFullPath +\r\n           \" | \" +\r\n           \"output: \" +\r\n           outputPath +\r\n           \"\/\" +\r\n           outputName\r\n       );\r\n     });\r\n }\r\n \r\n \/**\r\n  * \u6700\u5f8c\u306e\u300c\/\u300d\u4ee5\u964d\u306e\u6587\u5b57\u3092\u8fd4\u3057\u307e\u3059\u3002\r\n  * ex) \/public\/scss\/views\/auth\/style.scss -&gt; style.scss\r\n  * ex) \/public\/scss\/views\/auth -&gt; auth\r\n  * @param {String} filePath \u30d1\u30b9\r\n  * @returns \u6587\u5b57\r\n  *\/\r\n function getLastSlashString(filePath) {\r\n   return filePath.replace(\/^.*[\\\\\\\/]\/, \"\");\r\n }\r\n \r\n \/**\r\n  * \u6700\u5f8c\u306e\u300c\/\u300d\u4ee5\u964d\u306e\u6587\u5b57\u3092\u9664\u5916\u3057\u305f\u6587\u5b57\u3092\u8fd4\u3057\u307e\u3059\u3002\r\n  * ex) \/public\/scss\/views\/auth\/style.scss -&gt; \/public\/scss\/views\/auth\r\n  * ex) \/public\/scss\/views\/auth -&gt; \/public\/scss\/views\r\n  * @param {String} filePath\r\n  * @param {Int} upNum \u524a\u9664\u500b\u6570\r\n  * @returns \u6587\u5b57\r\n  *\/\r\n function removeLastSlashString(filePath, upNum = 1) {\r\n   const lastSlashIndex = filePath.lastIndexOf(\"\/\");\r\n   if (lastSlashIndex === 0) {\r\n     return filePath;\r\n   }\r\n \r\n   for ($i = 0; $i &lt; upNum; $i++) { filePath = filePath.substring(0, lastSlashIndex); } return filePath; } \/** * scss\u304cblock\u306e\u5834\u5408\u306e\u30d3\u30eb\u30c9\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 * ex) \/scss\/views\/auth\/block\/_login.scss -&gt; \/scss\/views\/auth\/style.scss\r\n  * @param {String} filePath\r\n  * @returns \u30d1\u30b9\r\n  *\/\r\n function getBlockbuildFullPath(filePath) {\r\n   let outputPath = null;\r\n \r\n   for (let i = 0; i &lt; SEARCH_PARENT_STYLE_NUM; i++) { filePath = removeLastSlashString(filePath); try { if (isFileExist(\".\/\" + filePath + \"\/\" + \"style.scss\")) { outputPath = filePath + \"\/\" + \"style.scss\"; } } catch (err) { \/\/ pass } if (outputPath !== null) { break; } } return outputPath; } \/** * \u6e21\u3055\u308c\u305f\u30d1\u30b9\u304b\u3089 public\/\u6587\u5b57\u3092\u9664\u5916\u3057\u3066\u8fd4\u3057\u307e\u3059\u3002 * ex) public\/scss\/blogs.scss -&gt; scss\/blogs.scss\r\n  * @param {String} path \u30d1\u30b9\r\n  * @returns \u30d1\u30b9\r\n  *\/\r\n function removePublicPath(path) {\r\n   return path.replace(\"public\/\", \"\");\r\n }\r\n \r\n \/**\r\n  * \u6307\u5b9a\u3055\u308c\u305ffilePath\u304c\u5b58\u5728\u3059\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\r\n  * @param {String} filePath \u30d1\u30b9\r\n  * @returns \u5224\u5b9a\u7d50\u679c\r\n  *\/\r\n function isFileExist(filePath) {\r\n   if (!fs.existsSync(\".\/\" + filePath)) {\r\n     return false;\r\n   }\r\n   return true;\r\n }\r\n \r\n \/**\r\n  * Windows PC\u306e\u5834\u5408\u306f\u30d1\u30b9\u304c\u300c\\\u300d\u3067\u533a\u5207\u3089\u308c\u308b\u3001Mac\u3060\u3068\u300c\/\u300d\u306a\u306e\u3067Mac\u306b\u5408\u308f\u305b\u308b\r\n  * @param {String} path \u30d1\u30b9\r\n  * @returns Mac\u30d1\u30b9\r\n  *\/\r\n function convertToMacPath(path) {\r\n   return path.replaceAll(\"\\\\\\\\\", \"\\\\\").replaceAll(\"\\\\\", \"\/\");\r\n }\r\n    <\/code><\/pre>\n<\/div>\n<h2>\u554f\u984c\u306e\u89e3\u6c7a (stylelint\u306e\u5c0e\u5165)<\/h2>\n<p>\u793e\u5185\u3067\u4f5c\u6210\u3057\u305f\u300c\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30de\u30cb\u30e5\u30a2\u30eb\u300d\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u4f5c\u696d\u5f8c\u306b\u5168\u3066\u624b\u52d5\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u306f\u5927\u5909\u3067\u3057\u305f\u3002\u305d\u3053\u3067lint\u3092\u5c0e\u5165\u3057\u3066\u81ea\u52d5\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30de\u30cb\u30e5\u30a2\u30eb\u901a\u308a\u88dc\u6b63\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 lint\u306f\u300c<span>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5185\u5bb9\u304b\u3089\u554f\u984c\u70b9\u3092\u6307\u6458\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb<\/span>\u300d\u3067\u3001stylelint\u306fcss\u306e\u305f\u3081\u306elint\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30eb\u30fc\u30eb\u304c\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\uff08\u3000\u8a73\u3057\u3044\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/stylelint.io\/user-guide\/rules\/\" class=\"external\" rel=\"nofollow\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u304a\u9858\u3044\u3057\u307e\u3059\u3002\uff09<\/p>\n<ul>\n<li>\u30a4\u30f3\u30c7\u30f3\u30c8 (\u7a7a\u767d2\u3064 or \u7a7a\u767d4\u3064)<\/li>\n<li>\u6587\u5b57\u3092\u56f2\u3080\u30af\u30a9\u30fc\u30c8 (&#8221; or &#8220;&#8221;)<\/li>\n<li>\u8272\u6307\u5b9a\u6642\u306e16\u9032\u6570 (\u5927\u6587\u5b57 or \u5c0f\u6587\u5b57)<\/li>\n<\/ul>\n<p>css\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u4e00\u306e\u4e26\u3073\u9806\u306b\u3064\u3044\u3066\u306f\u300c\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u300d\u3001\u300c\u5916\u5074\u304b\u3089\u5185\u5074\u306b\u300d\u306a\u3069\u8272\u3093\u306a\u4e26\u3073\u9806\u304c\u3042\u308a\u307e\u3059\u304c \u793e\u5185\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u4e00\u756a\u8fd1\u304b\u3063\u305f\u300c<a href=\"https:\/\/github.com\/stormwarning\/stylelint-config-recess-order\" rel=\"nofollow noopener\" target=\"_blank\" class=\"external\">stylelint-config-recess-order<\/a>\u300d\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u306b\u3064\u3044\u3066\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30de\u30cb\u30e5\u30a2\u30eb + \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c1\u30fc\u30e0\u3067\u6253\u3061\u5408\u308f\u305b\u3092\u884c\u3044\u6c7a\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f5c\u6210\u3057\u305f .stylelintrc.js\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\">\u3000\u3000\u3000\u3000<code>module.exports = {\r\n    plugins: ['stylelint-order'],\r\n    extends: [\r\n        \"stylelint-config-standard-scss\",\r\n        \"stylelint-config-recess-order\"\r\n    ],\r\n    rules: {\r\n        \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8\r\n        \"indentation\": 4,\r\n        \/\/ \u9023\u7d9a\u6539\u884c\u5236\u9650\r\n        \"max-empty-lines\": 1,\r\n        \/\/ \u6587\u5b57\u3092\u56f2\u3080\u30af\u30a9\u30fc\u30c8\u306f '' ( single or double)\r\n        \"string-quotes\": \"double\",\r\n        \/\/ \u884c\u672b\u306e\u7a7a\u767d\u524a\u9664\r\n        \"no-eol-whitespace\": true,\r\n        \/\/ \u4e0d\u8981\u306a\u30bb\u30df\u30b3\u30ed\u30f3\u524a\u9664\r\n        \"no-extra-semicolons\": true,\r\n        \/\/ \u30bd\u30fc\u30b9\u306e\u6700\u5f8c\u306b\u6539\u884c\u8ffd\u52a0\r\n        \"no-missing-end-of-source-newline\": true,\r\n        \/\/ \u6700\u521d\u306e\u884c\u306b\u306f\u7a7a\u767d\u7981\u6b62\r\n        \"no-empty-first-line\": true,\r\n        \/\/ 16\u9032\u6570\u3067\u306e\u8272\u6307\u5b9a\u3092\u5927\u6587\u5b57\u306b ( upper or lower )\r\n        \"color-hex-case\": \"lower\",\r\n        \/\/ @xxx \u306e\u5f8c\u306b\u30b9\u30da\u30fc\u30b91\u3064\u5fc5\u9808 (@media, @include\u7b49)\r\n        \"at-rule-name-space-after\": \"always\",\r\n        \/\/ \u30b3\u30ed\u30f3\u306e\u5f8c\u30b9\u30da\u30fc\u30b91\u3064\u5fc5\u9808\r\n        \"declaration-colon-space-after\": \"always\",\r\n        \/\/ \u30bb\u30df\u30b3\u30ed\u30f3\u5f8c\u306b\u306f\u6539\u884c\u5fc5\u9808\r\n        \"declaration-block-semicolon-newline-after\": \"always\",\r\n        \/\/ \u958b\u304d\u62ec\u5f27\u306e\u5f8c\u306b\u6539\u884c\u5fc5\u9808\r\n        \"block-opening-brace-newline-after\": \"always\",\r\n        \/\/ \u9589\u3058\u62ec\u5f27\u306e\u524d\u306b\u6539\u884c\u5fc5\u9808\r\n        \"block-closing-brace-newline-before\": \"always\",\r\n        \/\/ \u958b\u304d\u62ec\u5f27\u306e\u524d\u306b\uff11\u3064\u306e\u30b9\u30da\u30fc\u30b9\r\n        \"block-opening-brace-space-before\": \"always\",\r\n        \/\/ \u95a2\u6570\u306e()\u306e\u5185\u5074\u306b\u30b9\u30da\u30fc\u30b9\u3092\u8a31\u53ef\u3059\u308b\u304b\u5426\u304b\r\n        \"function-parentheses-space-inside\": \"never\",\r\n        \/\/ selector\u306b\u30bf\u30b0\u3082\u4f7f\u7528\u53ef\u80fd\r\n        \"no-descending-specificity\": null,\r\n        \/\/ \u6539\u884c\u8a2d\u5b9a\r\n        \"rule-empty-line-before\": null,\r\n        \"at-rule-empty-line-before\": null,\r\n        \/\/ class\u540dkebab case\u4ee5\u5916\u3082\u4f7f\u7528\u53ef\u80fd\r\n        \"selector-class-pattern\": null,\r\n        \/\/ font-family\u306bdefault font\u306f\u8a18\u8ff0\u3057\u306a\u304f\u3066\u3082\u3044\u3044\r\n        \"font-family-no-missing-generic-family-keyword\": null,\r\n        \/\/ \u4e26\u3073\u9806\r\n        'order\/properties-order': [\r\n            {\r\n                \/\/ Must be first.\r\n                properties: [\r\n                    'all',\r\n                    'content',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Position.\r\n                properties: [\r\n                    'position',\r\n                    'inset',\r\n                    'inset-block',\r\n                    'inset-inline',\r\n                    'top',\r\n                    'right',\r\n                    'bottom',\r\n                    'left',\r\n                    'z-index',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Display mode.\r\n                properties: ['box-sizing', 'display'],\r\n            },\r\n            {\r\n                \/\/ Flexible boxes.\r\n                properties: [\r\n                    'flex',\r\n                    'flex-basis',\r\n                    'flex-direction',\r\n                    'flex-flow',\r\n                    'flex-grow',\r\n                    'flex-shrink',\r\n                    'flex-wrap',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Grid layout.\r\n                properties: [\r\n                    'grid',\r\n                    'grid-area',\r\n                    'grid-template',\r\n                    'grid-template-areas',\r\n                    'grid-template-rows',\r\n                    'grid-template-columns',\r\n                    'grid-row',\r\n                    'grid-row-start',\r\n                    'grid-row-end',\r\n                    'grid-column',\r\n                    'grid-column-start',\r\n                    'grid-column-end',\r\n                    'grid-auto-rows',\r\n                    'grid-auto-columns',\r\n                    'grid-auto-flow',\r\n                    'grid-gap',\r\n                    'grid-row-gap',\r\n                    'grid-column-gap',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Gap.\r\n                properties: ['gap', 'row-gap', 'column-gap'],\r\n            },\r\n            {\r\n                \/\/ Layout alignment.\r\n                properties: [\r\n                    'place-content',\r\n                    'place-items',\r\n                    'place-self',\r\n                    'align-content',\r\n                    'align-items',\r\n                    'align-self',\r\n                    'justify-content',\r\n                    'justify-items',\r\n                    'justify-self',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Order.\r\n                properties: ['order'],\r\n            },\r\n            {\r\n                \/\/ Box model.\r\n                properties: [\r\n                    'float',\r\n                    'width',\r\n                    'min-width',\r\n                    'max-width',\r\n                    'height',\r\n                    'min-height',\r\n                    'max-height',\r\n                    'aspect-ratio',\r\n                    'padding',\r\n                    'padding-block',\r\n                    'padding-block-start',\r\n                    'padding-block-end',\r\n                    'padding-inline',\r\n                    'padding-inline-start',\r\n                    'padding-inline-end',\r\n                    'padding-top',\r\n                    'padding-right',\r\n                    'padding-bottom',\r\n                    'padding-left',\r\n                    'margin',\r\n                    'margin-block',\r\n                    'margin-block-start',\r\n                    'margin-block-end',\r\n                    'margin-inline',\r\n                    'margin-inline-start',\r\n                    'margin-inline-end',\r\n                    'margin-top',\r\n                    'margin-right',\r\n                    'margin-bottom',\r\n                    'margin-left',\r\n                    'overflow',\r\n                    'overflow-x',\r\n                    'overflow-y',\r\n                    '-webkit-overflow-scrolling',\r\n                    '-ms-overflow-x',\r\n                    '-ms-overflow-y',\r\n                    '-ms-overflow-style',\r\n                    'overscroll-behavior',\r\n                    'overscroll-behavior-x',\r\n                    'overscroll-behavior-y',\r\n                    'overscroll-behavior-inline',\r\n                    'overscroll-behavior-block',\r\n                    'clip',\r\n                    'clip-path',\r\n                    'clear',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Typography.\r\n                properties: [\r\n                    'font',\r\n                    'font-family',\r\n                    'font-size',\r\n                    'font-variation-settings',\r\n                    'font-style',\r\n                    'font-weight',\r\n                    'font-feature-settings',\r\n                    'font-optical-sizing',\r\n                    'font-kerning',\r\n                    'font-variant',\r\n                    'font-variant-ligatures',\r\n                    'font-variant-caps',\r\n                    'font-variant-alternates',\r\n                    'font-variant-numeric',\r\n                    'font-variant-east-asian',\r\n                    'font-variant-position',\r\n                    'font-size-adjust',\r\n                    'font-stretch',\r\n                    'font-effect',\r\n                    'font-emphasize',\r\n                    'font-emphasize-position',\r\n                    'font-emphasize-style',\r\n                    '-webkit-font-smoothing',\r\n                    '-moz-osx-font-smoothing',\r\n                    'font-smooth',\r\n                    'hyphens',\r\n                    'line-height',\r\n                    'color',\r\n                    'text-align',\r\n                    'text-align-last',\r\n                    'text-emphasis',\r\n                    'text-emphasis-color',\r\n                    'text-emphasis-style',\r\n                    'text-emphasis-position',\r\n                    'text-decoration',\r\n                    'text-decoration-line',\r\n                    'text-decoration-thickness',\r\n                    'text-decoration-style',\r\n                    'text-decoration-color',\r\n                    'text-underline-position',\r\n                    'text-underline-offset',\r\n                    'text-indent',\r\n                    'text-justify',\r\n                    'text-outline',\r\n                    '-ms-text-overflow',\r\n                    'text-overflow',\r\n                    'text-overflow-ellipsis',\r\n                    'text-overflow-mode',\r\n                    'text-shadow',\r\n                    'text-transform',\r\n                    'text-wrap',\r\n                    '-webkit-text-size-adjust',\r\n                    '-ms-text-size-adjust',\r\n                    'letter-spacing',\r\n                    'word-break',\r\n                    'word-spacing',\r\n                    'word-wrap', \/\/ Legacy name for `overflow-wrap`\r\n                    'overflow-wrap',\r\n                    'tab-size',\r\n                    'white-space',\r\n                    'vertical-align',\r\n\r\n                    'list-style',\r\n                    'list-style-position',\r\n                    'list-style-type',\r\n                    'list-style-image',\r\n\r\n                    'src',\r\n                    'font-display',\r\n                    'unicode-range',\r\n                    'size-adjust',\r\n                    'ascent-override',\r\n                    'descent-override',\r\n                    'line-gap-override',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Accessibility &amp; Interactions.\r\n                properties: [\r\n                    'pointer-events',\r\n                    '-ms-touch-action',\r\n                    'touch-action',\r\n                    'cursor',\r\n                    'visibility',\r\n                    'zoom',\r\n                    'table-layout',\r\n                    'empty-cells',\r\n                    'caption-side',\r\n                    'border-spacing',\r\n                    'border-collapse',\r\n                    'content',\r\n                    'quotes',\r\n                    'counter-reset',\r\n                    'counter-increment',\r\n                    'resize',\r\n                    'user-select',\r\n                    'nav-index',\r\n                    'nav-up',\r\n                    'nav-right',\r\n                    'nav-down',\r\n                    'nav-left',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Background &amp; Borders.\r\n                properties: [\r\n                    'background',\r\n                    'background-color',\r\n                    'background-image',\r\n                    \"-ms-filter:\\\\'progid:DXImageTransform.Microsoft.gradient\",\r\n                    'filter:progid:DXImageTransform.Microsoft.gradient',\r\n                    'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader',\r\n                    'filter',\r\n                    'background-repeat',\r\n                    'background-attachment',\r\n                    'background-position',\r\n                    'background-position-x',\r\n                    'background-position-y',\r\n                    'background-clip',\r\n                    'background-origin',\r\n                    'background-size',\r\n                    'background-blend-mode',\r\n                    'isolation',\r\n                    'border',\r\n                    'border-color',\r\n                    'border-style',\r\n                    'border-width',\r\n                    'border-block',\r\n                    'border-block-start',\r\n                    'border-block-start-color',\r\n                    'border-block-start-style',\r\n                    'border-block-start-width',\r\n                    'border-block-end',\r\n                    'border-block-end-color',\r\n                    'border-block-end-style',\r\n                    'border-block-end-width',\r\n                    'border-inline',\r\n                    'border-inline-start',\r\n                    'border-inline-start-color',\r\n                    'border-inline-start-style',\r\n                    'border-inline-start-width',\r\n                    'border-inline-end',\r\n                    'border-inline-end-color',\r\n                    'border-inline-end-style',\r\n                    'border-inline-end-width',\r\n                    'border-top',\r\n                    'border-top-color',\r\n                    'border-top-style',\r\n                    'border-top-width',\r\n                    'border-right',\r\n                    'border-right-color',\r\n                    'border-right-style',\r\n                    'border-right-width',\r\n                    'border-bottom',\r\n                    'border-bottom-color',\r\n                    'border-bottom-style',\r\n                    'border-bottom-width',\r\n                    'border-left',\r\n                    'border-left-color',\r\n                    'border-left-style',\r\n                    'border-left-width',\r\n                    'border-radius',\r\n                    'border-start-start-radius',\r\n                    'border-start-end-radius',\r\n                    'border-end-start-radius',\r\n                    'border-end-end-radius',\r\n                    'border-top-left-radius',\r\n                    'border-top-right-radius',\r\n                    'border-bottom-right-radius',\r\n                    'border-bottom-left-radius',\r\n                    'border-image',\r\n                    'border-image-source',\r\n                    'border-image-slice',\r\n                    'border-image-width',\r\n                    'border-image-outset',\r\n                    'border-image-repeat',\r\n                    'outline',\r\n                    'outline-width',\r\n                    'outline-style',\r\n                    'outline-color',\r\n                    'outline-offset',\r\n                    'box-shadow',\r\n                    'mix-blend-mode',\r\n                    'filter:progid:DXImageTransform.Microsoft.Alpha(Opacity',\r\n                    \"-ms-filter:\\\\'progid:DXImageTransform.Microsoft.Alpha\",\r\n                    'opacity',\r\n                    '-ms-interpolation-mode',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ SVG Presentation Attributes.\r\n                properties: [\r\n                    'alignment-baseline',\r\n                    'baseline-shift',\r\n                    'dominant-baseline',\r\n                    'text-anchor',\r\n                    'word-spacing',\r\n                    'writing-mode',\r\n\r\n                    'fill',\r\n                    'fill-opacity',\r\n                    'fill-rule',\r\n                    'stroke',\r\n                    'stroke-dasharray',\r\n                    'stroke-dashoffset',\r\n                    'stroke-linecap',\r\n                    'stroke-linejoin',\r\n                    'stroke-miterlimit',\r\n                    'stroke-opacity',\r\n                    'stroke-width',\r\n\r\n                    'color-interpolation',\r\n                    'color-interpolation-filters',\r\n                    'color-profile',\r\n                    'color-rendering',\r\n                    'flood-color',\r\n                    'flood-opacity',\r\n                    'image-rendering',\r\n                    'lighting-color',\r\n                    'marker-start',\r\n                    'marker-mid',\r\n                    'marker-end',\r\n                    'mask',\r\n                    'shape-rendering',\r\n                    'stop-color',\r\n                    'stop-opacity',\r\n                ],\r\n            },\r\n            {\r\n                \/\/ Transitions &amp; Animation.\r\n                properties: [\r\n                    'transition',\r\n                    'transition-delay',\r\n                    'transition-timing-function',\r\n                    'transition-duration',\r\n                    'transition-property',\r\n                    'transform',\r\n                    'transform-origin',\r\n                    'animation',\r\n                    'animation-name',\r\n                    'animation-duration',\r\n                    'animation-play-state',\r\n                    'animation-timing-function',\r\n                    'animation-delay',\r\n                    'animation-iteration-count',\r\n                    'animation-direction',\r\n                ],\r\n            },\r\n        ],\r\n    },\r\n}<\/code><\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>gulp.js\u3092\u4f7f\u3063\u305f\u306e\u306f\u4eca\u56de\u304c\u521d\u3081\u3066\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3059\u3054\u304f\u4fbf\u5229\u3060\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u7279\u306b\u30d3\u30eb\u30c9\u306e\u901f\u5ea6\u3084\u4f5c\u696d\u5f8c\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u3052\u308b\u5fc5\u8981\u3082\u7121\u304f\u306a\u308a\u4f5c\u696d\u52b9\u7387\u304c\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305f\u3001stylelint\u306b\u3088\u308ascss\u306e\u8a18\u8ff0\u304c\u7d71\u4e00\u3055\u308c\u305f\u306e\u3067\u3068\u3066\u3082\u3088\u304b\u3063\u305f\u3067\u3059\u3002<br \/>\n\u4eca\u5f8c\u3082\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c1\u30fc\u30e0\u306e\u696d\u52d9\u6539\u5584\u306b\u52aa\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u300c\u30b8\u30e7\u30f3\u300d\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001\u300cgulp\u300d\u3068\u300cstylelint\u300d\u3092\u4f7f\u3063\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u306e\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u8a71\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c1\u30fc\u30e0\u304c\u62b1\u3048\u3066\u3044\u305f\u554f\u984c \u554f\u984c\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u306f\u4e0b\u8a183\u70b9 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_memberships_contains_paid_content":false,"_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3470","post","type-post","status-publish","format-standard","hentry","category-none"],"aioseo_notices":[],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/posts\/3470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/comments?post=3470"}],"version-history":[{"count":37,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/posts\/3470\/revisions"}],"predecessor-version":[{"id":3545,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/posts\/3470\/revisions\/3545"}],"wp:attachment":[{"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/media?parent=3470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/categories?post=3470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/j-online.ne.jp\/blog\/wp-json\/wp\/v2\/tags?post=3470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}