chore: no `camelcase` for tests

This commit is contained in:
alexander-akait 2025-04-22 14:12:34 +03:00
parent 9e6984056b
commit ab50a631f3
6 changed files with 10 additions and 3 deletions

View File

@ -415,7 +415,6 @@ export default defineConfig([
"jest/expect-expect": "off",
"jest/no-conditional-expect": "off",
"no-console": "off",
camelcase: "off",
"jsdoc/require-jsdoc": "off",
"n/no-unsupported-features/es-syntax": [
"error",

View File

@ -1,7 +1,7 @@
"use strict";
const path = require("path");
const child_process = require("child_process");
const childProcess = require("child_process");
const fs = require("fs");
const rimraf = require("rimraf");
@ -14,7 +14,7 @@ const exec = (n, options = {}) =>
const webpack = require("../");
const coverageEnabled = webpack.toString().includes("++");
const p = child_process.execFile(
const p = childProcess.execFile(
process.execPath,
[
...(coverageEnabled

View File

@ -43,6 +43,7 @@ module.exports = createTestCases({
"./assert": [...base, "definiteEqual"]
}
},
// eslint-disable-next-line camelcase
ExportCls1_2: {
usedExports: ["ExportCls1", "ExportCls2"],
expect: {

View File

@ -8,11 +8,15 @@ module.exports = {
"bbb.ccc": "./bbbccc",
dddeeefff: ["./ddd", "eee", "3-f"],
aa1: ["./a", "c", "cube"],
// eslint-disable-next-line camelcase
es2015_aUsed: ["./harmony2", "aUsed"],
"process.env.NODE_ENV": "./env",
es2015: "./harmony",
// eslint-disable-next-line camelcase
es2015_name: ["./harmony", "default"],
// eslint-disable-next-line camelcase
es2015_alias: ["./harmony", "alias"],
// eslint-disable-next-line camelcase
es2015_year: ["./harmony", "year"],
"this.aaa": "./aaa",
esm: "./esm.js"

View File

@ -8,6 +8,7 @@ module.exports = {
new SharePlugin({
shared: {
lib: {},
// eslint-disable-next-line camelcase
transitive_lib: {}
}
})

View File

@ -1,6 +1,8 @@
module.exports = {
entry: {
// eslint-disable-next-line camelcase
tst_examples_uiform: "./tst_examples_uiform",
// eslint-disable-next-line camelcase
tst_examples_uitable: "./tst_examples_uitable",
another: "./another"
},