Updated the script and add prettier
This commit is contained in:
parent
799af005d1
commit
589e0884e5
7
.prettierrc
Normal file
7
.prettierrc
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"semi": true,
|
||||
"trailingComma": "none",
|
||||
"singleQuote": true,
|
||||
"printWidth": 120,
|
||||
"tabWidth": 4
|
||||
}
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user