Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
feat: initialize timeline-patient app codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
BPierrick committed Nov 26, 2021
1 parent 6ec655a commit a22eeda
Show file tree
Hide file tree
Showing 70 changed files with 6,651 additions and 8,860 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_API_URL=https://sandbox.arkhn.com/hapi/
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/index.tsx":"1","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/store.ts":"2","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/App.tsx":"3","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/services/api/api.ts":"4","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/services/api/apiBaseQuery.ts":"5","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/constants.ts":"6","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/routes/Router.tsx":"7","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/routes/PageNotFound.tsx":"8","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/common/hooks/useTheme.ts":"9","/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/locales/i18n.ts":"10"},{"size":659,"mtime":1636468148697,"results":"11","hashOfConfig":"12"},{"size":995,"mtime":1636466109077,"results":"13","hashOfConfig":"12"},{"size":375,"mtime":1636468090152,"results":"14","hashOfConfig":"12"},{"size":237,"mtime":1636466115466,"results":"15","hashOfConfig":"12"},{"size":349,"mtime":1636465295388,"results":"16","hashOfConfig":"12"},{"size":407,"mtime":1636465460796,"results":"17","hashOfConfig":"12"},{"size":675,"mtime":1636470745697,"results":"18","hashOfConfig":"12"},{"size":372,"mtime":1636466728734,"results":"19","hashOfConfig":"12"},{"size":3973,"mtime":1636467951280,"results":"20","hashOfConfig":"12"},{"size":638,"mtime":1636466323639,"results":"21","hashOfConfig":"12"},{"filePath":"22","messages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"g6m630",{"filePath":"24","messages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"27","messages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"31","messages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"35","messages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/index.tsx",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/store.ts",[],[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/App.tsx",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/services/api/api.ts",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/services/api/apiBaseQuery.ts",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/constants.ts",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/routes/Router.tsx",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/app/routes/PageNotFound.tsx",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/common/hooks/useTheme.ts",[],"/Users/arkhn-mac-pbe/arkhn/timeline-patient/src/locales/i18n.ts",[]]
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/*.generated.ts
src/serviceWorker.ts
src/setupTests.ts
72 changes: 72 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
],
plugins: [
"react",
"react-hooks",
"jsx-a11y",
"import",
"prettier",
"@typescript-eslint",
],
settings: {
"import/resolver": {
node: {
paths: ["src"],
},
},
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
rules: {
// prettier
"prettier/prettier": ["error"],
// TypeScript
"no-unused-vars": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
// React
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
"react/prop-types": [2, { ignore: ["children"] }],
// React hooks
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// import
"import/order": [
"error",
{
groups: ["builtin", "external", "internal"],
pathGroups: [
{
pattern: "react",
group: "external",
position: "before",
},
],
pathGroupsExcludedImportTypes: ["react"],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
};
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore artifacts:
build
coverage

# Ignore all HTML files:
*.html
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit a22eeda

Please sign in to comment.