Skip to content

Commit

Permalink
Chore: Setting eslint and etc css
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Jul 2, 2024
1 parent 551b538 commit 1bc049b
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 15 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
],
plugins: ['react', '@typescript-eslint', 'prettier', 'storybook'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': 'error',
'react/prop-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
overrides: [
{
files: ['*.stories.@(ts|tsx|js|jsx|mdx)'],
rules: {},
},
],
};
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

81 changes: 80 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@types/react-dom": "^18.3.0",
"axios": "^1.7.2",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.3",
"prettier": "^3.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -29,7 +28,10 @@
"eject": "react-scripts eject",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"chromatic": "chromatic"
"chromatic": "chromatic",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --fix",
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,md}'"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -60,7 +62,11 @@
"@storybook/react": "^8.1.10",
"@storybook/react-webpack5": "^8.1.10",
"@storybook/test": "^8.1.10",
"@typescript-eslint/parser": "^5.62.0",
"chromatic": "^11.5.4",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.8.0",
"prop-types": "^15.8.1",
"storybook": "^8.1.10",
Expand Down
64 changes: 58 additions & 6 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ html,
/* 3 */
tab-size: 4;
/* 3 */
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
/* 4 */
font-feature-settings: normal;
/* 5 */
Expand Down Expand Up @@ -87,7 +88,7 @@ Add the correct text decoration in Chrome, Edge, and Safari.

abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
text-decoration: underline dotted;
}

/*
Expand Down Expand Up @@ -133,7 +134,7 @@ code,
kbd,
samp,
pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
/* 1 */
font-feature-settings: normal;
/* 2 */
Expand Down Expand Up @@ -389,7 +390,7 @@ Set the default cursor for buttons.
*/

button,
[role="button"] {
[role='button'] {
cursor: pointer;
}

Expand Down Expand Up @@ -437,7 +438,9 @@ video {
display: none;
}

*, ::before, ::after {
*,
::before,
::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
Expand Down Expand Up @@ -577,6 +580,10 @@ video {
height: 100%;
}

.h-12 {
height: 3rem;
}

.w-2 {
width: 0.5rem;
}
Expand All @@ -585,8 +592,17 @@ video {
width: 100%;
}

.w-32 {
width: 8rem;
}

.w-96 {
width: 24rem;
}

@keyframes ping {
75%, 100% {
75%,
100% {
transform: scale(2);
opacity: 0;
}
Expand Down Expand Up @@ -622,6 +638,14 @@ video {
border-width: 0px;
}

.border {
border-width: 1px;
}

.border-solid {
border-style: solid;
}

.border-none {
border-style: none;
}
Expand All @@ -636,6 +660,11 @@ video {
border-color: rgb(0 0 0 / var(--tw-border-opacity));
}

.border-\[\#E3E5E5\] {
--tw-border-opacity: 1;
border-color: rgb(227 229 229 / var(--tw-border-opacity));
}

.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
Expand All @@ -651,19 +680,37 @@ video {
background-color: rgb(227 229 229 / var(--tw-bg-opacity));
}

.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.p-4 {
padding: 1rem;
}

.pl-4 {
padding-left: 1rem;
}

.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}

.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}

.font-bold {
font-weight: 700;
}

.font-normal {
font-weight: 400;
}

.text-red-300 {
--tw-text-opacity: 1;
color: rgb(252 165 165 / var(--tw-text-opacity));
Expand All @@ -672,3 +719,8 @@ video {
.delay-150 {
transition-delay: 150ms;
}

.placeholder\:text-\[\#72777A\]::placeholder {
--tw-text-opacity: 1;
color: rgb(114 119 122 / var(--tw-text-opacity));
}

0 comments on commit 1bc049b

Please sign in to comment.