This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Implement feature request #189 (Option to use global tslint instance) #196
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,36 +16,56 @@ | |
"atom": ">=1.14.0 <2.0.0" | ||
}, | ||
"configSchema": { | ||
"enableSemanticRules": { | ||
"type": "boolean", | ||
"title": "Enable semantic rules", | ||
"description": "Allow passing a TypeScript program object to the linter. May negatively affect performance. See this page for details: https://palantir.github.io/tslint/usage/type-checking/", | ||
"default": false, | ||
"order": 1 | ||
}, | ||
"rulesDirectory": { | ||
"type": "string", | ||
"title": "Custom rules directory (absolute path)", | ||
"default": "" | ||
"default": "", | ||
"order": 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're going to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hah, I don't know why I didn't just do that to begin with. I guess I was a bit shy contributing to a new repo and trying to keep my "lines modified" count down. 😝 It's fixed! |
||
}, | ||
"useLocalTslint": { | ||
"type": "boolean", | ||
"title": "Try using the local tslint package (if exist)", | ||
"default": true | ||
}, | ||
"enableSemanticRules": { | ||
"fixOnSave": { | ||
"title": "Fix errors on save", | ||
"description": "Have tslint attempt to fix some errors automatically when saving the file.", | ||
"type": "boolean", | ||
"title": "Enable semantic rules", | ||
"description": "Allow passing a TypeScript program object to the linter. May negatively affect performance. See this page for details: https://palantir.github.io/tslint/usage/type-checking/", | ||
"default": false | ||
"default": false, | ||
"order": 3 | ||
}, | ||
"ignoreTypings": { | ||
"type": "boolean", | ||
"title": "Ignore typings files (.d.ts)", | ||
"default": false | ||
"default": false, | ||
"order": 4 | ||
}, | ||
"fixOnSave": { | ||
"title": "Fix errors on save", | ||
"description": "Have tslint attempt to fix some errors automatically when saving the file.", | ||
"useLocalTslint": { | ||
"type": "boolean", | ||
"title": "Try to use the project's local tslint package, if it exists", | ||
"default": true, | ||
"order": 5 | ||
}, | ||
"useGlobalTslint": { | ||
"type": "boolean", | ||
"default": false | ||
"title": "Use the global tslint install", | ||
"description": "If enabled, the global tslint installation will be used as a fallback, instead of the version packaged with linter-tslint.", | ||
"default": false, | ||
"order": 6 | ||
}, | ||
"globalNodePath": { | ||
"type": "string", | ||
"title": "Global node installation path", | ||
"description": "The location of your global npm install. (Will default to `npm get prefix`.)", | ||
"default": "", | ||
"order": 7 | ||
} | ||
}, | ||
"dependencies": { | ||
"atom-package-deps": "^4.3.1", | ||
"consistent-path": "^2.0.1", | ||
"crypto-random-string": "^1.0.0", | ||
"escape-html": "^1.0.3", | ||
"loophole": "^1.1.0", | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛
baseDir
please 😉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure how you wanted me to deal with that, since it previously was called
basedir
, apparently for the sake of brevity on line 71. I guess changing that line to{ basedir: baseDir }
wouldn't be the end of the world.