Skip to content

Instantly share code, notes, and snippets.

@twhitbeck
Last active June 7, 2019 14:06
Show Gist options
  • Save twhitbeck/0235fc09ee7076a4f60a5c42107e73d2 to your computer and use it in GitHub Desktop.
Save twhitbeck/0235fc09ee7076a4f60a5c42107e73d2 to your computer and use it in GitHub Desktop.
no-dupe-class-members issue
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/indent": ["error", 2],
"no-dupe-class-members": "off"
}
}
{
"scripts": {
"lint": "eslint \"**/*.ts\""
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"eslint": "^5.16.0",
"typescript": "^3.5.1"
}
}
class Foo {
public bar(baz: string);
public bar(qux: number);
public bar(val: any) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment