-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from AmoebeLabs/devcontainer
- Loading branch information
Showing
40 changed files
with
23,098 additions
and
4 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,42 @@ | ||
{ | ||
"name": "Swiss Army Knife Development", | ||
|
||
// Open the sub-folder with the source code | ||
"workspaceFolder": "/workspaces/swiss-army-knife-card", | ||
|
||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"remoteUser": "vscode", | ||
"appPort": ["6000:6000", "9123:8123"], | ||
// "postCreateCommand": "yarn install && sudo container install", | ||
// "runArgs": ["-v", "${localWorkspaceFolder}/.devcontainer/www:/config/www"], | ||
"customizations/vscode/extensions": [ | ||
"github.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"bierner.lit-html", | ||
"runem.lit-plugin", | ||
"davidanson.vscode-markdownlint", | ||
"redhat.vscode-yaml", | ||
"msjsdiag.debugger-for-chrome", | ||
"yzhang.markdown-all-in-one" | ||
], | ||
"customizations/vscode/settings": { | ||
"files.eol": "\n", | ||
"editor.tabSize": 2, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"markdown.extension.toc.githubCompatibility": true, | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/.git/subtree-cache/**": true, | ||
"**/node_modules/**": true, | ||
"**/.hg/store/**": true, | ||
"**/.rpt2_cache/**": true | ||
} | ||
} | ||
} |
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,42 @@ | ||
{ | ||
"name": "Swiss Army Knife Development", | ||
|
||
// Open the sub-folder with the source code | ||
"workspaceFolder": "/workspaces/swiss-army-knife-card", | ||
|
||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"remoteUser": "vscode", | ||
"appPort": ["5000:5000", "9123:8123"], | ||
// "postCreateCommand": "yarn install && sudo container install", | ||
// "runArgs": ["-v", "${localWorkspaceFolder}/.devcontainer/www:/config/www"], | ||
"customizations/vscode/extensions": [ | ||
"github.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"bierner.lit-html", | ||
"runem.lit-plugin", | ||
"davidanson.vscode-markdownlint", | ||
"redhat.vscode-yaml", | ||
"msjsdiag.debugger-for-chrome", | ||
"yzhang.markdown-all-in-one" | ||
], | ||
"customizations/vscode/settings": { | ||
"files.eol": "\n", | ||
"editor.tabSize": 2, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"markdown.extension.toc.githubCompatibility": true, | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/.git/subtree-cache/**": true, | ||
"**/node_modules/**": true, | ||
"**/.hg/store/**": true, | ||
"**/.rpt2_cache/**": true | ||
} | ||
} | ||
} |
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,99 @@ | ||
extends: airbnb-base | ||
parserOptions: | ||
ecmaVersion: 2022 | ||
sourceType: module | ||
ignorePatterns: | ||
- /distjs/* | ||
- /dist/* | ||
- /src/swiss-army-knife-card.js | ||
rules: | ||
no-else-return: 0 | ||
no-underscore-dangle: 0 | ||
nonblock-statement-body-position: 0 | ||
# curly checks for all {} after if for instance | ||
curly: 0 | ||
no-return-assign: 0 | ||
consistent-return: 0 | ||
no-mixed-operators: 0 | ||
class-methods-use-this: 0 | ||
no-nested-ternary: 0 | ||
camelcase: 0 | ||
# Added for convenience to check eslint... | ||
# Settings handled: | ||
no-param-reassign: 0 | ||
max-len: | ||
- warn | ||
- code: 220 | ||
ignoreComments: true | ||
eqeqeq: 1 | ||
brace-style: 1 | ||
# - Prevent warnings in logging and multiple params on one line | ||
function-call-argument-newline: 0 | ||
function-paren-newline: 0 | ||
# - Allow i++ / i-- in for loops | ||
no-plusplus: | ||
- warn | ||
- allowForLoopAfterthoughts: true | ||
no-irregular-whitespace: 0 | ||
no-bitwise: | ||
- warn | ||
- allow: | ||
- "~" | ||
# - Disable .js import warnings | ||
import/extensions: 0 | ||
# - Allow the use of console.() | ||
no-console: 0 | ||
# - Allow for calling .hasOwnProperty for instance directly | ||
no-prototype-builtins: 0 | ||
# - Allow as-needed function names | ||
func-names: | ||
- warn | ||
- as-needed | ||
# - Just let me index arrays and get data from them | ||
prefer-destructuring: 0 | ||
# - For now, keep using things like isNaN() as Number.isNan() is incompatible. | ||
# Ignore the eslint advice to replace them. As a result everything crashes... | ||
no-restricted-globals: 0 | ||
# Ignore identiation for now | ||
indent: 0 | ||
no-unreachable: 0 | ||
# THINGS THAT MUST BE HANDLED LATER... | ||
# - This is a thing from the segmented-arc, the only file with errors/warnings! | ||
# - Status as of 2023.05.06 13:00 | ||
block-scoped-var: 0 | ||
vars-on-top: 0 | ||
no-var: 0 | ||
no-redeclare: 0 | ||
no-setter-return: 0 | ||
no-multi-assign: 0 | ||
no-empty: 0 | ||
no-unused-vars: 0 | ||
prefer-const: 0 | ||
no-lonely-if: 0 | ||
no-shadow: 0 | ||
no-loop-func: 0 | ||
# Settings handled and NOT occuring anymore! | ||
no-undef: 2 | ||
no-use-before-define: 1 | ||
no-case-declarations: 1 | ||
no-inner-declarations: 1 | ||
array-callback-return: 1 | ||
max-classes-per-file: 1 | ||
no-new-func: 1 | ||
no-constant-condition: 1 | ||
default-case: 1 | ||
default-case-last: 1 | ||
operator-assignment: 1 | ||
no-sequences: 1 | ||
no-restricted-syntax: 1 | ||
no-unused-expressions: 1 | ||
no-useless-escape: 1 | ||
import/no-unresolved: 1 | ||
no-template-curly-in-string: 1 | ||
# Settings disabled for now, until handled | ||
|
||
globals: | ||
browser: true | ||
window: true | ||
Event: true | ||
customElements: true |
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.