diff --git a/.drone.yml b/.drone.yml index 0dbd19c..b03a7a0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,4 @@ steps: commands: - npm config set registry https://r.ctdn.net - npm install - - npm run build \ No newline at end of file + - npm run build diff --git a/.eslintrc.js b/.eslintrc.js index d831ed8..33278c0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -153,4 +153,4 @@ module.exports = { "use-isnan": "error", "valid-typeof": "off", }, -} \ No newline at end of file +} diff --git a/README.md b/README.md index 97a5d9e..a8991a6 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # TS Project (Template for TypeScript) -- TypeScript -- TS Node Dev -- Husky -- Prettier -- ESLint +- TypeScript +- TS Node Dev +- Husky +- Prettier +- ESLint ### Contributors -- Sambo Chea \ No newline at end of file + +- Sambo Chea diff --git a/src/date/index.ts b/src/date/index.ts index 43b5d5b..5199ce6 100644 --- a/src/date/index.ts +++ b/src/date/index.ts @@ -36,4 +36,4 @@ export const millisToSeconds = (millis: number) => { export const randomThenGetOne = (data: any[]): any => { const randomIndex = Math.floor(Math.random() * data.length) return data[randomIndex] -} \ No newline at end of file +} diff --git a/src/index.ts b/src/index.ts index 63191cd..1b26a25 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,4 +13,4 @@ // parse2Int, // parse2IntOrNull, // parseToBoolean, -// } \ No newline at end of file +// } diff --git a/src/log/index.ts b/src/log/index.ts index 0a60811..2849c70 100644 --- a/src/log/index.ts +++ b/src/log/index.ts @@ -41,4 +41,4 @@ export const info = (message?: any, ...args: any[]) => { export const success = (message?: any, ...args: any[]) => { const msg = prefixColor("SUCCESS", message) args.length === 0 ? logger.info(msg) : logger.info(msg, ...args) -} \ No newline at end of file +} diff --git a/src/log/writter.ts b/src/log/writter.ts index 4573ab7..9bee82a 100644 --- a/src/log/writter.ts +++ b/src/log/writter.ts @@ -52,4 +52,4 @@ class Logger { } } -export default Logger \ No newline at end of file +export default Logger diff --git a/src/number/parser.ts b/src/number/parser.ts index 19cfe49..9796965 100644 --- a/src/number/parser.ts +++ b/src/number/parser.ts @@ -18,4 +18,4 @@ export const parseToBoolean = ( ): boolean => { if (!val) return defaultValue return val === true || val.toLowerCase() === "true" -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index fb177d3..3f4f32b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "lib": ["ES2015"], "skipLibCheck": true, "allowJs": true, - "declaration": true, + "declaration": true }, "include": ["src/**/*"] -} \ No newline at end of file +}