mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
@typescript-eslint/interface-name-prefix
This commit is contained in:
parent
33eeceec9e
commit
882dfd265c
10
.eslintrc
10
.eslintrc
@ -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"
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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>;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user