Skip to content

Commit

Permalink
Add tsdx to list of plugins to detect
Browse files Browse the repository at this point in the history
This will enable SublimeLinter eslint  on projects utilizing tsdx, a tool wrapper that includes eslint. Unfortunately, tsdx only exposes a human friendly cli to access eslint, however, eslint gets installed alongside any tsdx install, so its safe to use it directly without the tsdx wrapper.

The only thing users would have to do to make this work would be to ensure the .eslintrc file is created, which tsdx can generate using `yarn lint --write-file`.

I'm not a huge user of the tool, but from my local testing, this gets tsdx eslint working with sublime.

Thanks for the fantastic plugins!
  • Loading branch information
bcomnes committed Aug 21, 2021
1 parent ec86921 commit fa7306c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'eslint-plugin-svelte3': 'text.html',
'eslint-plugin-vue': 'text.html.vue',
'@typescript-eslint/parser': 'source.ts, source.tsx',
'tsdx': 'source.ts, source.tsx',
}
OPTIMISTIC_SELECTOR = ', '.join({STANDARD_SELECTOR} | set(PLUGINS.values()))

Expand Down

0 comments on commit fa7306c

Please sign in to comment.