Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit a89d719

Browse files
authored
Merge pull request #102 from lucasdf/exclude_zsh
Ignore zsh files
2 parents 4c22cde + 35147b7 commit a89d719

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export default {
4949
lintOnFly: true,
5050
lint: (textEditor) => {
5151
const filePath = textEditor.getPath();
52+
const fileExt = path.extname(filePath);
53+
if (fileExt === '.zsh' || fileExt === '.zsh-theme') {
54+
// shellcheck does not support zsh
55+
return [];
56+
}
5257
const text = textEditor.getText();
5358
const cwd = path.dirname(filePath);
5459
const showAll = this.enableNotice;

0 commit comments

Comments
 (0)