This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# moved to https://github.com/przemyslawjanpietrzak/ubuntu-onStart/blob/master/main.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"enabled": true, | |
"updateUrl": "https://userstyles.org/styles/chrome/37035.json?ik-syntax-theme=ik-Twilight&ik-syntax-codemirror=ik-cm-twilight&ik-syntax-jupyter=ik-jp-twilight&ik-bg-choice=ik-yes&ik-bg-options=ik-Tiled&ik-bg-attachment=ik-Scroll&ik-tab-size=ik-0&ik-code-wrap=ik-nowrap&ik-base-color=%234183C4&ik-font-choice=Menlo&ik-bg-url=ik-default", | |
"md5Url": "https://update.userstyles.org/37035.md5", | |
"url": "http://userstyles.org/styles/37035", | |
"originalMd5": "e0b1ec80c4391daac7e3c42041092bf3", | |
"installDate": 1535963488323, | |
"sections": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# max warning numbers in eslint | |
if [ $(npm run lint | grep WARNING | wc -l) -gt 331 ]; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class AbstractClass { | |
method() { | |
return 42 | |
} | |
} | |
class Class extends AbstractClass { | |
method1() { | |
return 42; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fn = (arg: number, cb: (string) => string) => { | |
return 42 | |
} | |
fn(42, a => a++); // Argument of type '(a: any) => number' is not assignable to parameter of type '(string: any) => string'. Type 'number' is not assignable to type 'string'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fn = (arg: { key: string } & { key1: number }) => 42; | |
fn({ key: '42' }); // ERROR | |
fn({ key1: 42 }); // ERROR | |
fn({ key: '42', key1: 42 }); // GOOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fn = () => { | |
if (true) { | |
return; // ERROR: Not all code paths return a value. | |
} | |
if (false) { | |
return 42; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WRONG | |
const fn = (arg) => arg; | |
// GOOD | |
const fn1 = (arg: any) => arg; | |
// GOOD | |
const fn2 = (arg: number) => arg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WRONG | |
obj['key'] | |
// GOOD | |
obj.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WRONG | |
// export class ROUTE { | |
// public static readonly LOGIN = '/login'; | |
// public static readonly RECRUITMENTS = '/recruitments'; | |
// public static readonly RECRUITMENT_EDIT = '/recruitments/:id'; | |
// } |