Skip to content

Commit 9836abd

Browse files
authored
Merge pull request #27 from MFB-Technologies-Inc/26-upgrade-dependencies
26 upgrade dependencies
2 parents bf9fa2d + 80fa1f2 commit 9836abd

File tree

9 files changed

+4443
-9952
lines changed

9 files changed

+4443
-9952
lines changed

.eslintrc.js

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,74 @@
11
// Copyright 2022 MFB Technologies, Inc.
22

33
module.exports = {
4+
settings: {
5+
react: {
6+
version: "detect"
7+
}
8+
},
9+
parser: "@typescript-eslint/parser",
10+
parserOptions: {
11+
ecmaVersion: "latest",
12+
sourceType: "module",
13+
ecmaFeatures: {
14+
jsx: true
15+
},
16+
project: ["./tsconfig.json"]
17+
},
18+
env: {
19+
es6: true,
20+
browser: true,
21+
node: true
22+
},
23+
ignorePatterns: ".eslintrc.js",
424
extends: [
5-
"react-app"
25+
"plugin:react/recommended",
26+
"plugin:react-hooks/recommended",
27+
"plugin:@typescript-eslint/recommended-type-checked",
28+
"plugin:react/jsx-runtime"
629
],
730
overrides: [
831
{
9-
files: ["**/*.ts?(x)"],
32+
files: ["*.ts", "*.tsx"],
1033
rules: {
34+
"no-void": [1, { allowAsStatement: true }],
1135
"@typescript-eslint/no-explicit-any": 0,
1236
"@typescript-eslint/consistent-type-definitions": [1, "type"],
1337
"@typescript-eslint/typedef": 0,
38+
"@typescript-eslint/naming-convention": [
39+
"error",
40+
{
41+
selector: "parameter",
42+
format: ["camelCase"],
43+
leadingUnderscore: "allow"
44+
}
45+
],
46+
"@typescript-eslint/no-floating-promises": [
47+
1,
48+
{
49+
ignoreVoid: true
50+
}
51+
],
52+
"react-hooks/rules-of-hooks": "error",
53+
"react-hooks/exhaustive-deps": "warn",
54+
"react/forbid-foreign-prop-types": ["warn", { allowInPropTypes: true }],
55+
"react/jsx-no-comment-textnodes": "warn",
56+
"react/jsx-no-duplicate-props": "warn",
57+
"react/jsx-no-target-blank": "warn",
58+
"react/jsx-no-undef": "error",
59+
"react/jsx-pascal-case": [
60+
"warn",
61+
{
62+
allowAllCaps: true,
63+
ignore: []
64+
}
65+
],
66+
"react/no-danger-with-children": "warn",
67+
"react/no-direct-mutation-state": "warn",
68+
"react/no-is-mounted": "warn",
69+
"react/no-typos": "error",
70+
"react/require-render-return": "error",
71+
"react/style-prop-object": "warn"
1472
}
1573
}
1674
]

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"editor.tabSize": 2,
33
"editor.detectIndentation": true,
4+
"typescript.enablePromptUseWorkspaceTsdk": true,
45
"typescript.tsdk": "./node_modules/typescript/lib",
56
"editor.defaultFormatter": "esbenp.prettier-vscode",
67
"editor.formatOnSave": true,

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bullseye
1+
FROM debian:bookworm
22
ARG USERNAME=vscode
33
RUN apt-get update
44
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
@@ -24,9 +24,12 @@ RUN mkdir -p -m 0700 ~/.ssh
2424
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts
2525
SHELL ["/bin/bash", "--login", "-c"]
2626
# install nvm with a specified version of node
27-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
27+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
2828
&& . ~/.nvm/nvm.sh \
29-
&& nvm install --lts=gallium
29+
&& nvm install --lts=hydrogen \
30+
&& npm install -g [email protected]
31+
# install npm updates
32+
# RUN
3033
# clone repo
3134
RUN --mount=type=ssh,uid=1002 git clone [email protected]:MFB-Technologies-Inc/react-async-renderer /home/$USERNAME/workspace/react-async-renderer
3235
# set working dir

0 commit comments

Comments
 (0)