Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/assets/**
21 changes: 13 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
"es2021": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"requireConfigFile": false,
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": ["airbnb-base"],
"extends": [
"airbnb-base"
],
"rules": {
"no-console": "off",
"no-shadow": "off",
"no-param-reassign": "off",
"eol-last": "off"
"import/extensions": "off",
"import/prefer-default-export": "off"
},
"ignorePatterns": [
"dist/",
"build/"
"build/",
"public/"
]
}
}
2 changes: 1 addition & 1 deletion .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
main.js,1769246281630,5c59050b53e0ed07234a480a28706d0f2738f146850cbe8dee18bc66ecf2f9c5
index.html,1769412878248,7965fe79ee66b508024c6d95bd69866f94f42745ed573de125ac2536012ca0cb
index.html,1769508903626,d2bc1b2b52afeb023589af65fdffa4130c453a8ede4736ff8d41e98f408a64a6
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on:
workflow_run:
workflows: ["Linters"]
types:
- completed

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
- run: npm test
- run: npm run build
4 changes: 4 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jobs:
deploy:
if: false
runs-on: ubuntu-latest
5 changes: 5 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jobs:
deploy:
if: false
runs-on: ubuntu-latest
environment: production
42 changes: 15 additions & 27 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
name: Linters

on: pull_request
on:
pull_request:
branches: [development, main]

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 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/javascript/.eslintrc.json
- name: ESLint Report
run: npx eslint .
stylelint:
name: Stylelint
runs-on: ubuntu-18.04
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
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/javascript/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
node-version: 20
cache: npm

- run: npm ci
- run: npm run lint:js
- run: npm run lint:css
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/assets/**
19 changes: 13 additions & 6 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-scss", "stylelint-csstree-validator"],
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-scss"
],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"csstree/validator": true
"scss/at-rule-no-unknown": true
},
"ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css"]
}
"ignoreFiles": [
"dist/**",
"build/**",
"public/**"
]
}
Loading