Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ A [Go](https://golang.org/) version can be found in the [golang](golang) folder;

go run main.go

A [Typescript](https://www.typescriptlang.org/) version can be found in the [typescript](typescript) folder; produce the song with:

ts-node song.ts

You can find out more about the London Code Dojo at our [homepage](http://www.meetup.com/London-Code-Dojo/).

Expand Down
54 changes: 54 additions & 0 deletions typescript/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"env": {
"es6": true,
"browser": false,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": [ "@typescript-eslint" ],
"globals": {
"Logger": true
},
"rules": {
"@typescript-eslint/indent": [
"error",
2,
{ "SwitchCase": 1 }
],
"@typescript-eslint/naming-convention": [
"warn",
{ "selector": "variableLike", "format": ["camelCase"] }
],
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true
}
],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"eqeqeq": [ 1, "smart" ],
"no-console": 1,
"no-var": "error",
"prefer-const": "warn",
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/ban-ts-comment": "warn",
"eol-last": [ "error", "always" ],
"space-infix-ops": "error",
"arrow-spacing": "error",
"no-trailing-spaces": "error",
"@typescript-eslint/no-inferrable-types": "off",
"no-undef": "off"
}
}
Loading