Skip to content

Commit

Permalink
Migrate client
Browse files Browse the repository at this point in the history
  • Loading branch information
Lepozepo committed Oct 14, 2023
1 parent 18130e7 commit e5c5d52
Show file tree
Hide file tree
Showing 7 changed files with 3,468 additions and 4,495 deletions.
7 changes: 0 additions & 7 deletions packages/client/.babelrc

This file was deleted.

64 changes: 61 additions & 3 deletions packages/client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,69 @@
const prettierConfig = require('./.prettierrc');

module.exports = {
extends: ['airbnb'],
extends: ['airbnb-base', 'plugin:prettier/recommended'],
rules: {
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'unknown', 'parent', 'sibling', 'index', 'object', 'type'],
pathGroups: [
{
pattern: '~/**',
group: 'internal',
},
{
pattern: '../**',
group: 'parent',
position: 'before',
},
{
pattern: './**',
group: 'sibling',
position: 'after',
},
],
'newlines-between': 'never',
pathGroupsExcludedImportTypes: ['builtin'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
'import/no-anonymous-default-export': 0,
'import/no-import-module-exports': 0,
'import/prefer-default-export': 0,
'no-import-assign': 0,
'no-underscore-dangle': 0,
'prefer-regex-literals': 0,
'class-methods-use-this': 0,
'default-param-last': 0,
'max-len': [
'error',
prettierConfig.printWidth,
2,
{
ignoreUrls: true,
ignoreComments: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
},
settings: {
'import/resolver': {
alias: {
map: [['~', './src']],
extensions: ['.js', '.jsx', '.json'],
},
},
},
parserOptions: {
ecmaVersion: 2020,
},
parser: 'babel-eslint',
env: {
node: true,
browser: true,
},
};
1 change: 1 addition & 0 deletions packages/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pkg
node_modules
.DS_Store
dist
35 changes: 35 additions & 0 deletions packages/client/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": true,
"dynamicImport": true,
"privateMethod": false,
"functionBind": false,
"exportDefaultFrom": true,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"topLevelAwait": false,
"importMeta": false
},
"target": "es2015",
"loose": false,
"externalHelpers": true,
"keepClassNames": false,
"transform": {
"react": {
"runtime": "automatic"
}
},
"paths": {
"~/*": ["./*"]
},
"baseUrl": "src"
},
"minify": false
}
Loading

0 comments on commit e5c5d52

Please sign in to comment.