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

Commit

Permalink
fix: ignoreTypings wasn't assigned to config
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent f39bfbc commit eabb6eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function activate() {
workerHelper.changeConfig('globalNodePath', globalNodePath);
}),
atom.config.observe('linter-tslint.ignoreTypings', (ignoreTypings) => {
ignoreTypings = ignoreTypings;
config.ignoreTypings = ignoreTypings;
}),
atom.workspace.observeTextEditors((textEditor) => {
// Marks each TypeScript editor with a CSS class so that
Expand Down Expand Up @@ -139,7 +139,7 @@ export function provideLinter() {
scope: 'file',
lintsOnChange: true,
lint: async (textEditor: TextEditor) => {
if (ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
if (config.ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
return [];
}

Expand Down

0 comments on commit eabb6eb

Please sign in to comment.