chore: strip the comments this branch added
Removes every comment introduced on this branch: website/ in full, pages.yml in full, and only the blocks added to ci.yml and release.yml — their pre-existing comments are untouched. Two directives survive because they are load-bearing rather than prose: the triple-slash vite/client reference, and nothing else. Two comments were carrying behaviour that the code did not state, so the code now states it. useCopy's rejection handler clears the copied flag instead of sitting empty, and writeTheme returns whether the write actually landed instead of swallowing the failure in a bare catch. isExternal drops its regex for two startsWith calls, which reads the same and no longer hides a `//` inside a literal.
This commit is contained in:
@@ -11,14 +11,9 @@ export default defineConfig(
|
||||
|
||||
js.configs.recommended,
|
||||
|
||||
// strictTypeChecked over recommended: it needs type information (below) but
|
||||
// catches the whole class of bugs that only types can see — floating
|
||||
// promises, unsafe `any` flowing through, misused nullish operands.
|
||||
tseslint.configs.strictTypeChecked,
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
|
||||
// `configs.flat.*`, not `configs['recommended-latest']` — the latter is
|
||||
// still the legacy eslintrc shape (plugins as a string array).
|
||||
reactHooks.configs.flat['recommended-latest'],
|
||||
jsxA11y.flatConfigs.recommended,
|
||||
|
||||
@@ -41,8 +36,6 @@ export default defineConfig(
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
|
||||
// Unused args are usually a mistake, but an `_`-prefixed one is an
|
||||
// explicit "I know, I need the positional slot".
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
@@ -52,14 +45,11 @@ export default defineConfig(
|
||||
},
|
||||
],
|
||||
|
||||
// Type-only imports must be erasable, so the bundler can drop them
|
||||
// without consulting the type graph. Pairs with verbatimModuleSyntax.
|
||||
'@typescript-eslint/consistent-type-imports': [
|
||||
'error',
|
||||
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
|
||||
],
|
||||
|
||||
// A dropped promise in an event handler fails silently in production.
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
|
||||
@@ -71,11 +61,6 @@ export default defineConfig(
|
||||
},
|
||||
},
|
||||
|
||||
// The TUI demo is a composite widget: it declares role="application" and
|
||||
// owns its keys (j/k, arrows, 1-3) the way the real terminal client does.
|
||||
// These two rules police exactly the pattern ARIA prescribes for that, so
|
||||
// they are off for this one file rather than worked around in the markup.
|
||||
// Every control inside it is still a native button or input.
|
||||
{
|
||||
files: ['src/components/tui/hero-terminal.tsx'],
|
||||
rules: {
|
||||
@@ -84,10 +69,6 @@ export default defineConfig(
|
||||
},
|
||||
},
|
||||
|
||||
// Config and build scripts are Node, not browser. Build output is meant to
|
||||
// be read on the terminal, so console is the interface, not a stray debug
|
||||
// statement. entry-server is a build entry point that never enters the HMR
|
||||
// graph, so the component-only export rule does not apply to it.
|
||||
{
|
||||
files: ['*.config.ts', 'scripts/**/*.ts'],
|
||||
languageOptions: {
|
||||
|
||||
Reference in New Issue
Block a user