mirror of
https://github.com/MultiMote/niimblue
synced 2026-01-19 19:37:11 +03:00
Squash summary: * Fix PrinterConnector loop keys * Remove unnecessary state * Add format-all script, remove esbuild override * Use localStorage key as SavedLabelsBrowser element key * Remove prettier.config.ts because .prettierrc.yml exists * Remove unused eslint plugins, migrate config * Change npm scripts * Fix state typing * Finish root path alias, range type * Get rid of "possibly undefined" errors * Replace $effect with $derived * Fix key errors * Replace legacy run() with $effect * Enable runes explicitly * Remove FabricConfig.disableStyleCopyPaste duplicate * Revert capacitor changes in base project * Revert .gitignore * Remove eslint comment * Revert dashboard to MainPage (not using kit, no routes)
43 lines
1000 B
JavaScript
43 lines
1000 B
JavaScript
import eslint from "@eslint/js";
|
|
import svelte from "eslint-plugin-svelte";
|
|
import globals from "globals";
|
|
import svelteConfig from "./svelte.config.js";
|
|
import tseslint from "typescript-eslint";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
export default defineConfig(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
svelte.configs.recommended,
|
|
[
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
|
|
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
extraFileExtensions: [".svelte"], // Add support for additional file extensions, such as .svelte
|
|
parser: tseslint.parser,
|
|
svelteConfig,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
ignores: ["dist/", "capacitor/"],
|
|
},
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
},
|
|
},
|
|
]
|
|
);
|