Skip to content

Commit 1c88308

Browse files
Revert "feat(bolt-vite-react-ts): modernize toolchain and remove eslint (#120)" (#123)
This reverts commit 9e5405c. The package.json and package-lock.json conflicts came from #121, which only adjusted the @types/react ranges that #120 introduced, so both files go back to their pre-#120 state. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 01be5b4 commit 1c88308

14 files changed

Lines changed: 3628 additions & 1141 deletions

bolt-vite-react-ts/.bolt/prompt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@ By default, this template supports JSX syntax with Tailwind CSS classes, React h
44

55
Use icons from lucide-react for logos.
66

7-
This template uses Tailwind CSS v4, which is configured in CSS instead of JavaScript. There is no `tailwind.config.js` and no PostCSS config. Tailwind is loaded by the `@tailwindcss/vite` plugin and imported in `src/index.css` with `@import 'tailwindcss'`. Customize the theme by declaring CSS variables in a `@theme` block in `src/index.css` rather than by creating a config file.
8-
97
Import project modules with the `@/` path alias, which maps to `src/` (e.g. `@/components/Foo` == `src/components/Foo`), instead of deep relative paths like `../../components/Foo`.
10-
11-
This template uses Vite 8. `resolve.tsconfigPaths: true` is a valid built-in Vite option. Preserve it for the `@/` alias; do not claim it is invalid or add the `vite-tsconfig-paths` plugin.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
}
28+
);

bolt-vite-react-ts/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
56
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
67
<title>Vite + React + TS</title>
78
<meta property="og:image" content="https://bolt.new/static/og_default.png" />

0 commit comments

Comments
 (0)