/**
 * @author Toru Nagashima
 * See LICENSE file in root directory for full license.
 */
"use strict"

const { merge } = require("../utils")
const nodeConfig = require("./+node")
const relaxConfig = {
    rules: { "no-console": "off", "no-process-env": "off" },
}

const jsConfig = merge({}, nodeConfig, nodeConfig.overrides[0], relaxConfig)
delete jsConfig.overrides
jsConfig.files = [
    "**/scripts/**/*.js",
    ".eslintrc.js",
    "webpack.config.js",
    "**/.vuepress/config.js",
]

const mjsConfig = merge({}, nodeConfig, nodeConfig.overrides[1], relaxConfig)
delete mjsConfig.overrides
mjsConfig.files = ["**/scripts/**/*.mjs", "rollup.config.js"]

module.exports = {
    overrides: [jsConfig, mjsConfig],
}

@@ -482,16 +482,43 @@
 ig.js%22,%0A
+    %22*.webpack.config.js%22,%0A
 %5D%0A%0Aconst
@@ -636,16 +636,21 @@
 iles = %5B
+%0A    
 %22**/scri
@@ -663,16 +663,20 @@
 /*.mjs%22,
+%0A   
  %22rollup
@@ -686,16 +686,44 @@
 nfig.js%22
+,%0A    %22*.rollup.config.js%22,%0A
 %5D%0A%0Amodul

enable node in the variation of webpack/rollup configs