msiebuhr / slint

Lint-tool for web projects
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Some way of setting default linter parameters #6

Open msiebuhr opened 11 years ago

msiebuhr commented 11 years ago

The linters should have some way of stating the obvious about how they're used, such as filename extensions, basic configuration &c.

Possibly, we could mirror the options in slint.json, where a missing field in slint.json would fall back to the one provided by the linter itself.

msiebuhr commented 11 years ago

Perhaps a defaultFiles, which will usually be something in the order of *.json or *.js.

But what about linters that check many different filetypes (i.e. trailing-spaces). Should those not check anything by default or learn to ignore binary-looking stuff?