Configure Renovate #36
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: | |
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 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] @babel/[email protected] @babel/[email protected] @babel/[email protected] @babel/[email protected] @babel/[email protected] | |
[ -f .eslintrc.json ] || wget https://gist.githubusercontent.com/ReshyResh/e42421830cc3bab992fe9e585642650c/raw/ff8a7b02e53be47c9d2ffb3749109bd3cb3c2833/.eslintrc.json | |
[ -f .babelrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.babelrc | |
- name: ESLint Report | |
run: npx eslint . | |
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 [email protected] [email protected] [email protected] [email protected] | |
[ -f .stylelintrc.json ] || wget https://gist.githubusercontent.com/ReshyResh/f8ec5ed8bd0b5f4887524e0e77a4e1fc/raw/1e09e8ddc830a3a8af1800b791e238a50ccb33e9/.stylelintrc.json | |
- name: Stylelint Report | |
run: npx stylelint "**/*.{css,scss}" |