Tslint排除无法正常工作,React-Dropzone

时间:2020-08-17 12:45:03

标签: json config tslint react-dropzone

我具有以下结构:

components
  my_component
    tslint.json
tslint.json
  

root tslint.json

{
  "extends": ["...some/tslint.json"],
  "linterOptions": {
    "exclude": [
      "components/**/node_modules/**/",
      "components/**/node_modules/*",
      "components/*/node_modules/",
      "node_modules"
    ]
  }
}

组件tslint.json

{
  "extends": ["../../tslint.json"],
  "linterOptions": {
    "exclude": [
      "node_modules/**"
    ]
  }
}

但是当我运行"lint": "tslint \"components/**/**.ts*\""时 从根本上,我得到了这些错误:

ERROR: components/my_component/node_modules/react-dropzone/typings/tests/accept.tsx[78, 22]: ' should be "
ERROR: components/my_component/node_modules/react-dropzone/typings/tests/accept.tsx[78, 36]: ' should be "
...

即使没有本地tslint.json,它也应该可以工作 但是我试图进行覆盖,即使这样做也没有帮助

如何使其工作?

0 个答案:

没有答案