Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f10b4f5
Add package-lock.json
webfashionist Jan 12, 2024
2af3067
Bump the npm_and_yarn group across 1 directories with 7 updates
dependabot[bot] Jan 12, 2024
3ffd43b
Merge pull request #2 from webfashionist/dependabot/npm_and_yarn/npm_…
webfashionist Jan 12, 2024
d4df79c
Bump the npm_and_yarn group across 1 directories with 7 updates
dependabot[bot] Jan 12, 2024
38d1491
Merge pull request #3 from webfashionist/dependabot/npm_and_yarn/npm_…
webfashionist Jan 12, 2024
0a86553
Bump the npm_and_yarn group across 1 directories with 1 update
dependabot[bot] Jan 12, 2024
9bfc5a4
Merge pull request #5 from webfashionist/dependabot/npm_and_yarn/npm_…
webfashionist Jan 12, 2024
035b4ed
Bump the npm_and_yarn group across 1 directories with 1 update
dependabot[bot] Jan 12, 2024
c943db9
Merge pull request #6 from webfashionist/dependabot/npm_and_yarn/npm_…
webfashionist Jan 12, 2024
21ec2c7
Bump the npm_and_yarn group across 1 directories with 2 updates
dependabot[bot] Jan 12, 2024
e36d597
Merge pull request #7 from webfashionist/dependabot/npm_and_yarn/npm_…
webfashionist Jan 12, 2024
ae03202
Replace outdated package with security warnings
webfashionist Jan 12, 2024
c4d2017
Fix .eslintrc based on eslint rules
webfashionist Jan 12, 2024
9c281cf
Add Github lint workflow
webfashionist Jan 12, 2024
4fc952c
Add additional security header check
webfashionist Jan 12, 2024
3e93004
Replace axe-puppeteer package
webfashionist Jan 12, 2024
daf5023
Fix multiple errors and issues
webfashionist Jan 12, 2024
a057238
Fix eslint error
webfashionist Jan 12, 2024
33e5cc5
Add husky
webfashionist Jan 12, 2024
dcbff10
Fix error in SSLLabs
webfashionist Jan 17, 2024
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
14 changes: 7 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ module.exports = {
globals: {
module: true,
require: true,
'URLS': 'readonly',
'DATA': 'writable',
'CHROME': 'readonly',
URLS: 'readonly',
DATA: 'writable',
CHROME: 'readonly',
},
env: {
es6: true,
node: true
node: true,
},
rules: {
'indent': ['error', 4],
'semi': ['error', 'always'],
indent: ['error', 4],
semi: ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'multiline-ternary': ['error', 'always-multiline'],
}
},
};
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linting
on:
push:
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7.0.7
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: npm i
- name: Run ESLint
run: ./node_modules/eslint/bin/eslint.js . --ext .js,.jsx,.ts,.tsx
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

printf "\nChecking if code compiles. Please wait...\n"
npm run build

printf "\nLinting. Please wait...\n"
./node_modules/eslint/bin/eslint.js . --fix
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ weblyse({
})
.finally(() => {
// that's needed to end your node process
process.exit(0);
process.exit(0);
});
77,583 changes: 54,033 additions & 23,550 deletions example/report.json

Large diffs are not rendered by default.

Loading