Skip to content

Commit

Permalink
Remove unnecessary bypass rules
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Oct 28, 2022
1 parent 005eba0 commit aadf69d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,11 @@
"ignorePatterns": ["**/*.d.ts", "**/*.js", "website/**/*"],
"rules": {
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": "off",
"import/no-cycle": "off",
"no-restricted-exports": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-param-reassign": "off",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"max-classes-per-file": "off",
"prettier/prettier": "error"
}
}
2 changes: 2 additions & 0 deletions blots/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class Block extends BlockBlot {
}
this.cache = {};
}
// TODO: Fix this next time the file is edited.
// eslint-disable-next-line @typescript-eslint/no-this-alias
let block: Blot | this = this;
lines.reduce((lineIndex, line) => {
block = block.split(lineIndex, true);
Expand Down
2 changes: 2 additions & 0 deletions blots/cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class Cursor extends EmbedBlot {
super.format(name, value);
return;
}
// TODO: Fix this next time the file is edited.
// eslint-disable-next-line @typescript-eslint/no-this-alias
let target: Parent | this = this;
let index = 0;
while (target != null && target.statics.scope !== Scope.BLOCK_BLOT) {
Expand Down

0 comments on commit aadf69d

Please sign in to comment.