Skip to content

Instantly share code, notes, and snippets.

View zmzhoi's full-sized avatar

JongMyeong Choi zmzhoi

  • South Korea
  • 12:30 (UTC +09:00)
View GitHub Profile
@zmzhoi
zmzhoi / scripts
Last active February 10, 2023 15:01
{
"scripts": {
"format": "prettier --check \"**/*.(ts|tsx|cts|mts|js|jsx|cjs|mjs|json|md)\"",
"format:fix": "prettier --write \"**/*.(ts|tsx|cts|mts|js|jsx|cjs|mjs|json|md)\"",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
}
}
{
"export default": {
"prefix": "ed",
"body": ["export { default } from './$0';"],
"description": "export default"
},
"export all": {
"prefix": "ea",
"body": ["export * from './$0';"],
"description": "export default"
module.exports = {
'src/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}': 'eslint --cache',
'src/**/*.{ts,tsx,mts,cts}': ['tsc-files --noEmit', 'eslint --cache'],
'src/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json,md,css}': 'prettier --write ',
};
@zmzhoi
zmzhoi / .prettierrc
Last active August 17, 2022 04:49
.prettierrc
{
"singleQuote": true,
"semi": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"bracketSameLine": false,
"printWidth": 100
}