我正在使用SAP eslint配置,并且有所有的配置文件,但我仍然收到以下错误:

有什么建议吗?
附言:我正在使用WebStorm
配置:
{
"env": {
"browser": true
},
"globals": {
"sap": true,
"jQuery": true
},
"rules": {
"sap-no-localhost": 2,
"sap-no-ui5base-prop": 2,
"sap-usage-basemastercontroller": 2,
"sap-no-dom-access": 2,
"sap-no-global-selection": 2,
"sap-timeout-usage": 2,
"sap-no-history-manipulation": 2,
"sap-no-ui5-prop-warning": 2,
"sap-no-proprietary-browser-api": 2,
"no-use-before-define": 2,
"no-redeclare": 2,
"no-extra-boolean-cast": 2,
"no-shadow": 2,
"no-reserved-keys": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-extend-native": 2,
"no-eq-null": 2,
"eqeqeq": 2,
"no-underscore-dangle": 0,
"new-cap": 0,
"quotes": 0,
"camelcase": 0,
"eol-last": 0
}
}发布于 2017-02-04 11:59:42
根据您提供的配置,SAP规则使用过时的custom-rules方法,而不是插件。您必须下载所有的SAP规则,将它们放到目录中,并配置WebStorm以使用--rulesdir开关运行ESLint。
https://stackoverflow.com/questions/41996029
复制相似问题