@typescript-eslint/interface-name-prefix

This commit is contained in:
Alexander T 2019-06-20 10:12:18 +03:00
parent 33eeceec9e
commit 882dfd265c
4 changed files with 12 additions and 5 deletions

View File

@ -25,7 +25,7 @@
"@typescript-eslint/import/order": "off",
"indent": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/interface-name-prefix": "error",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-angle-bracket-type-assertion": "off",
"@typescript-eslint/no-empty-interface": "off",
@ -123,5 +123,11 @@
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"valid-typeof": "off"
}
},
"overrides": [{
"files": ["src/lib/*.d.ts"],
"rules": {
"@typescript-eslint/interface-name-prefix": "off"
}
}]
}

View File

@ -439,7 +439,7 @@ namespace Utils {
}
namespace Harness {
// tslint:disable-next-line:interface-name
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
export interface IO {
newLine(): string;
getCurrentDirectory(): string;

View File

@ -4,7 +4,8 @@ namespace ts.server {
projectRootPath: Path;
}
// tslint:disable-next-line interface-name (for backwards-compatibility)
// for backwards-compatibility
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
export interface ITypingsInstaller {
isKnownTypesPackageName(name: string): boolean;
installPackage(options: InstallPackageOptionsWithProject): Promise<ApplyCodeActionCommandResult>;

View File

@ -102,7 +102,7 @@ namespace ts {
* snapshot is observably immutable. i.e. the same calls with the same parameters will return
* the same values.
*/
// tslint:disable-next-line interface-name
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
export interface IScriptSnapshot {
/** Gets a portion of the script snapshot specified by [start, end). */
getText(start: number, end: number): string;