scanning 100%
++ scan time: 00:01 +
+hints
+1
+url: file:///C:/Users/AS/source/repos/GitHub/public-transport-map
+Date: 2024-07-25T08:41:11.725Z
+webhint version: 7.1.12
+diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0f98f0..2d74cdb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Deploy to GitHub Pages on: push: - branches: [ master ] + branches: [master] jobs: build: @@ -27,17 +27,17 @@ jobs: - name: Run linter run: npm run lint + - name: Run hint + run: npm run hint + - name: Run tests run: npm test - name: Build project run: npm run build - #- name: Deploy to GitHub Pages - # uses: peaceiris/actions-gh-pages@v4 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # publish_dir: ./dist - - - name: Serve the project - run: npm run deploy + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist diff --git a/.hintrc b/.hintrc new file mode 100644 index 0000000..b3e95e1 --- /dev/null +++ b/.hintrc @@ -0,0 +1,11 @@ +{ + "extends": [ + "development" + ], + "hints": { + "x-content-type-options": "error", + "http-cache": ["error", { + "revvingPatterns": ["\\/\\d+\\/\\w+\\.\\w{1,3}"] + }] + } +} \ No newline at end of file diff --git a/hint-report/file--C--Users-AS-source-repos-GitHub-public-transport-map.html b/hint-report/file--C--Users-AS-source-repos-GitHub-public-transport-map.html new file mode 100644 index 0000000..44df22e --- /dev/null +++ b/hint-report/file--C--Users-AS-source-repos-GitHub-public-transport-map.html @@ -0,0 +1,2969 @@ + + +
+ +scanning 100%
++ scan time: 00:01 +
+hints
+1
+url: file:///C:/Users/AS/source/repos/GitHub/public-transport-map
+Date: 2024-07-25T08:41:11.725Z
+webhint version: 7.1.12
+Accessibility
+hints
+0
+passed
+13 / 13
+PWA
+hints
+0
+passed
+5 / 5
+Pitfalls
+hints
+7
+passed
+4 / 6
+Compatibility
+hints
+0
+passed
+6 / 6
+Performance
+hints
+16
+passed
+2 / 4
+Security
+hints
+0
+passed
+4 / 4
+Development
+hints
+0
+passed
+4 / 4
++ hint #1: CSS inline styles should not be used, move styles to an external CSS file +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +<div id="scan-percentage-bar" class="scan-overview__progress-bar end-animation" style="width: 100%">
+ + + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +<button aria-control="categories-list" class="show-categories" id="show-categories">
+ + + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +<button title="expand" class="button-expand-all expanded">close all</button>
+ + + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +<button title="expand" class="button-expand-all expanded">close all</button>
+ + + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +<button title="expand" class="button-expand-all expanded">close all</button>
+ + + file:///C:/Users/AS/sourc … mponents/LinesDisplay.tsx + +
+ + +<button class="toggle-stats-button" onClick="{expression}">
+ + + file:///C:/Users/AS/sourc … src/components/Map.tsx + +
+ + +<button id="infoButton" title="Map Information">
+ + hint #1: 'background-position' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 0% {
+ background-position: 0% 50%;
+ }
+}
+ + hint #2: 'background-position' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 50% {
+ background-position: 100% 50%;
+ }
+}
+ + hint #3: 'background-position' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 100% {
+ background-position: 0% 50%;
+ }
+}
+ + hint #4: 'transform' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes spin {
+ 0% {
+ transform: rotate(0deg);
+ }
+}
+ + hint #5: 'transform' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes spin {
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+ + hint #6: 'opacity' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+}
+ + hint #7: 'transform' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+}
+ + hint #8: 'opacity' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+ + hint #9: 'transform' changes to this property will trigger: 'Composite', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+ + hint #1: 'background-position' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 0% {
+ background-position: 0% 50%;
+ }
+}
+ + hint #2: 'background-position' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 50% {
+ background-position: 100% 50%;
+ }
+}
+ + hint #3: 'background-position' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes progressBarAnimation {
+ 100% {
+ background-position: 0% 50%;
+ }
+}
+ + hint #4: 'transform' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes spin {
+ 0% {
+ transform: rotate(0deg);
+ }
+}
+ + hint #5: 'transform' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … public-transport-map.html + +
+ + +@keyframes spin {
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+ + hint #6: 'transform' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+}
+ + hint #7: 'transform' changes to this property will trigger: 'Paint', which can impact performance when used inside @keyframes. +
+ ++ + file:///C:/Users/AS/sourc … src/components/Map.css + +
+ + +@keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+