-
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.
* Vite initial changes Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * js/ts to jsx/tsx Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Fix imports for vite Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Port proxy bug Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Port proxy bug Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Changes to port Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Fixes to make it work on my machine * Import changes Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Final import changes Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * Remove change Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * package-lock.json changes Signed-off-by: Courtney Gosselin <courtney@gosselin.io> * prettier fixes Signed-off-by: Courtney Gosselin <courtney@gosselin.io> --------- Signed-off-by: Courtney Gosselin <courtney@gosselin.io> Co-authored-by: fnguyen <OrdinaryNeumann@gmail.com>
- Loading branch information
1 parent
58bcd61
commit f1abb60
Showing
138 changed files
with
5,813 additions
and
15,475 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,10 +1,10 @@ | ||
REACT_APP_KATSU_API_SERVER='${REACT_APP_KATSU_API_SERVER}' | ||
REACT_APP_FEDERATION_API_SERVER='${REACT_APP_FEDERATION_API_SERVER}' | ||
REACT_APP_BASE_NAME=${REACT_APP_BASE_NAME} | ||
REACT_APP_SITE_LOCATION = '${REACT_APP_SITE_LOCATION}' | ||
REACT_APP_HTSGET_SERVER ='${REACT_APP_HTSGET_SERVER}' | ||
REACT_APP_CANDIG_VERSION='${REACT_APP_CANDIG_VERSION}' | ||
REACT_APP_AGGREGATE_COUNT_THRESHOLD='${AGGREGATE_COUNT_THRESHOLD}' | ||
VITE_KATSU_API_SERVER='${VITE_KATSU_API_SERVER}' | ||
VITE_FEDERATION_API_SERVER='${VITE_FEDERATION_API_SERVER}' | ||
VITE_BASE_NAME=${VITE_BASE_NAME} | ||
VITE_SITE_LOCATION = '${VITE_SITE_LOCATION}' | ||
VITE_HTSGET_SERVER ='${VITE_HTSGET_SERVER}' | ||
VITE_CANDIG_VERSION='${VITE_CANDIG_VERSION}' | ||
VITE_AGGREGATE_COUNT_THRESHOLD='${AGGREGATE_COUNT_THRESHOLD}' | ||
DISABLE_ESLINT_PLUGIN='${DISABLE_ESLINT}' | ||
GENERATE_SOURCEMAP=false | ||
REACT_APP_SUPPORT_EMAIL='${REACT_APP_SUPPORT_EMAIL}' | ||
VITE_SUPPORT_EMAIL='${VITE_SUPPORT_EMAIL}' |
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 |
---|---|---|
|
@@ -9,5 +9,6 @@ if [[ -f "initial_setup" ]]; then | |
rm initial_setup | ||
fi | ||
|
||
npm start | ||
npx vite | ||
# npm start | ||
# npm run build |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import js from '@eslint/js'; | ||
import globals from 'globals'; | ||
import reactHooks from 'eslint-plugin-react-hooks'; | ||
import reactRefresh from 'eslint-plugin-react-refresh'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
'airbnb', | ||
'prettier', | ||
'plugin:jsx-a11y/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime' | ||
], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
moduleDirectory: ['node_modules', 'src/'] | ||
} | ||
} | ||
}, | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
experimentalObjectRestSpread: true, | ||
impliedStrict: true | ||
}, | ||
ecmaVersion: 2020 | ||
}, | ||
plugins: { | ||
prettier: {}, | ||
react: {}, | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], | ||
'react/jsx-filename-extension': 0, | ||
'no-param-reassign': 0, | ||
'react/prop-types': 1, | ||
'react/require-default-props': 0, | ||
'react/no-array-index-key': 0, | ||
'react/jsx-props-no-spreading': 0, | ||
'react/forbid-prop-types': 0, | ||
'import/order': 0, | ||
'no-console': 0, | ||
'jsx-a11y/anchor-is-valid': 0, | ||
'prefer-destructuring': 0, | ||
'no-shadow': 0, | ||
'no-unused-vars': [ | ||
1, | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
ignoreRestSiblings: false | ||
} | ||
], | ||
'prettier/prettier': [ | ||
2, | ||
{ | ||
bracketSpacing: true, | ||
printWidth: 140, | ||
singleQuote: true, | ||
trailingComma: 'none', | ||
tabWidth: 4, | ||
useTabs: false, | ||
endOfLine: 'auto', | ||
camelcase: 'off' | ||
} | ||
] | ||
} | ||
} | ||
); |
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
Oops, something went wrong.