Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 75 additions & 117 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,141 +1,99 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
# Dependencies & Package Managers
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
bower_components/
web_modules/
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.yarn-integrity
.pnp.*

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
# Build Outputs & Artifacts
build/
dist/
build/Release
*.tgz
.next
.nuxt
.vuepress/dist
.docusaurus

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
# Environment & Configuration
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist
# Testing & Coverage
coverage/
*.lcov
.nyc_output
.jest/

# Gatsby files
# Caches & Temporary Files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.parcel-cache
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# FuseBox cache
.eslintcache
.stylelintcache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
.npm
*.tsbuildinfo
.fusebox/
.grunt

# DynamoDB Local files
.dynamodb/

# TernJS port file
# Logs & Runtime Data
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
pids
*.pid
*.seed
*.pid.lock
.node_repl_history
.tern-port
lib-cov
.lock-wscript
.dynamodb/

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Mac files
# Operating System Files
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# IDE & Editor Files
.vscode/
.idea/
.vscode-test
*.iml
.history

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

asset-tokenization-studio.iml

# IntelliJ Idea
/.idea/

# AI files
# AI & Assistant Tools
.kiro/
CLAUDE.md

# Extracted methods from contracts
AGENT.md
.claude/
.cursor/
.aider*
.copilot/
*.ai-chat
.anthropic/
.mcp.json

# Project-Specific Files
asset-tokenization-studio.iml
contracts/extracted-methods.txt
44 changes: 0 additions & 44 deletions .vscode/settings.json

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ npm run mass-payout:dev # Start mass payout development

```bash
npm run clean:deps # Remove all node_modules and lock files
npm run lint # Lint JavaScript and Solidity code
npm run format # Format code with Prettier
npm run lint # Lint all code using centralized configuration
npm run format # Format all code using centralized Prettier config
```

## Workspace Dependencies
Expand Down
28 changes: 4 additions & 24 deletions apps/ats/web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# dependencies
node_modules
dist
dist-ssr
# Vite/React Build Outputs
dist/
dist-ssr/
*.local

# misc
.vscode/*
# Web-Specific VSCode Extensions
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
55 changes: 55 additions & 0 deletions apps/ats/web/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* ESLint configuration for ATS Web App
* Extends root monorepo configuration with React/Web-specific rules
*/
import baseConfig from '../../../eslint.config.mjs';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import globals from 'globals';

// Filter base config to get general rules and adapt paths for web app
const webConfig = baseConfig
.filter(
(config) =>
// Include base ignores, default config, but exclude package-specific rules
!config.files || config.files.includes('**/*.{js,mjs,cjs,ts,tsx,mts}'),
)
.concat([
// React/Web app files - adapted paths
{
files: ['**/*.{ts,tsx,js,jsx}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
},
]);

export default webConfig;
6 changes: 5 additions & 1 deletion apps/ats/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"clean:lock": "npx --yes rimraf package-lock.json yarn.lock",
"test:update": "NODE_ENV=test jest --updateSnapshot",
"test:clear:cache": "npx jest --clearCache",
"theme": "chakra-cli tokens src/theme/index.ts"
"theme": "chakra-cli tokens src/theme/index.ts",
"lint": "eslint '**/*.{js,jsx,mjs,cjs,ts,tsx,mts}' --cache",
"lint:fix": "eslint '**/*.{js,jsx,mjs,cjs,ts,tsx,mts}' --fix --cache && npm run format",
"format": "prettier --write '**/*.{js,jsx,mjs,cjs,ts,tsx,mts,json,md,yml,yaml}' --cache",
"format:check": "prettier --check '**/*.{js,jsx,mjs,cjs,ts,tsx,mts,json,md,yml,yaml}' --cache"
},
"devDependencies": {
"@babel/preset-env": "^7.21.4",
Expand Down
7 changes: 7 additions & 0 deletions apps/ats/web/prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Prettier configuration for ATS Web App
* Extends root monorepo configuration
*/
import baseConfig from '../../../prettier.config.mjs';

export default baseConfig;
2 changes: 1 addition & 1 deletion docs/dev-monorepo-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ If you have custom scripts or CI/CD configurations, update them to use the new w
2. **Faster Development**: Automatic dependency linking between packages
3. **Better CI/CD**: Path-based test triggers and conditional publishing
4. **Scalability**: Ready for additional packages (e.g., mass-payout)
5. **Consistent Tooling**: Unified linting, formatting, and testing across all packages
5. **Consistent Tooling**: Centralized linting and formatting configurations ensure code quality consistency across all packages

## Troubleshooting

Expand Down
Loading