i thought about something like this:
```python
# i think this map should go to the upper in structure or should be defined in "constants"-like module.
linters_exts = {
'.js': ['gjslint'],
'.py':['pep8', 'pyflakes']
}
ext = os.path.splitext(path)[1].lower()
return linter in linters_exts.get(ext, [])
```