Hi, ***AWESOME*** Thank you!
Merc. On Thursday, 12 September 2019 07:58:15 UTC+8, [email protected] wrote: > > Indent rule allows an option called “ignoreComments” that’s turned off by > default. You can find more information on the rule’s documentation page: > https://eslint.org/docs/rules/indent#ignorecomments > > > > Thanks, > > > > Ilya Volodin > > > > *From:* [email protected] <javascript:> <[email protected] > <javascript:>> *On Behalf Of *Tony Mobily > *Sent:* Wednesday, September 11, 2019 6:00 PM > *To:* ESLint <[email protected] <javascript:>> > *Subject:* [ESLint] Avoid indent rule for literate programming > > > > Hi, > > > > I am using eslint using: > > > > "extends": ["eslint:recommended", "standard", "plugin:lit/recommended"], > > > > It's working great, with one issue. I am using literate programming. This > means that I have code like this: > > > > // First of all, NativeRefletorMixin is declared as a mixing in function: > > export const NativeReflectorMixin = (base) => { > > return class Base extends base { // eslint-disable-line > > > > // The firstUpdated method is used to perform one-time work after the > element's > > // template has been created. In this case, it will need to: > > // 1) Find the native element (marked with `id="_native"`) > > // 2) Map the values of the boot properties. At this stage, the property > `value` > > // for example might have already been set. > > // 3) Start reflection of attributes and properties > > // 4) Assign boot properties to the element. NOTE: since reflection has > > // started, assigning `this[prop] = bootPropertiesValues[prop]` will > also > > // assign the corresponding property to the `_native` element > > firstUpdated () { > > /* Find the native element */ > > this.native = this.shadowRoot.querySelector('#_native') > > > > Basically, for literate programming I need to have the documentation line > always start at the beginning of the line. > > so, I am obviously getting indent errors > > > > I don't want to blanked-delete all indent warnings, And it's not practical > to disable indent for every documentation segments. > > > > Is there a way to prevent the indent rule if the line starts with // ? > > > > Thanks in advance! > > > > Merc. > > > > -- > You received this message because you are subscribed to the Google Groups > "ESLint" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/eslint/39b2d962-6161-4294-b58b-71e0d006d4e5%40googlegroups.com > > <https://groups.google.com/d/msgid/eslint/39b2d962-6161-4294-b58b-71e0d006d4e5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/eslint/92502155-f933-41bb-8763-2271a386bd98%40googlegroups.com.
