-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 1a83857
Showing
18 changed files
with
603 additions
and
0 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,20 @@ | ||
.DS_Store | ||
.dockerignore | ||
.editorconfig | ||
.eslintrc.json | ||
.gitattributes | ||
.gitignore | ||
.prettierignore | ||
.pre-commit-config.yaml | ||
/.git | ||
/.github | ||
/.idea | ||
/build | ||
/node_modules | ||
/pages | ||
Dockerfile | ||
Makefile | ||
README.md | ||
docker-compose.yml | ||
package-lock.json | ||
package.json |
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,12 @@ | ||
[*.js] | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[package.json] | ||
indent_style = space | ||
indent_size = 2 |
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,274 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": { | ||
"accessor-pairs": "error", | ||
"array-bracket-newline": "error", | ||
"array-bracket-spacing": "off", | ||
"array-callback-return": "off", | ||
"array-element-newline": "off", | ||
"arrow-body-style": "error", | ||
"arrow-parens": "off", | ||
"arrow-spacing": [ | ||
"error", | ||
{ | ||
"after": true, | ||
"before": true | ||
} | ||
], | ||
"block-scoped-var": "off", | ||
"block-spacing": "off", | ||
"brace-style": "off", | ||
"camelcase": "off", | ||
"capitalized-comments": "off", | ||
"class-methods-use-this": "error", | ||
"comma-dangle": "off", | ||
"comma-spacing": "off", | ||
"comma-style": [ | ||
"error", | ||
"last" | ||
], | ||
"complexity": "off", | ||
"computed-property-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"consistent-return": "off", | ||
"consistent-this": "off", | ||
"curly": "off", | ||
"default-case": "error", | ||
"default-case-last": "off", | ||
"default-param-last": "error", | ||
"dot-location": [ | ||
"error", | ||
"property" | ||
], | ||
"dot-notation": "off", | ||
"eol-last": "off", | ||
"eqeqeq": "off", | ||
"func-call-spacing": "error", | ||
"func-name-matching": "error", | ||
"func-names": "off", | ||
"func-style": "off", | ||
"function-call-argument-newline": [ | ||
"error", | ||
"consistent" | ||
], | ||
"function-paren-newline": "off", | ||
"generator-star-spacing": "error", | ||
"grouped-accessor-pairs": "error", | ||
"guard-for-in": "off", | ||
"id-denylist": "error", | ||
"id-length": "off", | ||
"id-match": "error", | ||
"implicit-arrow-linebreak": "off", | ||
"indent": "off", | ||
"init-declarations": "off", | ||
"jsx-quotes": "error", | ||
"key-spacing": "off", | ||
"keyword-spacing": "off", | ||
"line-comment-position": "off", | ||
"linebreak-style": "off", | ||
"lines-around-comment": "off", | ||
"lines-between-class-members": "error", | ||
"max-classes-per-file": "error", | ||
"max-depth": "off", | ||
"max-len": "off", | ||
"max-lines": "off", | ||
"max-lines-per-function": "off", | ||
"max-nested-callbacks": "error", | ||
"max-params": "off", | ||
"max-statements": "off", | ||
"max-statements-per-line": "off", | ||
"multiline-comment-style": "off", | ||
"multiline-ternary": [ | ||
"error", | ||
"always-multiline" | ||
], | ||
"new-parens": "off", | ||
"newline-per-chained-call": "off", | ||
"no-alert": "error", | ||
"no-array-constructor": "error", | ||
"no-await-in-loop": "error", | ||
"no-bitwise": "off", | ||
"no-caller": "error", | ||
"no-confusing-arrow": "off", | ||
"no-console": "off", | ||
"no-constructor-return": "error", | ||
"no-continue": "off", | ||
"no-div-regex": "error", | ||
"no-duplicate-imports": "error", | ||
"no-else-return": "off", | ||
"no-empty": [ | ||
"error", | ||
{ | ||
"allowEmptyCatch": true | ||
} | ||
], | ||
"no-empty-function": "off", | ||
"no-eq-null": "off", | ||
"no-eval": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-label": "error", | ||
"no-extra-parens": "off", | ||
"no-floating-decimal": "off", | ||
"no-implicit-globals": "off", | ||
"no-implied-eval": "error", | ||
"no-inline-comments": "off", | ||
"no-inner-declarations": [ | ||
"error", | ||
"functions" | ||
], | ||
"no-invalid-this": "off", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": "error", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "off", | ||
"no-loss-of-precision": "error", | ||
"no-magic-numbers": "off", | ||
"no-mixed-operators": "off", | ||
"no-multi-assign": "off", | ||
"no-multi-spaces": "off", | ||
"no-multi-str": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-negated-condition": "off", | ||
"no-nested-ternary": "off", | ||
"no-new": "off", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-wrappers": "error", | ||
"no-nonoctal-decimal-escape": "error", | ||
"no-octal-escape": "error", | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"no-promise-executor-return": "error", | ||
"no-proto": "error", | ||
"no-restricted-exports": "error", | ||
"no-restricted-globals": "error", | ||
"no-restricted-imports": "error", | ||
"no-restricted-properties": "error", | ||
"no-restricted-syntax": "error", | ||
"no-return-assign": "off", | ||
"no-return-await": "error", | ||
"no-script-url": "error", | ||
"no-self-assign": [ | ||
"error", | ||
{ | ||
"props": false | ||
} | ||
], | ||
"no-self-compare": "off", | ||
"no-sequences": "off", | ||
"no-shadow": "off", | ||
"no-tabs": "off", | ||
"no-template-curly-in-string": "error", | ||
"no-ternary": "off", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "off", | ||
"no-undef-init": "error", | ||
"no-undefined": "error", | ||
"no-underscore-dangle": "off", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unreachable-loop": "off", | ||
"no-unsafe-optional-chaining": "error", | ||
"no-unused-expressions": "off", | ||
"no-use-before-define": "off", | ||
"no-useless-backreference": "error", | ||
"no-useless-call": "off", | ||
"no-useless-computed-key": "error", | ||
"no-useless-concat": "error", | ||
"no-useless-constructor": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-var": "off", | ||
"no-void": "off", | ||
"no-warning-comments": "error", | ||
"no-whitespace-before-property": "error", | ||
"nonblock-statement-body-position": [ | ||
"error", | ||
"any" | ||
], | ||
"object-curly-newline": "off", | ||
"object-curly-spacing": "off", | ||
"object-shorthand": "off", | ||
"one-var": "off", | ||
"one-var-declaration-per-line": "off", | ||
"operator-assignment": [ | ||
"error", | ||
"always" | ||
], | ||
"operator-linebreak": "off", | ||
"padded-blocks": "off", | ||
"padding-line-between-statements": "error", | ||
"prefer-arrow-callback": "off", | ||
"prefer-const": "off", | ||
"prefer-destructuring": "off", | ||
"prefer-exponentiation-operator": "off", | ||
"prefer-named-capture-group": "off", | ||
"prefer-numeric-literals": "error", | ||
"prefer-object-spread": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"prefer-regex-literals": "error", | ||
"prefer-rest-params": "off", | ||
"prefer-spread": "off", | ||
"prefer-template": "off", | ||
"quote-props": "off", | ||
"quotes": "off", | ||
"radix": "off", | ||
"require-atomic-updates": "error", | ||
"require-await": "error", | ||
"require-unicode-regexp": "off", | ||
"rest-spread-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"semi": "off", | ||
"semi-spacing": "off", | ||
"semi-style": [ | ||
"error", | ||
"last" | ||
], | ||
"sort-imports": "error", | ||
"sort-keys": "off", | ||
"sort-vars": "off", | ||
"space-before-blocks": "off", | ||
"space-before-function-paren": "off", | ||
"space-in-parens": "off", | ||
"space-infix-ops": "off", | ||
"space-unary-ops": "off", | ||
"spaced-comment": "off", | ||
"strict": "off", | ||
"switch-colon-spacing": [ | ||
"error", | ||
{ | ||
"after": false, | ||
"before": false | ||
} | ||
], | ||
"symbol-description": "error", | ||
"template-curly-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"template-tag-spacing": "error", | ||
"unicode-bom": [ | ||
"error", | ||
"never" | ||
], | ||
"vars-on-top": "off", | ||
"wrap-iife": "off", | ||
"wrap-regex": "off", | ||
"yield-star-spacing": "error", | ||
"yoda": "off" | ||
} | ||
} |
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 @@ | ||
.dockerignore export-ignore | ||
.editorconfig export-ignore | ||
.eslintrc.json export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
/.github export-ignore | ||
/build export-ignore | ||
/node_modules export-ignore | ||
/pages export-ignore | ||
Dockerfile export-ignore | ||
Makefile export-ignore | ||
README.md export-ignore | ||
docker-compose.yml export-ignore | ||
package-lock.json export-ignore | ||
package.json export-ignore |
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,27 @@ | ||
name: Lint and Prettier Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run ESLint | ||
run: npm run lint | ||
|
||
- name: Run Prettier check | ||
run: npm run prettier |
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,36 @@ | ||
name: Deploy to Pages | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Build | ||
run: make build && make pages | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'pages' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,4 @@ | ||
.idea | ||
build/ | ||
node_modules/ | ||
pages/ |
Oops, something went wrong.