Updated the script and add prettier

This commit is contained in:
Sambo Chea 2021-03-10 13:37:21 +07:00
parent 799af005d1
commit 589e0884e5
3 changed files with 17 additions and 4 deletions

7
.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4
}

View File

@ -6,5 +6,11 @@
"repository": "https://github.com/CUBETIQ/cubetiq-ts-utils.git",
"author": "Sambo Chea",
"license": "MIT",
"private": false
"private": false,
"devDependencies": {
"prettier": "^2.2.1"
},
"scripts": {
"lint": "prettier --config .prettierrc 'src/**/*.ts' --write"
}
}

View File

@ -1,5 +1,5 @@
const Index = (): void => {
console.log("Index", "Hello, you are init the default function!")
}
console.log('Index', 'Hello, you are init the default function!');
};
export default Index;