mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-29 12:07:09 +00:00
fix(eslint): resolve all 6 repository lint errors
- Removed unused html variable from localizeHomeLinks in website/app.js. - Added website/build.js to ESLint flat config Node files match pattern to define require, process, and __dirname.
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["server/**/*.js", "scripts/**/*.js"],
|
files: ["server/**/*.js", "scripts/**/*.js", "website/build.js"],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
require: "readonly",
|
require: "readonly",
|
||||||
|
|||||||
@@ -446,7 +446,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
// Dynamically localize home links on root dynamic pages (impressum, datenschutz, join)
|
// Dynamically localize home links on root dynamic pages (impressum, datenschutz, join)
|
||||||
const localizeHomeLinks = () => {
|
const localizeHomeLinks = () => {
|
||||||
const html = document.documentElement;
|
|
||||||
const activeLang = localStorage.getItem('koala_lang') || (navigator.language.startsWith('de') ? 'de' : 'en');
|
const activeLang = localStorage.getItem('koala_lang') || (navigator.language.startsWith('de') ? 'de' : 'en');
|
||||||
const path = window.location.pathname;
|
const path = window.location.pathname;
|
||||||
const pathSegments = path.split('/');
|
const pathSegments = path.split('/');
|
||||||
|
|||||||
@@ -446,7 +446,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
// Dynamically localize home links on root dynamic pages (impressum, datenschutz, join)
|
// Dynamically localize home links on root dynamic pages (impressum, datenschutz, join)
|
||||||
const localizeHomeLinks = () => {
|
const localizeHomeLinks = () => {
|
||||||
const html = document.documentElement;
|
|
||||||
const activeLang = localStorage.getItem('koala_lang') || (navigator.language.startsWith('de') ? 'de' : 'en');
|
const activeLang = localStorage.getItem('koala_lang') || (navigator.language.startsWith('de') ? 'de' : 'en');
|
||||||
const path = window.location.pathname;
|
const path = window.location.pathname;
|
||||||
const pathSegments = path.split('/');
|
const pathSegments = path.split('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user