SamVerschueren / clinton

Project style linter
MIT License
122 stars 9 forks source link

plugin in rules ? #57

Closed Scrum closed 7 years ago

Scrum commented 7 years ago

Why plugins are the rules ? In poorer time, I see a trend { ...options, plugins: {...}, extends: {}, preset: {...}, rules: {...}}

SamVerschueren commented 7 years ago

Can you elaborate? Don't think I follow entirely :).

Scrum commented 7 years ago

Example in readme:

"clinton": { "rules": { "file-exists": ["error", "index.js"] } }

Why not ?

"clinton": { "plugins": { "file-exists": ["error", "index.js"] } }
Scrum commented 7 years ago

And I'd do the plugins array

SamVerschueren commented 7 years ago

Oh you're right, the readme is incorrect. It should be plugins instead of rules. Fixed it. Thanks for letting me know!