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
Want to have the ability to enforce decorator usage for methods and parameters only when the class they are associated with extends a specific super class
For example, only enforce the use of the assert decorator if the associated class extends Mixins
// This one fails the eslint rule
class SomeClass extends Mixins {
private somePrivateMethod(
someParameter: number
): number {
return someParameter;
}
someMethod(
someParameter: number
): number {
return someParameter;
}
async someAsyncMethod(
someParameter: number
): number {
return someParameter;
}
}
// This one doesnt fail the eslint rule
class SomeClass extends Vue {
private somePrivateMethod(
someParameter: number
): number {
return someParameter;
}
someMethod(
someParameter: number
): number {
return someParameter;
}
async someAsyncMethod(
someParameter: number
): number {
return someParameter;
}
}
The text was updated successfully, but these errors were encountered:
Want to have the ability to enforce decorator usage for methods and parameters only when the class they are associated with extends a specific super class
For example, only enforce the use of the
assert
decorator if the associated class extendsMixins
The text was updated successfully, but these errors were encountered: