Compare commits
No commits in common. "ssmp/tsc-15-r2" and "main" have entirely different histories.
ssmp/tsc-1
...
main
@ -1,6 +0,0 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "es5",
|
||||
"printWidth": 80
|
||||
}
|
||||
22
CLAUDE.md
22
CLAUDE.md
@ -8,21 +8,13 @@ Greenfield project. Implementation is driven by the Vexa AI-SDLC pipeline (Jira
|
||||
/
|
||||
├── index.html # Calculator UI (semantic HTML5)
|
||||
├── styles.css # Responsive CSS layout and styling
|
||||
├── package.json # Dev dependencies and npm scripts
|
||||
├── eslint.config.js # ESLint flat config (TypeScript + React rules)
|
||||
├── tsconfig.json # TypeScript compiler config (strict mode)
|
||||
├── .prettierrc # Prettier formatting config
|
||||
├── README.md # Project overview
|
||||
└── CLAUDE.md # This file
|
||||
```
|
||||
|
||||
## Build Commands
|
||||
|
||||
No build step configured yet. Install dependencies with:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
No build system has been configured yet. Update this section once a language/framework is chosen and dependencies are added.
|
||||
|
||||
## Test Commands
|
||||
|
||||
@ -32,14 +24,6 @@ No test suite has been configured yet. Update this section once testing infrastr
|
||||
|
||||
No dev server or REPL is configured yet. Update this section once the implementation begins.
|
||||
|
||||
## Lint and Format Commands
|
||||
|
||||
```bash
|
||||
npm run lint # Run ESLint
|
||||
npm run format # Format all files with Prettier
|
||||
npm run format:check # Check formatting without writing (CI)
|
||||
```
|
||||
|
||||
## Architecture Notes
|
||||
|
||||
- **Domain**: Simple Calculator — arithmetic operations (add, subtract, multiply, divide at minimum).
|
||||
@ -48,6 +32,4 @@ npm run format:check # Check formatting without writing (CI)
|
||||
|
||||
## Code Style
|
||||
|
||||
- **Linter**: ESLint v9 (flat config) with `typescript-eslint` recommended rules, `eslint-plugin-react`, `eslint-plugin-react-hooks`, and `eslint-config-prettier`.
|
||||
- **Formatter**: Prettier — single quotes, 2-space indent, ES5 trailing commas, 80-char line width.
|
||||
- **TypeScript**: `strict: true` enabled in `tsconfig.json`.
|
||||
No linter or formatter has been configured yet. Update this section once tooling is set up.
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
import tseslint from 'typescript-eslint';
|
||||
import reactPlugin from 'eslint-plugin-react';
|
||||
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
||||
import prettierConfig from 'eslint-config-prettier';
|
||||
|
||||
export default [
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
react: reactPlugin,
|
||||
'react-hooks': reactHooksPlugin,
|
||||
},
|
||||
rules: {
|
||||
...reactPlugin.configs.recommended.rules,
|
||||
...reactHooksPlugin.configs.recommended.rules,
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
},
|
||||
prettierConfig,
|
||||
];
|
||||
20
package.json
20
package.json
@ -1,20 +0,0 @@
|
||||
{
|
||||
"name": "test-simple-calculator",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
||||
"@typescript-eslint/parser": "^8.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-react": "^7.0.0",
|
||||
"eslint-plugin-react-hooks": "^5.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src", "*.ts", "*.tsx"]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user