Skip to content

💄Red alert message for illegal userinput when registrating #51

💄Red alert message for illegal userinput when registrating

💄Red alert message for illegal userinput when registrating #51

Workflow file for this run

name: Check if code is formatted with Prettier and no warnings from eslint
on:
push:
branches: ['master']
pull_request:
branches: ['master']
jobs:
code_style:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- uses: actions/cache@v2
name: Configure npm caching
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Run prettier and eslint
run: |
yarn install
yarn run prettier --check './src'
yarn run eslint -c .config/.eslintrc.json --max-warnings=0 './src'