Skip to content

Commit

Permalink
misc files
Browse files Browse the repository at this point in the history
  • Loading branch information
vsdepontes committed Jun 20, 2022
1 parent 0e97a00 commit 2c6b50e
Show file tree
Hide file tree
Showing 7 changed files with 453 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# compiled output
/dist
/node_modules

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output
test
*.spec.ts

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Dev
.eslintrc.json

# Git / GitHub
.git/
.github/
.gitignore
README.md

# New Relic
newrelic_agent.log
newrelic.js

# Secrets
.env
200 changes: 200 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-constructor-return": [
"error"
],
"no-duplicate-imports": [
"error"
],
"no-self-compare": [
"error"
],
"no-unreachable-loop": [
"error"
],
"no-unused-private-class-members": [
"error"
],
"no-use-before-define": [
"error"
],
"camelcase": [
"error"
],
"consistent-this": [
"error"
],
"dot-notation": [
"warn"
],
"eqeqeq": [
"error"
],
"id-length": [
"error"
],
"max-classes-per-file": [
"error"
],
"max-depth": [
"error",
3
],
"max-lines-per-function": [
"warn",
{
"max": 35,
"skipBlankLines": true,
"skipComments": true
}
],
"max-params": [
"warn",
3
],
"no-empty-function": [
"error",
{ "allow": ["constructors"] }
],
"no-eval": [
"error"
],
"no-eq-null": [
"error"
],
"no-invalid-this": [
"error"
],
"no-magic-numbers": [
"error",
{
"ignoreArrayIndexes": true,
"ignore": [0, 1]
}
],
"no-return-await": [
"warn"
],
"no-script-url": [
"error"
],
"no-var": [
"error"
],
"prefer-const": [
"error"
],
"prefer-object-has-own": [
"error"
],
"prefer-object-spread": [
"error"
],
"require-await": [
"error"
],
"yoda": [
"error"
],
"array-bracket-spacing": [
"error"
],
"block-spacing": [
"error"
],
"brace-style": [
"error"
],
"comma-dangle": [
"error",
"always-multiline"
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"comma-style": [
"error"
],
"dot-location": [
"error",
"property"
],
"key-spacing": [
"error"
],
"keyword-spacing": [
"error"
],
"max-len": [
"error",
{
"code": 120
}
],
"max-statements-per-line": [
"error"
],
"new-parens": [
"error"
],
"no-multi-spaces": [
"error"
],
"no-trailing-spaces": [
"error"
],
"no-whitespace-before-property": [
"error"
],
"operator-linebreak": [
"error",
"after"
],
"rest-spread-spacing": [
"error",
"never"
],
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": [
"error"
],
"space-unary-ops": [
"error"
]
}
}
73 changes: 73 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
branches:
- main
schedule:
- cron: "43 14 * * 2"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ "typescript" ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to Heroku

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release on Heroku
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
process_type: web
33 changes: 33 additions & 0 deletions .github/workflows/eslint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ESLint Check

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
branches:
- main

jobs:
eslint:
name: ESLint Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Prepare Node
uses: actions/setup-node@v2
with:
node-version: 16
cache: "npm"

- name: Node Install
run: npm ci

- uses: sibiraj-s/action-eslint@v2
with:
eslint-args: "--ignore-path=.gitignore --quiet"
extensions: "ts"
annotations: true
Loading

0 comments on commit 2c6b50e

Please sign in to comment.