SamVerschueren / clinton

Project style linter
MIT License
122 stars 9 forks source link

Add `report` method to `context` #42

Closed SamVerschueren closed 7 years ago

SamVerschueren commented 8 years ago

The way ESLint handles reporting of errors is by calling context.report({message: 'foo bar'}) which makes it easier for people who want to write a rule. Currently, clinton expects the errors to be returned (either directly or through a promise).