Skip to content

Commit

Permalink
Milestone - initial state is set
Browse files Browse the repository at this point in the history
  • Loading branch information
whaaaley committed Dec 23, 2024
1 parent c853931 commit 97f2a83
Show file tree
Hide file tree
Showing 38 changed files with 698 additions and 382 deletions.
11 changes: 0 additions & 11 deletions .vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions client/.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_API_PREFIX=http://localhost:4202
VITE_GLAZE_INIT_SECRET=
1 change: 1 addition & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_API_PREFIX=https://whaleybar.deno.dev
VITE_ZEBAR=false
4 changes: 3 additions & 1 deletion client/.env.production.local
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_API_PREFIX=https://whaleybar.deno.dev
VITE_API_PREFIX_switchbacklater=https://whaleybar.deno.dev
VITE_API_PREFIX=http://localhost:4202
VITE_ZEBAR=true
92 changes: 0 additions & 92 deletions client/.eslintrc-auto-import.json

This file was deleted.

2 changes: 1 addition & 1 deletion client/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"typescript",
"typescriptreact",
"vue"
]
],
}
39 changes: 20 additions & 19 deletions client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs/promises'
import pluginJs from '@eslint/js'
import stylistic from '@stylistic/eslint-plugin'
import stylisticTs from '@stylistic/eslint-plugin-ts'
import importPlugin from 'eslint-plugin-import'
import tailwind from 'eslint-plugin-tailwindcss'
import unusedImports from 'eslint-plugin-unused-imports'
Expand All @@ -9,19 +9,11 @@ import globals from 'globals'
import neostandard from 'neostandard'
import tseslint from 'typescript-eslint'

const autoImport = JSON.parse(
await fs.readFile('./.eslintrc-auto-import.json', 'utf8'),
)

const baseConfig = [
{ files: ['*/.{js,jsx,ts,tsx.vue}'] },
{ files: ['**/*.{js,jsx,ts,tsx.vue}'] },
{
languageOptions: {
globals: {
// Include globals from auto-generated imports (e.g., Vue components,
// composables) created by unplugin-auto-import during the build process
...autoImport.globals,

// Add browser environment globals (window, document, etc.) to prevent
// ESLint from flagging them as undefined
...globals.browser,
Expand Down Expand Up @@ -146,19 +138,28 @@ const stylisticConfig = [
},
]

// Must be last in the configuration order to properly override conflicting rules.
// TypeScript's type system handles many checks more accurately than ESLint,
// including import resolution, type checking, and variable usage.
const typeScriptConfig = [
...tseslint.configs.strict,
{
plugins: {
'@stylistic/ts': stylisticTs,
},
rules: {
// The TypeScript config adds rules for JSX that we want to disable in favor of
// the more accurate TypeScript type checking, which handles JSX syntax correctly
// 'react/jsx-no-undef': 0,
},
},
]

export default [
...baseConfig,
...tailwindConfig,
...vueConfig,
...standardConfig,
...stylisticConfig,

// Must be last in the configuration order to properly override conflicting rules.
// TypeScript's type system handles many checks more accurately than ESLint,
// including import resolution, type checking, and variable usage.
...tseslint.configs.recommended,

// The TypeScript config adds rules for JSX that we want to disable in favor of
// the more accurate TypeScript type checking, which handles JSX syntax correctly
// 'react/jsx-no-undef': 0,
...typeScriptConfig,
]
Loading

0 comments on commit 97f2a83

Please sign in to comment.