-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Gearonix/refactoring
merge(refactoring): merged
- Loading branch information
Showing
439 changed files
with
1,384 additions
and
1,203 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,49 +1,6 @@ | ||
const {configure, presets} = require('eslint-kit') | ||
const grnx = require('@grnx-utils/eslint') | ||
|
||
module.exports = configure({ | ||
mode: 'only-errors', | ||
allowDebug: process.env.NODE_ENV !== 'production', | ||
module.exports = grnx({ | ||
root: __dirname, | ||
presets: [ | ||
presets.node(), | ||
presets.prettier({ | ||
singleQuote: true, | ||
trailingComma: 'none', | ||
endOfLine: 'auto' | ||
}), | ||
presets.typescript({ | ||
tsconfig: 'tsconfig.base.json', | ||
root: './' | ||
}), | ||
presets.react(), | ||
// eslint runs forever because of this preset | ||
// --- | ||
// presets.imports({ | ||
// sort: { | ||
// newline: true | ||
// } | ||
// }) | ||
], | ||
extend: { | ||
root: true, | ||
ignorePatterns: ["**/*"], | ||
plugins: ['@nx', 'prefer-arrow'], | ||
rules: { | ||
'react/react-in-jsx-scope': 'off', | ||
quotes: [2, 'single', { avoidEscape: true }], | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/member-delimiter-style': [ | ||
'error', | ||
{ multiline: { delimiter: 'none' } } | ||
], | ||
'import/no-unresolved': 'off', | ||
'@typescript-eslint/no-unnecessary-condition': 'off', | ||
'import/extensions': 'off', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
'react/no-array-index-key': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'dot-notation': 'off', | ||
'prefer-arrow/prefer-arrow-functions': 'error' | ||
} | ||
} | ||
tsconfig: 'tsconfig.base.json' | ||
}) |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"*.ts": ["yarn run lint"] | ||
"*.ts": ["yarn dlx nx run-many --targets=lint --all --parallel=8"] | ||
} |
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,2 +1,3 @@ | ||
cache | ||
install-state.gz | ||
unplugged |
14 changes: 7 additions & 7 deletions
14
.yarn/releases/yarn-3.6.2.cjs → .yarn/releases/yarn-3.6.3.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// It is important to specify relative paths here. | ||
import { createViteConfig } from '../../../../packages/config/src/vite' | ||
|
||
import { resolve } from 'path' | ||
import { buildCustomPlugins } from './plugins' | ||
|
||
export default createViteConfig({ | ||
projectName: 'client', | ||
projectType: 'application', | ||
rootDir: resolve(__dirname, '..'), | ||
layer: 'second', | ||
external: [], | ||
plugins: buildCustomPlugins() | ||
}) |
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,3 @@ | ||
export const fonts: string[] = [ | ||
'https://fonts.googleapis.com/css2?family=Poppins&display=swap' | ||
] |
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,28 @@ | ||
import { PluginOption } from 'vite' | ||
|
||
import { fonts } from './fonts' | ||
|
||
import preact from '@preact/preset-vite' | ||
import { VitePWA } from 'vite-plugin-pwa' | ||
import webfontDownload from 'vite-plugin-webfont-dl' | ||
|
||
export const buildCustomPlugins = (): PluginOption[] => [ | ||
webfontDownload(fonts), | ||
preact(), | ||
VitePWA({ | ||
registerType: 'autoUpdate', | ||
injectRegister: 'auto', | ||
strategies: 'injectManifest', | ||
srcDir: 'public', | ||
filename: 'service-worker.js', | ||
workbox: { | ||
globPatterns: ['**/*.{js,css,html,ico,png,svg}'], | ||
clientsClaim: true, | ||
skipWaiting: true | ||
}, | ||
devOptions: { | ||
enabled: false | ||
}, | ||
includeAssets: ['**/*'] | ||
}) | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,5 @@ | ||
import { render } from 'preact' | ||
|
||
import { Root } from '../../root' | ||
|
||
render(<Root />, document.querySelector('#root')!) |
This file was deleted.
Oops, something went wrong.
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,2 +1 @@ | ||
export { default as App } from './entrypoint/application' | ||
export { RootStore, StoreContext } from './providers/store' |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
apps/client/src/widgets/sign-in-modal/graphql/get-profile.query.ts
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
2 changes: 1 addition & 1 deletion
2
apps/client/src/widgets/sign-in-modal/graphql/sign-in.mutation.ts
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
Oops, something went wrong.