-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from endless-horses/feature#16-custom-page-pat…
…tern 타이어 만들기 페이지 구현 - 패턴 선택 close #16
- Loading branch information
Showing
43 changed files
with
675 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
plugins: ['commitlint-plugin-function-rules'], | ||
rules: { | ||
// 스코프는 컨벤션과 맞지 않기에, 사용하지 않는 것으로 한다. | ||
'scope-empty': [2, 'always'], | ||
// 헤더의 길이는 50자로 제한한다. | ||
'header-max-length': [2, 'always', 50], | ||
// 본문의 한 줄은 72자로 제한한다. | ||
'body-max-line-length': [2, 'always', 72], | ||
// 타입은 아래의 태그만 사용하도록 한다. | ||
'type-enum': [2, 'always', ['feat', 'fix', 'refactor', 'style', 'docs', 'test', 'chore']], | ||
'subject-full-stop': [0], | ||
'function-rules/subject-full-stop': [ | ||
2, | ||
'always', | ||
({ subject, header, body, raw }) => { | ||
// 이슈 번호로 종료되는가? | ||
if (subject && !/[^\.] #[0-9]+$/.test(subject)) { | ||
return [ | ||
false, | ||
'subject는 issue 번호를 #[number] 형식으로 끝에 포함해야하며, .(점) 으로 끝나지 말아야 합니다.', | ||
]; | ||
} | ||
extends: ['@commitlint/config-conventional'], | ||
plugins: ['commitlint-plugin-function-rules'], | ||
rules: { | ||
// 스코프는 컨벤션과 맞지 않기에, 사용하지 않는 것으로 한다. | ||
'scope-empty': [2, 'always'], | ||
// 헤더의 길이는 50자로 제한한다. | ||
'header-max-length': [2, 'always', 50], | ||
// 본문의 한 줄은 72자로 제한한다. | ||
'body-max-line-length': [2, 'always', 72], | ||
// 타입은 아래의 태그만 사용하도록 한다. | ||
'type-enum': [2, 'always', ['feat', 'fix', 'refactor', 'style', 'docs', 'test', 'chore']], | ||
'subject-full-stop': [0], | ||
'function-rules/subject-full-stop': [ | ||
2, | ||
'always', | ||
({ subject, header, body, raw }) => { | ||
// 이슈 번호로 종료되는가? | ||
if (subject && !/[^\.] #[0-9]+$/.test(subject)) { | ||
return [ | ||
false, | ||
'subject는 issue 번호를 #[number] 형식으로 끝에 포함해야하며, .(점) 으로 끝나지 말아야 합니다.', | ||
]; | ||
} | ||
|
||
// 제목과 바디가 공백으로 분리되어있는가? | ||
if (body && raw && header && raw.search('\n\n') !== header.length) { | ||
return [false, '제목과 본문은 공백으로 구분해주시기 바랍니다.']; | ||
} | ||
// 제목과 바디가 공백으로 분리되어있는가? | ||
if (body && raw && header && raw.search('\n\n') !== header.length) { | ||
return [false, '제목과 본문은 공백으로 구분해주시기 바랍니다.']; | ||
} | ||
|
||
return [true]; | ||
}, | ||
], | ||
'body-leading-blank': [0], | ||
'function-rules/body-leading-blank': [ | ||
2, | ||
'always', | ||
({ body }) => { | ||
// body가 없으면 굳이 판단하지 않는다. | ||
if (!body) { | ||
return [true]; | ||
} | ||
if (body.split('\n').filter((line) => !/ *-/.test(line)).length > 0) { | ||
return [false, '본문의 각 줄은 - 으로 시작해야 합니다.']; | ||
} | ||
return [true]; | ||
}, | ||
], | ||
}, | ||
return [true]; | ||
}, | ||
], | ||
'body-leading-blank': [0], | ||
'function-rules/body-leading-blank': [ | ||
2, | ||
'always', | ||
({ body }) => { | ||
// body가 없으면 굳이 판단하지 않는다. | ||
if (!body) { | ||
return [true]; | ||
} | ||
if (body.split('\n').filter((line) => !/ *-/.test(line)).length > 0) { | ||
return [false, '본문의 각 줄은 - 으로 시작해야 합니다.']; | ||
} | ||
return [true]; | ||
}, | ||
], | ||
}, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export interface ColorData { | ||
id: number; | ||
name: string; | ||
imageUrl: string; | ||
rgb: string; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,5 @@ export const Wrapper = styled.input<WrapperProps>` | |
}}; | ||
border-radius: 12px; | ||
border: none; | ||
cursor: pointer; | ||
`; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.