Skip to content

Commit

Permalink
Add ESLint, add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TAEMBO committed Apr 22, 2024
1 parent ed0e7cf commit b91c667
Show file tree
Hide file tree
Showing 11 changed files with 5,243 additions and 174 deletions.
57 changes: 57 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-floating-promises": "error",
"no-multiple-empty-lines": [
"error",
{ "max": 1 }
],
"indent": [
"error",
4,
{ "SwitchCase": 1 }
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
push:
branches:
- "main"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
- run: npm ci
- run: |
echo $CONFIG_JSON > ./src/config.json
env:
CONFIG_JSON: ${{ secrets.CONFIG_FILE }}
- run: npm run build
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ node_modules

dist

package-lock.json

config.json
Loading

0 comments on commit b91c667

Please sign in to comment.