Skip to content

Commit 4ba1d72

Browse files
authored
Merge branch 'main' into initialize-attrs-on-attributechangedcallback
2 parents da15330 + 18387a4 commit 4ba1d72

File tree

5 files changed

+1568
-1579
lines changed

5 files changed

+1568
-1579
lines changed

.eslintrc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"plugins": ["github"],
44
"extends": ["plugin:github/recommended", "plugin:github/typescript", "plugin:github/browser"],
55
"rules": {
6-
"no-invalid-this": "off",
7-
"@typescript-eslint/no-invalid-this": ["error"],
6+
"import/no-unresolved": "off",
7+
"github/no-inner-html": "off",
8+
"i18n-text/no-en": "off",
89
"import/extensions": ["error", "ignorePackages"],
910
"@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports"}]
1011
},
@@ -24,6 +25,9 @@
2425
},
2526
{
2627
"files": "*.cjs",
28+
"rules": {
29+
"import/no-commonjs": "off"
30+
},
2731
"env": {
2832
"node": true
2933
}

docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function storeColorSchemePreference() {
22
// Get color scheme preference from URL
3-
const url = new URL(window.location.href)
3+
const url = new URL(window.location.href, window.location.origin)
44
const params = new URLSearchParams(url.search)
55

66
// Return early if there’s nothing to store

0 commit comments

Comments
 (0)