Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 7 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ GITHUB_USERNAME=name
GITHUB_TOKEN=token with public repo access
BASE_URL=https://name.io/
CACHE_DURATION=10
CACHE_DURATION_CURRENT=1
IGNORED_REPOS=["name","name.github.io"]
PUBLIC_BIRTHDAY=YYYY-MM-DD
PUBLIC_BIRTHDAY=YYYY-MM-DD
TRAEWELLING_USERNAME=name
STEAM_USERID=12345678901234567
STEAM_TOKEN=token
TRAKT_CLIENT_ID=client_id
TRAKT_USERNAME=name
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '19'
node-version: '18'
- name: Install dependencies
run: npm install --global pnpm && pnpm install --frozen-lockfile
run: npm ci
- name: Run the formatter
run: npm run format
- name: Run the linter
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"package.json": "package-lock.json, .npmrc, yarn.lock, .yarnrc, playwright.config.ts, pnpm-lock.yaml, .eslintrc.cjs, .prettierrc, postcss.config.cjs, svelte.config.js, tailwind.config.cjs, tsconfig.json, vite.config.js",
"package.json": "package-lock.json, .npmrc, yarn.lock, .yarnrc, playwright.config.ts, pnpm-lock.yaml, eslint.config.cjs, .prettierrc, postcss.config.cjs, svelte.config.js, tailwind.config.cjs, tsconfig.json, vite.config.js",
"Dockerfile": ".dockerignore, docker_start.sh, docker-compose.yml",
"*.html": "$(capture).css, $(capture).d.ts, $(capture).ts, $(capture).js",
".gitignore": ".gitmodules",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

- Auto generated GitHub event log
- Auto generated OpenStreepMap event log
- Indicator for current activity on Träwelling, Steam and Trakt
- Easy to use contact options
- i18n support
- Dark and light mode support
Expand Down
61 changes: 61 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import parser from 'svelte-eslint-parser';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
{
ignores: ['*.mjs', '*.cjs']
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
),
{
plugins: {
'@typescript-eslint': typescriptEslint
},

languageOptions: {
globals: {
...globals.browser,
...globals.node
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: 'module',

parserOptions: {
extraFileExtensions: ['.svelte']
}
}
},
{
files: ['**/*.svelte'],

languageOptions: {
parser: parser,
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
parser: '@typescript-eslint/parser'
}
}
}
];
Loading
Loading