Procházet zdrojové kódy

Turns off prefer-nullish-coalescing lint rule

main
Eric Amodio před 4 roky
rodič
revize
9aa755cf25
4 změnil soubory, kde provedl 1 přidání a 7 odebrání
  1. +1
    -1
      .eslintrc.json
  2. +0
    -1
      src/system/searchTree.ts
  3. +0
    -4
      src/views/nodes/compareBranchNode.ts
  4. +0
    -1
      webpack.config.js

+ 1
- 1
.eslintrc.json Zobrazit soubor

@ -231,7 +231,7 @@
} }
], ],
"@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "warn", "@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/restrict-template-expressions": [ "@typescript-eslint/restrict-template-expressions": [
"error", "error",

+ 0
- 1
src/system/searchTree.ts Zobrazit soubor

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
/* eslint-disable @typescript-eslint/strict-boolean-expressions */ /* eslint-disable @typescript-eslint/strict-boolean-expressions */
'use strict'; 'use strict';
import { count, map, some } from './iterable'; import { count, map, some } from './iterable';

+ 0
- 4
src/views/nodes/compareBranchNode.ts Zobrazit soubor

@ -40,7 +40,6 @@ export class CompareBranchNode extends ViewNode
get ahead(): { readonly ref1: string; readonly ref2: string } { get ahead(): { readonly ref1: string; readonly ref2: string } {
return { return {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
ref1: this._compareWith?.ref || 'HEAD', ref1: this._compareWith?.ref || 'HEAD',
ref2: this.branch.ref, ref2: this.branch.ref,
}; };
@ -49,7 +48,6 @@ export class CompareBranchNode extends ViewNode
get behind(): { readonly ref1: string; readonly ref2: string } { get behind(): { readonly ref1: string; readonly ref2: string } {
return { return {
ref1: this.branch.ref, ref1: this.branch.ref,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
ref2: this._compareWith?.ref || 'HEAD', ref2: this._compareWith?.ref || 'HEAD',
}; };
} }
@ -241,7 +239,6 @@ export class CompareBranchNode extends ViewNode
private async getAheadFilesQuery(): Promise<FilesQueryResults> { private async getAheadFilesQuery(): Promise<FilesQueryResults> {
let files = await Container.git.getDiffStatus( let files = await Container.git.getDiffStatus(
this.repoPath, this.repoPath,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
GitRevision.createRange(this._compareWith?.ref || 'HEAD', this.branch.ref || 'HEAD', '...'), GitRevision.createRange(this._compareWith?.ref || 'HEAD', this.branch.ref || 'HEAD', '...'),
); );
@ -272,7 +269,6 @@ export class CompareBranchNode extends ViewNode
private async getBehindFilesQuery(): Promise<FilesQueryResults> { private async getBehindFilesQuery(): Promise<FilesQueryResults> {
const files = await Container.git.getDiffStatus( const files = await Container.git.getDiffStatus(
this.uri.repoPath!, this.uri.repoPath!,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
GitRevision.createRange(this.branch.ref, this._compareWith?.ref || 'HEAD', '...'), GitRevision.createRange(this.branch.ref, this._compareWith?.ref || 'HEAD', '...'),
); );

+ 0
- 1
webpack.config.js Zobrazit soubor

@ -2,7 +2,6 @@
/** @typedef {import('webpack').Configuration} WebpackConfig **/ /** @typedef {import('webpack').Configuration} WebpackConfig **/
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
/* eslint-disable @typescript-eslint/strict-boolean-expressions */ /* eslint-disable @typescript-eslint/strict-boolean-expressions */
/* eslint-disable @typescript-eslint/prefer-optional-chain */ /* eslint-disable @typescript-eslint/prefer-optional-chain */
'use strict'; 'use strict';

Načítá se…
Zrušit
Uložit