Skip to content

Commit

Permalink
Merge pull request #27 from MFB-Technologies-Inc/26-upgrade-dependencies
Browse files Browse the repository at this point in the history
26 upgrade dependencies
  • Loading branch information
lemke-ethan authored Oct 20, 2023
2 parents bf9fa2d + 80fa1f2 commit 9836abd
Show file tree
Hide file tree
Showing 9 changed files with 4,443 additions and 9,952 deletions.
62 changes: 60 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,74 @@
// Copyright 2022 MFB Technologies, Inc.

module.exports = {
settings: {
react: {
version: "detect"
}
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true
},
project: ["./tsconfig.json"]
},
env: {
es6: true,
browser: true,
node: true
},
ignorePatterns: ".eslintrc.js",
extends: [
"react-app"
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:react/jsx-runtime"
],
overrides: [
{
files: ["**/*.ts?(x)"],
files: ["*.ts", "*.tsx"],
rules: {
"no-void": [1, { allowAsStatement: true }],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/consistent-type-definitions": [1, "type"],
"@typescript-eslint/typedef": 0,
"@typescript-eslint/naming-convention": [
"error",
{
selector: "parameter",
format: ["camelCase"],
leadingUnderscore: "allow"
}
],
"@typescript-eslint/no-floating-promises": [
1,
{
ignoreVoid: true
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/forbid-foreign-prop-types": ["warn", { allowInPropTypes: true }],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-target-blank": "warn",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": [
"warn",
{
allowAllCaps: true,
ignore: []
}
],
"react/no-danger-with-children": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-typos": "error",
"react/require-render-return": "error",
"react/style-prop-object": "warn"
}
}
]
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"editor.tabSize": 2,
"editor.detectIndentation": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
Expand Down
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye
FROM debian:bookworm
ARG USERNAME=vscode
RUN apt-get update
RUN apt-get -y install git fzf ripgrep curl python3 ssh sudo locales gnupg lsb-release libnss3-tools gstreamer1.0-gl gstreamer1.0-plugins-ugly
Expand All @@ -24,9 +24,12 @@ RUN mkdir -p -m 0700 ~/.ssh
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts
SHELL ["/bin/bash", "--login", "-c"]
# install nvm with a specified version of node
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& . ~/.nvm/nvm.sh \
&& nvm install --lts=gallium
&& nvm install --lts=hydrogen \
&& npm install -g [email protected]
# install npm updates
# RUN
# clone repo
RUN --mount=type=ssh,uid=1002 git clone [email protected]:MFB-Technologies-Inc/react-async-renderer /home/$USERNAME/workspace/react-async-renderer
# set working dir
Expand Down
Loading

0 comments on commit 9836abd

Please sign in to comment.