-
-
Notifications
You must be signed in to change notification settings - Fork 211
Add new rule template-indent
#1943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
45b1e2a to
81fd18f
Compare
81fd18f to
95aac10
Compare
45a2363 to
92bf323
Compare
d042605 to
f69523b
Compare
f69523b to
c0cdaa7
Compare
lib/rules/template-indent.js
Outdated
| type: 'layout', | ||
| docs: { | ||
| description: 'enforce consistent indentation', | ||
| extendsBaseRule: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not export non-standard properties. I have not seen extendsBaseRule before.
lib/rules/template-indent.js
Outdated
| meta: { | ||
| type: 'layout', | ||
| docs: { | ||
| description: 'enforce consistent indentation', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get a better description. Indentation for what?
c0cdaa7 to
0170dc8
Compare
0170dc8 to
e63a1cb
Compare
Co-authored-by: Bryan Mishkin <[email protected]>
docs/rules/template-indent.md
Outdated
| ## Rule Details | ||
|
|
||
| Enforce consistent indentation for fcct templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you combine this Rule Details section with the summary on lines 7-9? And use complete sentences and put the rule details/summary above the config section.
uses the base eslint indent rule to make indents for templates.
similar implementation like typescript/indent https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/rules/indent.ts
depends on #1942