-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
13,216 additions
and
16,165 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:21-slim | ||
|
||
ARG USERNAME=vscode | ||
ARG USER_UID=1100 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN apt-get update \ | ||
&& groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
&& apt-get install -y sudo \ | ||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
&& chmod 0440 /etc/sudoers.d/$USERNAME | ||
|
||
RUN apt-get -y install curl git | ||
RUN npm install -g npm |
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,24 @@ | ||
{ | ||
"name": "docker-playground - node", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "rijtwi", | ||
"workspaceFolder": "/workspace", | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"EditorConfig.EditorConfig", | ||
"dbaeumer.vscode-eslint", | ||
"stylelint.vscode-stylelint" | ||
] | ||
} | ||
}, | ||
// node_modulesをボリューム内のみに保存 | ||
"mounts": [ | ||
"source=try-node-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" | ||
], | ||
"postCreateCommand": "sudo chown vscode node_modules", | ||
"remoteUser": "vscode" | ||
} |
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,11 @@ | ||
version: '3' | ||
services: | ||
rijtwi: | ||
build: . | ||
restart: always | ||
working_dir: '/workspace' | ||
tty: true | ||
volumes: | ||
- type: bind | ||
source: ../ | ||
target: /workspace |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import html from 'eslint-plugin-html'; | ||
import js from '@eslint/js'; | ||
import typeScriptESLint from '@typescript-eslint/eslint-plugin'; | ||
import typeScriptESLintParser from '@typescript-eslint/parser'; | ||
import globals from 'globals'; | ||
|
||
const compat = new FlatCompat(); | ||
|
||
export default [ | ||
{ | ||
ignores: ['**/node_modules/**', '**/build/**', 'webpack.config.ts', '*.mjs'], | ||
}, | ||
js.configs.recommended, | ||
eslintConfigPrettier, | ||
...compat.extends('plugin:@typescript-eslint/eslint-recommended', 'plugin:prettier/recommended', 'plugin:react/recommended', 'prettier'), | ||
{ | ||
plugins: { | ||
typeScriptESLint, | ||
html, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
...globals.browser, | ||
}, | ||
parser: typeScriptESLintParser, | ||
parserOptions: { | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
ecmaVersion: 2015, | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
'no-debugger': 'error', | ||
'node/no-deprecated-api': 'off', | ||
'node/no-unpublished-import': 'off', | ||
'node/no-unpublished-require': 'off', | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
'no-process-exit': 'off', | ||
'node/no-missing-import': 'off', | ||
'no-unused-vars': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
'singleQuote': true, | ||
'printWidth': 180, | ||
} | ||
], | ||
}, | ||
}, | ||
]; |
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 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 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 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
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.