Skip to content

Commit

Permalink
disable local/restrict-this-access for the whole file
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Jan 18, 2022
1 parent 21f7876 commit 1fc0c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/preact/amp-base-element.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable local/restrict-this-access */

import {ActionTrust_Enum} from '#core/constants/action-constants';

import {PreactBaseElement} from './base-element';
Expand All @@ -15,9 +17,7 @@ export class AmpPreactBaseElement extends PreactBaseElement {
* @override
*/
mutatedAttributesCallback() {
// eslint-disable-next-line local/restrict-this-access
if (this.container_) {
// eslint-disable-next-line local/restrict-this-access
this.scheduleRender_();
}
}
Expand All @@ -31,7 +31,7 @@ export class AmpPreactBaseElement extends PreactBaseElement {
return super.attemptChangeHeight(newHeight).catch((e) => {
// It's okay to disable this lint rule since we check that the restricted
// method exists.
// eslint-disable-next-line local/restrict-this-access

if (this.getOverflowElement && !this.getOverflowElement()) {
console./* OK */ warn(
'[overflow] element not found. Provide one to enable resizing to full contents.',
Expand Down

0 comments on commit 1fc0c59

Please sign in to comment.