Skip to content

Instantly share code, notes, and snippets.

View sametcelikbicak's full-sized avatar
👨‍💻

Samet ÇELİKBIÇAK sametcelikbicak

👨‍💻
View GitHub Profile
@sametcelikbicak
sametcelikbicak / string.extensions.ts
Last active September 16, 2021 13:21
String extension for toCamelCase and toPascalCase
declare global {
interface String {
toCamelCase(): string;
toPascalCase(): string;
}
}
String.prototype.toCamelCase = function (): string {
return this.replace(/(?:^\w|[A-Z]|-|\b\w)/g, (character, index) =>
index === 0
@sametcelikbicak
sametcelikbicak / tsconfig.json
Created November 12, 2019 14:33
Angular tsconfig configuration
{
"compileOnSave": false,
"compilerOptions": {
"importHelpers": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
@sametcelikbicak
sametcelikbicak / tslint.json
Created November 12, 2019 14:31
Angular tslint configuration
{
"extends": ["codelyzer", "tslint:recommended", "tslint-config-prettier"],
"rules": {
"component-selector": [true, "element", "app", "kebab-case"],
"banana-in-box": true,
"contextual-life-cycle": true,
"decorator-not-allowed": true,
"pipe-impure": true,
"templates-no-negated-async": true,
"max-inline-declarations": true,