You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
sindresorhus
changed the title
Replace textual guidelines with eslint rules where possible
Replace textual guidelines with ESLint rules where possible
Mar 18, 2019
This has always been the goal. I just needed something immediate as automation will take time.
This is mostly blocked by xojs/xo#373. The intention is for XO to lint ambient files (index.d.ts) by default.
I'm also holding out for typescript-eslint to be more mature. I don't want to have to disable rules in hundreds of modules because of typescript-eslint bugs. It's also missing a lot of needed rules.
If anyone wants to help out. Find things in the style guide that can be automated, check if typescript-eslint has a rule for it, if yes, comment it here, if not, open a rule request on typescript-eslint and comment the issue link here.
I noticed Airbnb actually still has the verbal styleguidein addition to the shareable config. Not something I'd personally read, but perhaps some people do.
Instead of a 590-words styleguide it could be shorter and the rest can be enforced by eslint, where automation is possible, like:
I
;Options
, notIOptions
: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/interface-name-prefix.md{foo}
, not{ foo }
.The text was updated successfully, but these errors were encountered: