]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
unicorn/prefer-node-protocol
authorXhmikosR <xhmikosr@gmail.com>
Mon, 11 Mar 2024 14:19:46 +0000 (16:19 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 11 Mar 2024 14:34:07 +0000 (16:34 +0200)
.eslintrc.json
site/content/docs/5.3/getting-started/webpack.md

index 2ba9043432fb20cd86f5c985c0bce99d70de51a1..081b456514227f370ef1d06241bf4e4a520696d3 100644 (file)
       "extends": "plugin:markdown/recommended",
       "parserOptions": {
         "sourceType": "module"
-      },
-      "rules": {
-        "unicorn/prefer-node-protocol": "off"
       }
     }
   ]
index 39adaf61a2552eb3fc09a32b4ddc3e27b20ef49c..1065650098f481a38c5f2fc8d4fe822f57120939 100644 (file)
@@ -79,7 +79,7 @@ With dependencies installed and our project folder ready for us to start coding,
    ```js
    'use strict'
 
-   const path = require('path')
+   const path = require('node:path')
    const HtmlWebpackPlugin = require('html-webpack-plugin')
 
    module.exports = {
@@ -154,7 +154,7 @@ Importing Bootstrap into Webpack requires the loaders we installed in the first
    ```js
    'use strict'
 
-   const path = require('path')
+   const path = require('node:path')
    const autoprefixer = require('autoprefixer')
    const HtmlWebpackPlugin = require('html-webpack-plugin')