[Snyk] Security upgrade canvas from 2.8.0 to 3.0.0 #72
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
name: Linters | |
on: pull_request | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
lighthouse: | |
name: Lighthouse | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Lighthouse | |
run: npm install -g @lhci/cli@0.7.x | |
- name: Lighthouse Report | |
run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. | |
webhint: | |
name: Webhint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Webhint | |
run: | | |
npm install --save-dev hint@6.x | |
[ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc | |
- name: Webhint Report | |
run: npx hint . | |
stylelint: | |
name: Stylelint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Stylelint | |
run: | | |
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x | |
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json | |
- name: Stylelint Report | |
run: npx stylelint "**/*.{css,scss}" | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup ESLint | |
run: | | |
npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x | |
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json | |
- name: ESLint Report | |
run: npx eslint . |