Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linting #44

Merged
merged 2 commits into from
Jul 3, 2024
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
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Linting

on:
pull_request_target:
branches:
- main
workflow_dispatch:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Install dependencies
run: yarn install

- name: Validate
run: yarn run validate

- name: Run WebPageTest with unit tests
id: unit-test
run: yarn run lint
16 changes: 8 additions & 8 deletions src/technologies/a.json
Original file line number Diff line number Diff line change
Expand Up @@ -2461,12 +2461,6 @@
],
"cpe": "cpe:2.3:a:aioseo:all_in_one_seo:*:*:*:*:*:wordpress:*:*",
"description": "All in One SEO optimizes a WordPress website and its content for search engines.",
"meta": {
"generator": [
"^All in One SEO \\(AIOSEO\\) ([\\d\\.]+)\\;version:\\1",
"^All in One SEO Pro \\(AIOSEO\\) ([\\d\\.]+)\\;version:Pro \\1"
]
},
"dom": {
"script.aioseo-schema": {}
},
Expand All @@ -2476,13 +2470,19 @@
"<!-- All in One SEO Pro ([\\d.]+) \\;version:Pro \\1"
],
"icon": "AIOSEO.svg",
"implies": "WordPress",
"meta": {
"generator": [
"^All in One SEO \\(AIOSEO\\) ([\\d\\.]+)\\;version:\\1",
"^All in One SEO Pro \\(AIOSEO\\) ([\\d\\.]+)\\;version:Pro \\1"
]
},
"oss": true,
"pricing": [
"freemium",
"low",
"recurring"
],
"implies": "WordPress",
],
"website": "https://aioseo.com"
},
"Alli": {
Expand Down
2 changes: 1 addition & 1 deletion src/technologies/b.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
],
"description": "Beaver Builder is a drag and drop page builder for WordPress.",
"dom": "body[class*='fl-builder'], link[id*='fl-builder']",
"html": [
"html": [
"<body[^>]+fl-builder"
],
"icon": "beaver-builder-icon.png",
Expand Down
2 changes: 1 addition & 1 deletion src/technologies/s.json
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,7 @@
},
"Shopify": {
"cats": [
6,
6,
1
],
"cookies": {
Expand Down
2 changes: 2 additions & 0 deletions tests/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function runWPTTest(url) {
return new Promise((resolve, reject) => {
wpt.runTestAndWait(url, options, (error, response) => {
if (error || response.statusCode !== 200) {
// eslint-disable-next-line no-console
console.error(`WPT test run for ${url} failed:`)
// eslint-disable-next-line no-console
console.error(error || response)
reject(error || response)
} else {
Expand Down