Skip to content

Commit d4a299c

Browse files
feat: numeric input component
Co-authored-by: Andrea Stagi <[email protected]>
1 parent adbd34f commit d4a299c

12 files changed

+850
-2784
lines changed

commitlint.config.js

+38-30
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ module.exports = {
1111
'subject-full-stop': [2, 'never', '.'],
1212
'type-case': [2, 'always', 'lower-case'],
1313
'type-empty': [2, 'never'],
14-
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']],
14+
'type-enum': [
15+
2,
16+
'always',
17+
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']
18+
]
1519
},
1620
prompt: {
1721
questions: {
@@ -21,87 +25,91 @@ module.exports = {
2125
feat: {
2226
description: 'A new feature',
2327
title: 'Features',
24-
emoji: '✨',
28+
emoji: '✨'
2529
},
2630
fix: {
2731
description: 'A bug fix',
2832
title: 'Bug Fixes',
29-
emoji: '🐛',
33+
emoji: '🐛'
3034
},
3135
docs: {
3236
description: 'Documentation only changes',
3337
title: 'Documentation',
34-
emoji: '📚',
38+
emoji: '📚'
3539
},
3640
style: {
37-
description: 'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
41+
description:
42+
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
3843
title: 'Styles',
39-
emoji: '💎',
44+
emoji: '💎'
4045
},
4146
refactor: {
4247
description: 'A code change that neither fixes a bug nor adds a feature',
4348
title: 'Code Refactoring',
44-
emoji: '📦',
49+
emoji: '📦'
4550
},
4651
perf: {
4752
description: 'A code change that improves performance',
4853
title: 'Performance Improvements',
49-
emoji: '🚀',
54+
emoji: '🚀'
5055
},
5156
test: {
5257
description: 'Adding missing tests or correcting existing tests',
5358
title: 'Tests',
54-
emoji: '🚨',
59+
emoji: '🚨'
5560
},
5661
build: {
57-
description: 'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
62+
description:
63+
'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
5864
title: 'Builds',
59-
emoji: '🛠',
65+
emoji: '🛠'
6066
},
6167
ci: {
62-
description: 'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
68+
description:
69+
'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
6370
title: 'Continuous Integrations',
64-
emoji: '⚙️',
71+
emoji: '⚙️'
6572
},
6673
chore: {
6774
description: "Other changes that don't modify src or test files",
6875
title: 'Chores',
69-
emoji: '♻️',
76+
emoji: '♻️'
7077
},
7178
revert: {
7279
description: 'Reverts a previous commit',
7380
title: 'Reverts',
74-
emoji: '🗑',
75-
},
76-
},
81+
emoji: '🗑'
82+
}
83+
}
7784
},
7885
scope: {
79-
description: 'What is the scope of this change (e.g. component or file name)',
86+
description: 'What is the scope of this change (e.g. component or file name)'
8087
},
8188
subject: {
82-
description: 'Write a short, imperative tense description of the change',
89+
description: 'Write a short, imperative tense description of the change'
8390
},
8491
body: {
85-
description: 'Provide a longer description of the change',
92+
description: 'Provide a longer description of the change'
8693
},
8794
isBreaking: {
88-
description: 'Are there any breaking changes?',
95+
description: 'Are there any breaking changes?'
8996
},
9097
breakingBody: {
91-
description: 'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
98+
description: 'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself'
9299
},
93100
breaking: {
94-
description: 'Describe the breaking changes',
101+
description: 'Describe the breaking changes'
95102
},
96103
isIssueAffected: {
97-
description: 'Does this change affect any open issues?',
104+
description: 'Does this change affect any open issues?'
98105
},
99106
issuesBody: {
100-
description: 'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
107+
description:
108+
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself'
101109
},
102110
issues: {
103-
description: 'Add issue references (e.g. "fix #123", "re #123".)',
104-
},
105-
},
106-
},
107-
}
111+
description: 'Add issue references (e.g. "fix #123", "re #123".)'
112+
}
113+
}
114+
}
115+
};

0 commit comments

Comments
 (0)