问题描述
我克隆了 webpack,在运行 Q8-F8
后,我遇到了这个问题:
ThisBuild / version := "0.1"
ThisBuild / scalaVersion := "2.13.3"
lazy val scalaTestVersion = "3.1.0"
lazy val akkaVersion = "2.6.10"
lazy val log4jVersion = "2.14.0"
lazy val run = (project in file("."))
.settings(
name := "p0",libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,"ch.qos.logback" % "logback-classic" % "1.2.3","com.typesafe.akka" %% "akka-actor-testkit-typed" % akkaVersion % Test,"org.scalactic" %% "scalactic" % scalaTestVersion,"org.scalatest" %% "scalatest" % scalaTestVersion % "test","com.typesafe" % "config" % "1.4.1","org.apache.logging.log4j" % "log4j-api" % log4jVersion,"org.apache.logging.log4j" % "log4j-core" % log4jVersion
),test in assembly := {},assemblyJarName in assembly := s"p0-$version.jar"
)
.dependsOn(p1,p2)
lazy val p1 = RootProject(file("../p1"))
lazy val p2 = RootProject(file("../p2"))
我试图通过删除 .eslintrc.js 文件中的 $yarn setup
来修复它,如下所示:
$ yarn test
yarn run v1.22.10
$ yarn lint
$ yarn setup
$ node ./setup/setup.js
$ yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-lint && yarn yarn-lint && yarn pretty-lint && yarn spellcheck
$ eslint . --ext '.js' --cache
C:\Users\gamer\Desktop\open\webpack\lib\AbstractMethodError.js
36:0 error There must be no indentation jsdoc/check-indentation
C:\Users\gamer\Desktop\open\webpack\lib\FileSystemInfo.js
660:0 error There must be no indentation jsdoc/check-indentation
C:\Users\gamer\Desktop\open\webpack\lib\util\cLeverMerge.js
22:0 error There must be no indentation jsdoc/check-indentation
✖ 3 problems (3 errors,0 warnings)
error Command Failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
然后它抛出这个错误说:
"jsdoc/check-indentation": "error"
module.exports = {
root: true,plugins: ["prettier","node","jest","jsdoc"],extends: [
"eslint:recommended","plugin:node/recommended","plugin:prettier/recommended"
],env: {
node: true,es6: true
},parserOptions: {
ecmaVersion: 2018
},rules: {
"prettier/prettier": ["error",{"endOfLine":"auto"}],"no-template-curly-in-string": "error","no-caller": "error","no-control-regex": "off",yoda: "error",eqeqeq: "error","eol-last": "error","no-extra-bind": "warn","no-process-exit": "warn","no-use-before-define": "off","no-unused-vars": ["error",{ args: "none",ignoreRestSiblings: true }],"no-loop-func": "warn","node/no-missing-require": ["error",{ allowModules: ["webpack"] }],"jsdoc/check-indentation": "error","jsdoc/check-param-names": "error","jsdoc/check-property-names": "error","jsdoc/check-tag-names": "error","jsdoc/require-hyphen-before-param-description": ["error","never"],"jsdoc/require-param-description": "error","jsdoc/require-param-name": "error","jsdoc/require-param-type": "error","jsdoc/require-param": "error","jsdoc/require-property": "error","jsdoc/require-property-name": "error","jsdoc/require-property-type": "error","jsdoc/require-returns-description": "error","jsdoc/require-returns-type": "error","jsdoc/require-returns": "error",// disallow @ts-ignore directive. Use @ts-expect-error instead
"no-warning-comments": [
"error",{ terms: ["@ts-ignore"],location: "start" }
]
},settings: {
jsdoc: {
mode: "typescript",// supported tags https://github.com/microsoft/TypeScript-wiki/blob/master/JSDoc-support-in-JavaScript.md
tagNamePreference: {
...["implements","const","memberof","readonly","yields"].reduce(
(acc,tag) => {
acc[tag] = {
message: `@${tag} currently not supported in Typescript`
};
return acc;
},{}
),extends: "extends",return: "returns",constructor: "constructor",prop: "property",arg: "param",augments: "extends",description: false,desc: false,inheritdoc: false,class: "constructor"
},overrideReplacesdocs: false
}
},overrides: [
{
files: ["lib/**/*.runtime.js","hot/*.js"],env: {
es6: false,browser: true
},globals: {
Promise: false
},parserOptions: {
ecmaVersion: 5
}
},{
files: ["test/**/*.js"],env: {
"jest/globals": true
},globals: {
nsObj: false,jasmine: false
}
}
]
};
对如何解决这个问题有任何想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)