Team Rule - codestates/Reciper-client GitHub Wiki

๐Ÿ˜„ Team Rule

1. ์ƒํ™œ ๊ทœ์น™(routine)

  • am 10:00 ํšŒ์˜ ์ง„ํ–‰, ๊ธˆ์ผ ํ•ด์•ผํ•  ์ผ๋“ค์„ ์ด์Šˆ์นด๋“œ์— ์ž‘์„ฑ
  • pm 12:00 ์ ์‹ฌ ์‹œ๊ฐ„ (1์‹œ๊ฐ„)
  • pm 06:00 ์ €๋… ์‹œ๊ฐ„ (1์‹œ๊ฐ„)
  • pm 09:00 ๊ธˆ์ผ ์ฝ”๋“œ ๋ฆฌ๋ทฐ + (์›”,๋ชฉ) KPT ํŒ€ํšŒ๊ณ  ์ž‘์„ฑ
  • pm 10:00 ๊ธˆ์ผ ๊ฐœ์ธ ํšŒ๊ณ ๋ก, Dev Log ์ž‘์„ฑ
  • am 02:30 ์ดํ›„๋กœ ์ฝ”๋”ฉ์„ ํ•˜์ง€ ์•Š๋Š”๋‹ค(๊ฑด๊ฐ• ์ฑ™๊ธฐ๊ธฐ!)

2. Git Branch ๊ทœ์น™

(Dev Branch์—์„œ) $git checkout -b [ํŽ˜์ด์ง€]

์˜ˆ์‹œ: $git checkout -b Workspace


3. Commit ๊ทœ์น™

[Action] #[์ด์Šˆ๋ฒˆํ˜ธ] [commit ๋‚ด์šฉ]

์˜ˆ์‹œ: Add #9 logo to header


4. Task Card ์ œ๋ชฉ ๊ทœ์น™

[Client or Server] [๋งˆ์ผ์Šคํ†ค] - ์ž‘์—… ๋‚ด์šฉ

์˜ˆ์‹œ: [Client] [Common] - Board Page ๊ฒŒ์‹œํŒ ์ถ”๊ฐ€


5. ESlint & Prettier

.eslintrc.js

module.exports = {
	parser: '@typescript-eslint/parser',
	extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
	parserOptions: {
		ecmaVersion: 2018,
		sourceType: 'module',
		ecmaFeatures: {
			jsx: true,
		},
	},
	rules: {
		'no-empty': 'error', // ๋นˆ ๋ธ”๋ก๋ฌธ์„ ์ง€์–‘ํ•œ๋‹ค.
		'default-case': 'error', // switch ๋ฌธ์— default๊ฐ€ ํฌํ•จ๋˜์–ด์•ผ ํ•œ๋‹ค.
		'default-case-last': 'error', // switch ๋ฌธ์— default๊ฐ€ ํ•ญ์ƒ ๋งˆ์ง€๋ง‰์— ์ž‘์„ฑ๋˜์–ด์•ผ ํ•œ๋‹ค.
		'dot-notation': 'error', // dot-notation์œผ๋กœ ์ž‘์„ฑ์ด ๊ฐ€๋Šฅํ•œ ๊ตฌ๋ฌธ์€ braket-notation์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•„์•ผํ•œ๋‹ค.
		'eqeqeq': ['error', 'always'], // '==' ๋ฐŽ '!=' ์‚ฌ์šฉ์„ ์ง€์–‘ํ•œ๋‹ค.
		'prefer-template': 'error', // ๋ฌธ์ž์—ด ์—ฐ๊ฒฐ ์—ฐ์‚ฐ์ž๋ฅผ ์ง€์–‘ํ•˜๊ณ  ํ…œํ”Œ๋ฆฟ ๋ฆฌํ„ฐ๋Ÿด์„ ์‚ฌ์šฉํ•œ๋‹ค.
	},
	settings: {
		// ์„œ๋ฒ„ ์ฝ”๋“œ์—์„œ๋Š” ์•„๋ž˜์˜ react ๋ถ€๋ถ„ ์ง€์šฐ๊ณ  ์‚ฌ์šฉํ•œ๋‹ค
		react: {
			version: 'detect',
		},
	},
};

.prettierrc.json

{
  "printWidth": 120,
  "tabWidth": 2,
  "singleQuote": true,
  "trailingComma": "all",
  "bracketSpacing": true, 
  "semi": true,
  "useTabs": true,
  "arrowParens": "avoid",
}
โš ๏ธ **GitHub.com Fallback** โš ๏ธ