Skip to content
Open
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
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
draft/
/playwright-report
/test-results
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

export default [
js.configs.recommended,
...svelte.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
},
rules: {
// news.js and the LocalBusiness JSON-LD are hand-authored by trusted maintainers only,
// never populated from user input — {@html} here is intentional, not an XSS risk.
'svelte/no-at-html-tags': 'off',
// all routes are static and prerendered; there's no client-side router state that
// resolve() would need to reconcile for a site this size.
'svelte/no-navigation-without-resolve': 'off'
}
},
{
ignores: ['build/', '.svelte-kit/', 'static/', 'node_modules/', 'package/']
}
];
Loading