2016-09-08 21 views
5

मुझे test फ़ोल्डर फॉर्म लिनटिंग को वीकोड में tslint के साथ बाहर करना पसंद है। इसलिए मैंने अपनी tslint.json कॉन्फ़िगरेशन फ़ाइल में बहिष्कृत किया है। दुर्भाग्य से बहिष्कार बयान काम नहीं कर रहा है। क्या कोई भी बाहर निकलने के तरीके को जानता है?tslint से फ़ोल्डर को बाहर कैसे निकालें?

{ 
    "exclude": "tests/**/*.ts", 
    "rulesDirectory": ["node_modules/tslint-microsoft-contrib"], 
    "rules": { 
     "export-name": true, 
     ... 
    } 
} 

उत्तर

3

ऐसा लगता है कि यह एक खुला सुविधा अनुरोध है। में अन्य जानकारी यहां पाया जा सकता: https://github.com/palantir/tslint/issues/73

अद्यतन:

// Configure glob patterns of file paths to exclude from linting 
"tslint.exclude": "**/PATH_eg_TESTS/**/*.ts" 
: जो/संपादक के रूप में tslint साथ vscode का उपयोग आप vscode config के लिए निम्न में जोड़ सकते हैं lintinig के लिए
संबंधित मुद्दे