简体   繁体   English

jsHint - webpack警告错误选项:'强制'。 @ line 0 char 0

[英]jsHint - webpack warning Bad option: 'force'. @ line 0 char 0

I have a problem regarding jsHint with webpack. 我有关于webpack的jsHint的问题。 I get this warning in every file: 我在每个文件中都收到此警告:

WARNING in ./app/app.component.js
jshint results in errors
  Bad option: 'force'. @ line 0 char 0

My jsHint options: 我的jsHint选项:

var options = {
    quotmark: 'single',
    eqeqeq: true,
    strict: false,
    globals: {
        define: false,
        module: false,
        angular: false,
        app: false,
        Chart: false,
    }
};

module.exports = options;

Versions 版本

  • "jshint": "^2.9.2", “jshint”:“^ 2.9.2”,
  • "jshint-loader": "^0.8.3", “jshint-loader”:“^ 0.8.3”,
  • "webpack": "^1.13.0", “webpack”:“^ 1.13.0”,

What does it mean and how can I fix it. 它是什么意思,我该如何解决它。

Remove in your jsHint configuration the force option. 在jsHint配置中删除force选项。 Just setting it to false won't do. 只是将其设置为false将不起作用。 Also check your external and default loaded configuration files for that option. 还要检查该选项的外部和默认加载配置文件。

I had this option enabled too, but it seems not to be valid anymore with newer versions of jsHint. 我也启用了此选项,但对于较新版本的jsHint,它似乎不再有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM