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

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

Closed
VincentLanglet opened this issue Jan 22, 2019 · 2 comments
Closed

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

VincentLanglet opened this issue Jan 22, 2019 · 2 comments

Comments

@VincentLanglet
Copy link
Contributor

Bug Report

  • TSLint version: 5.12.1
  • TypeScript version: 3.2.4
  • Running TSLint via: CLI / PhpStorm

TypeScript code being linted

interface I18nInterface {
  foo: () => void;
}

with tslint.json configuration:

{
  "extends": ["tslint:all"],
  "rules": {
    "interface-name": [true, "never-prefix"]
  }
}

Actual behavior

Got error "Interface must not have an I prefix

Expected behavior

No error, I18n should be an allowed word.
Don't know if we have to allow ^I\d+ interfaces or just ^I18n ones.

@adidahiya
Copy link
Contributor

looks like a bug. there's already a special case in the rule for IDB, might as well add one for I18

@adidahiya
Copy link
Contributor

adidahiya commented Apr 16, 2019

Fixed by #4486 #4655

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