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

const { merge } = require("../utils")
const nodeConfig = require("./+node")

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

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

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

@@ -172,16 +172,101 @@
 /+node%22)
+%0Aconst relaxConfig = %7B%0A    rules: %7B %22no-console%22: %22off%22, %22no-process-env%22: %22off%22 %7D,%0A%7D
 %0A%0Aconst 
@@ -321,16 +321,29 @@
 rides%5B0%5D
+, relaxConfig
 )%0Adelete
@@ -372,32 +372,37 @@
 Config.files = %5B
+%0A    
 %22**/scripts/**/*
@@ -406,16 +406,20 @@
 */*.js%22,
+%0A   
  %22.eslin
@@ -426,16 +426,20 @@
 trc.js%22,
+%0A   
  %22webpac
@@ -450,16 +450,48 @@
 nfig.js%22
+,%0A    %22**/.vuepress/config.js%22,%0A
 %5D%0A%0Aconst
@@ -548,16 +548,29 @@
 rides%5B1%5D
+, relaxConfig
 )%0Adelete

improve _special.js