Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

[Interface-name] Always prefix return error for II18nConfig interface #4665

Closed
artberri opened this issue Apr 16, 2019 · 1 comment
Closed

Comments

@artberri
Copy link

Bug Report

  • TSLint version: 5.15.0
  • TypeScript version: 3.3.3333
  • Running TSLint via: gulp-tslint

TypeScript code being linted

export interface II18nConfig {
    defaultLang: string;
    storageKey: string;
    languages: string[];
    dataStorageKey: string;
    dataLanguages: string[];
}

with tslint.json configuration:

{
    "rules": {
        "interface-name": [
            true,
            "always-prefix"
        ]
    }
}

Actual behavior

Throws error: interface-name interface name must start with a capitalized I

Expected behavior

No error, II18n... should be an allowed word.

Related issue

[Interface-name] Never prefix return error for I18nInterface #4476

@adidahiya
Copy link
Contributor

Duplicate of #4476

@adidahiya adidahiya marked this as a duplicate of #4476 Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants