Skip to content

Commit

Permalink
Merge pull request #68 from adobe/update-boilerplate
Browse files Browse the repository at this point in the history
Update boilerplate
  • Loading branch information
shsteimer authored Aug 9, 2024
2 parents 91f0d18 + 49e3198 commit dccd7a7
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 599 deletions.
9 changes: 3 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ module.exports = {
requireConfigFile: false,
},
rules: {
// allow reassigning param
'no-param-reassign': [2, { props: false }],
'linebreak-style': ['error', 'unix'],
'import/extensions': ['error', {
js: 'always',
}],
'import/extensions': ['error', { js: 'always' }], // require js file extensions in imports
'linebreak-style': ['error', 'unix'], // enforce unix linebreaks
'no-param-reassign': [2, { props: false }], // allow modifying properties of param
},
};
2 changes: 1 addition & 1 deletion .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["github>adobe/helix-shared"]
"extends": ["config:recommended"]
}
7 changes: 4 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<meta property="og:title" content="Page not found">
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
import { sampleRUM } from '/scripts/aem.js';

window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
Expand All @@ -26,9 +24,12 @@
btnContainer.append(backBtn);
}
}
sampleRUM('404', { source: document.referrer, target: window.location.href });
});
</script>
<script type="module">
import { sampleRUM } from '/scripts/aem.js';
sampleRUM('404', { source: document.referrer });
</script>
<link rel="stylesheet" href="/styles/styles.css">
<style>
main.error {
Expand Down
Binary file added favicon.ico
Binary file not shown.
Loading

0 comments on commit dccd7a7

Please sign in to comment.