-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement/1st improvement design system #253
Changes from 5 commits
219accf
23665f0
801b2fb
5604059
67cee5f
e6e8c5f
572c3b0
5876451
85cee92
62ed29f
d020ac9
9d8f0e6
4a9c09d
7ffbfd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ logs | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.vscode |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
stories: ["../stories/*.@(js|mdx)"], | ||
stories: ["../stories/**/*.stories.@(js|mdx)"], | ||
addons: ["@storybook/addon-essentials", "@storybook/addon-knobs"], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,30 @@ const withThemeProvider = (Story, context) => { | |
}; | ||
|
||
export const decorators = [withThemeProvider]; | ||
|
||
export const parameters = { | ||
options: { | ||
storySort: { | ||
order: [ | ||
"Style", | ||
["Color", "Icons"], | ||
"Components", | ||
[ | ||
"Navigation", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should it be ordered alphabetically for better readability? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For headers on level 1 ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for this explanation. |
||
"Button", | ||
"Chips", | ||
"Checkbox", | ||
"Toggle", | ||
"Dropdown", | ||
"Input", | ||
"Selector", | ||
"Chart", | ||
"Progress & loading", | ||
"Table", | ||
"Notification", | ||
], | ||
"Guideline", | ||
], | ||
}, | ||
}, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need two different linter tools? ESLint should handle code formatting concerns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On
metalk8s
andxcore
. We use ESLint for code quality rules and prettier for formatting rules.ESLint can indeed do both but I (subjective opinion) prefer prettier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have never user Prettier.io and would love to have your opinion on "what is the advantage of using Prettier for formatting concerns over Eslint?". We could have a side discussion on this topic if you want.