Skip to content

Commit

Permalink
Tweak disable rules to play nicely with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed May 13, 2019
1 parent 03c3730 commit c77468e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/compile-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ exports.install = function (resourcesPath, nodeRequire) {
}
})

Error.prototype.getRawStack = function () { // eslint-disable-line no-extend-native
// eslint-disable-next-line no-extend-native
Error.prototype.getRawStack = function () {
// Access this.stack to ensure prepareStackTrace has been run on this error
// because it assigns this.rawStack as a side-effect
this.stack
Expand Down
9 changes: 6 additions & 3 deletions src/text-editor-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,8 @@ class TextEditorComponent {
let textNodesIndex = 0
let lastTextNodeRight = null

columnLoop: // eslint-disable-line no-labels
// eslint-disable-next-line no-labels
columnLoop:
for (let columnsIndex = 0; columnsIndex < columnsToMeasure.length; columnsIndex++) {
const nextColumnToMeasure = columnsToMeasure[columnsIndex]
while (textNodesIndex < textNodes.length) {
Expand Down Expand Up @@ -3775,7 +3776,8 @@ class LinesTileComponent {
if (newScreenLineIndex < oldScreenLineIndexInNewScreenLines && oldScreenLineIndexInNewScreenLines < newScreenLinesEndIndex) {
var newScreenLineComponents = []
while (newScreenLineIndex < oldScreenLineIndexInNewScreenLines) {
var newScreenLineComponent = new LineComponent({ // eslint-disable-line no-redeclare
// eslint-disable-next-line no-redeclare
var newScreenLineComponent = new LineComponent({
screenLine: newScreenLines[newScreenLineIndex],
screenRow: tileStartRow + newScreenLineIndex,
lineDecoration: lineDecorations[newScreenLineIndex],
Expand All @@ -3801,7 +3803,8 @@ class LinesTileComponent {
}
} else {
var oldScreenLineComponent = this.lineComponents[lineComponentIndex]
var newScreenLineComponent = new LineComponent({ // eslint-disable-line no-redeclare
// eslint-disable-next-line no-redeclare
var newScreenLineComponent = new LineComponent({
screenLine: newScreenLines[newScreenLineIndex],
screenRow: tileStartRow + newScreenLineIndex,
lineDecoration: lineDecorations[newScreenLineIndex],
Expand Down

0 comments on commit c77468e

Please sign in to comment.