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

Commit eabb6eb

Browse files
committed
fix: ignoreTypings wasn't assigned to config
1 parent f39bfbc commit eabb6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function activate() {
6464
workerHelper.changeConfig('globalNodePath', globalNodePath);
6565
}),
6666
atom.config.observe('linter-tslint.ignoreTypings', (ignoreTypings) => {
67-
ignoreTypings = ignoreTypings;
67+
config.ignoreTypings = ignoreTypings;
6868
}),
6969
atom.workspace.observeTextEditors((textEditor) => {
7070
// Marks each TypeScript editor with a CSS class so that
@@ -139,7 +139,7 @@ export function provideLinter() {
139139
scope: 'file',
140140
lintsOnChange: true,
141141
lint: async (textEditor: TextEditor) => {
142-
if (ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
142+
if (config.ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
143143
return [];
144144
}
145145

0 commit comments

Comments
 (0)