mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 13:47:47 +01:00
The Vite/React/TS dice solver had no git history yet. Commit it alongside a run.sh that ensures Node/pnpm are present, installs deps, and starts the dev server with a single command. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
30 lines
784 B
JavaScript
30 lines
784 B
JavaScript
import js from '@eslint/js';
|
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist', 'coverage'] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.strictTypeChecked,
|
|
...tseslint.configs.stylisticTypeChecked,
|
|
{
|
|
plugins: {
|
|
'react-hooks': reactHooksPlugin,
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
...reactHooksPlugin.configs.recommended.rules,
|
|
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
|
|
},
|
|
},
|
|
{
|
|
files: ['*.js', '*.mjs', '*.cjs'],
|
|
...tseslint.configs.disableTypeChecked,
|
|
},
|
|
);
|