Skip to content

Commit

Permalink
feat: add typescript, migrate to dart-scss, change to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
UrWrstNightmare committed Jul 26, 2023
1 parent 412923b commit 54b8e6c
Show file tree
Hide file tree
Showing 294 changed files with 4,186 additions and 20,003 deletions.
102 changes: 61 additions & 41 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,75 @@ module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'eslint-config-airbnb', 'prettier'],
overrides: [],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
overrides: [
{
files: ['**/*.test.js', '**/*.test.ts', '**/*.test.tsx', '**/*.stories.*'],
// env: {
// jest: true // now **/*.test.js files' env has both es6 *and* jest
// },
// // Can't extend in overrides: https://github.com/eslint/eslint/issues/8813
// // "extends": ["plugin:jest/recommended"]
// plugins: ['jest'],
// rules: {
// 'jest/no-disabled-tests': 'warn',
// 'jest/no-focused-tests': 'error',
// 'jest/no-identical-title': 'error',
// 'jest/prefer-to-have-length': 'warn',
// 'jest/valid-expect': 'error',
// 'import/no-anonymous-default-export': 'off'
// }
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
plugins: ['@typescript-eslint', 'react', 'prettier'],
rules: {
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/mouse-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,

'arrow-body-style': 'off',
'arrow-parens': [2, 'always'],
'comma-dangle': [
'error',
'no-console': 'error',
'linebreak-style': 'off',
'import/extensions': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'import/no-unresolved': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'import/no-extraneous-dependencies': 'off',
'react/no-deprecated': 'warn',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'off',
'react/prop-types': 'off',
'react/no-unstable-nested-components': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'only-multiline',
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'no-nested-ternary': 'off',
'no-underscore-dangle': ['error', { allowAfterThis: true, allowAfterSuper: true }],
'no-unused-vars': ['error', { args: 'none' }],
'object-shorthand': [1, 'never'],
'prefer-destructuring': 'off',
'prefer-object-spread': 'off',
'default-param-last': 'off',
'class-methods-use-this': 'off',

'import/prefer-default-export': 'off',

'react/button-has-type': 'off',
'react/destructuring-assignment': 1,
'react/jsx-boolean-value': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/require-default-props': 'off',
'react/prefer-stateless-function': 0,
'react/prop-types': [2, { ignore: ['children', 'match', 't', 'i18n'] }],
'react/no-unknown-property': 0,
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/no-unused-class-component-methods': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install npm dependencies
run: npm install
cache: yarn
- name: Install yarn dependencies
run: yarn install
- name: Format
run: npm run prettier
run: yarn prettier
- name: Lint
run: npm run lint
run: yarn lint

build:
name: Build
Expand All @@ -38,11 +38,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install npm dependencies
run: npm install
cache: yarn
- name: Install yarn dependencies
run: yarn install
- name: Build
run: npm run build
run: yarn build

test:
name: Test
Expand All @@ -54,8 +54,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install npm dependencies
run: npm install
cache: yarn
- name: Install yarn dependencies
run: yarn install
- name: Run tests
run: npm test
run: yarn test
Binary file added dist/assets/Members-05-battery_kor-d80534eb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-05-julingks_kor-5cf01e83.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-07-cancho_kor-ac17d13b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-07-dynaman_kor-1aa6dd84.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-07-gangok_kor-6533dfbf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-07-truth_kor-a160dd91.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-08-mayflower_kor-ae915667.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-08-reno_kor-a3dd47a6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-09-imai_kor-d3e839e5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-09-kuss_kor-71c3c3d6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-10-alphamin_kor-7c838683.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-10-boolgom_kor-9d83b727.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-10-leeopop_kor-28dfc157.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-10-noname_kor-b2660d1e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-10-pillibi_kor-0d2e2c8d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-11-overmania_kor-1f93fee8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-11-raon_kor-b928deb2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-11-rodumani_kor-64508a20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-11-seal_kor-fb6ad523.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-11-sunguard_kor-76a1c19f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-12-aon_kor-62856a85.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-12-chaos_kor-707911bd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-12-coffee_kor-3f5114b5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Members-12-daedoo_kor-18b0c93a.png
Binary file added dist/assets/Members-12-naldo_kor-d5808373.png
Binary file added dist/assets/Members-12-whitegold_kor-fd5f6918.png
Binary file added dist/assets/Members-12-yasik_kor-dc86caa6.png
Binary file added dist/assets/Members-13-mandu_kor-7c2c4d7c.png
Binary file added dist/assets/Members-13-nobrain_kor-b5c12e39.png
Binary file added dist/assets/Members-13-samjo_kor-e82a1a03.png
Binary file added dist/assets/Members-14-coearth_kor-b054e07c.png
Binary file added dist/assets/Members-14-george_kor-93c6ac9f.png
Binary file added dist/assets/Members-14-leejeok_kor-5b5985a3.png
Binary file added dist/assets/Members-14-stein_kor-232d330f.png
Binary file added dist/assets/Members-15-allkinds_kor-d8e15c98.png
Binary file added dist/assets/Members-15-bogo_kor-f7e14b86.png
Binary file added dist/assets/Members-15-cheshire_kor-1ca0add0.png
Binary file added dist/assets/Members-15-didee_kor-6be2ab43.png
Binary file added dist/assets/Members-15-etranger_kor-89d2b348.png
Binary file added dist/assets/Members-15-hood_kor-e3f38ff5.png
Binary file added dist/assets/Members-15-mango_kor-864b075f.png
Binary file added dist/assets/Members-15-moss_kor-ba8381f7.png
Binary file added dist/assets/Members-15-null_kor-123186a4.png
Binary file added dist/assets/Members-15-potato_kor-ac8c7edf.png
Binary file added dist/assets/Members-15-swan_kor-a229fdcb.png
Binary file added dist/assets/Members-15-zealot_kor-27ac69b7.png
Binary file added dist/assets/Members-16-akais_kor-c0e2fbc9.png
Binary file added dist/assets/Members-16-hershey_kor-cc8f7564.png
Binary file added dist/assets/Members-16-james_kor-381dea08.png
Binary file added dist/assets/Members-16-jaydub_kor-ee1a7508.png
Binary file added dist/assets/Members-16-juheeuu_kor-89a910cd.png
Binary file added dist/assets/Members-16-leesia_kor-de92729c.png
Binary file added dist/assets/Members-16-parang_kor-73717dbf.png
Binary file added dist/assets/Members-16-semi_kor-5d3a7b7c.png
Binary file added dist/assets/Members-16-youns_kor-8358690f.png
Binary file added dist/assets/Members-17-tink_kor-e04f2b64.png
Binary file added dist/assets/Members-17-yolo_kor-4e7a1d86.png
Binary file added dist/assets/Members-18-appleseed_kor-4ec6cac4.png
Binary file added dist/assets/Members-19-mini_kor-34891bd2.png
Binary file added dist/assets/Members-20-dora_kor-fe8135f7.png
Binary file added dist/assets/Members-21-kkoma_kor-3d58300e.png
Binary file added dist/assets/Members-21-platypus_kor-1626ad8c.png
Binary file added dist/assets/Members-ext-majja_kor-d513cca1.png
1 change: 1 addition & 0 deletions dist/assets/SPARCS_black-0409e753.svg
1 change: 1 addition & 0 deletions dist/assets/Services-OTL-1af42972.svg
1 change: 1 addition & 0 deletions dist/assets/add_cart-3e2db1af.svg
1 change: 1 addition & 0 deletions dist/assets/add_cart_disabled-daa01cc5.svg
1 change: 1 addition & 0 deletions dist/assets/add_cart_hover-fc5b5c98.svg
1 change: 1 addition & 0 deletions dist/assets/add_lecture-818d7a99.svg
1 change: 1 addition & 0 deletions dist/assets/add_lecture_disabled-17e94e6b.svg
1 change: 1 addition & 0 deletions dist/assets/add_lecture_hover-b7cef8e7.svg
1 change: 1 addition & 0 deletions dist/assets/add_table-80216476.svg
1 change: 1 addition & 0 deletions dist/assets/add_table_hover-8a3c0889.svg
Binary file added dist/assets/background_photo-aafadcf1.jpg
1 change: 1 addition & 0 deletions dist/assets/checkbox_selected-21b0b127.svg
1 change: 1 addition & 0 deletions dist/assets/checkbox_selected_hover-8e4c7324.svg
1 change: 1 addition & 0 deletions dist/assets/close_section-9ed82242.svg
1 change: 1 addition & 0 deletions dist/assets/close_section_hover-d35d688e.svg
1 change: 1 addition & 0 deletions dist/assets/delete_cart-e101a481.svg
1 change: 1 addition & 0 deletions dist/assets/delete_cart_hover-650326a0.svg
1 change: 1 addition & 0 deletions dist/assets/delete_from_table-a40bba90.svg
Loading

0 comments on commit 54b8e6c

Please sign in to comment.