mirror of https://github.com/webpack/webpack.git
chore: no `camelcase` for tests
This commit is contained in:
parent
9e6984056b
commit
ab50a631f3
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -43,6 +43,7 @@ module.exports = createTestCases({
|
|||
"./assert": [...base, "definiteEqual"]
|
||||
}
|
||||
},
|
||||
// eslint-disable-next-line camelcase
|
||||
ExportCls1_2: {
|
||||
usedExports: ["ExportCls1", "ExportCls2"],
|
||||
expect: {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -8,6 +8,7 @@ module.exports = {
|
|||
new SharePlugin({
|
||||
shared: {
|
||||
lib: {},
|
||||
// eslint-disable-next-line camelcase
|
||||
transitive_lib: {}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue