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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/eslint/39b2d962-6161-4294-b58b-71e0d006d4e5%40googlegroups.com.