T004
This commit is contained in:
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
# EditorConfig helps maintain consistent coding styles
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
12
.eslintrc.cjs
Normal file
12
.eslintrc.cjs
Normal file
@@ -0,0 +1,12 @@
|
||||
// Root ESLint config for monorepo
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: { es2022: true, node: true, browser: true },
|
||||
extends: ['eslint:recommended', 'prettier'],
|
||||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
||||
ignorePatterns: ['node_modules/', 'dist/', 'build/', '.svelte-kit/', 'coverage/'],
|
||||
overrides: [
|
||||
{ files: ['**/*.cjs'], parserOptions: { sourceType: 'script' } },
|
||||
],
|
||||
};
|
||||
45
.gitignore
vendored
Normal file
45
.gitignore
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# Node & package managers
|
||||
node_modules/
|
||||
.npm/
|
||||
.pnpm-store/
|
||||
.npmrc.local
|
||||
|
||||
# Logs & caches
|
||||
*.log
|
||||
pnpm-debug.log*
|
||||
.npm-debug.log*
|
||||
.yarn-debug.log*
|
||||
.yarn-error.log*
|
||||
.eslintcache
|
||||
.cache/
|
||||
|
||||
# Build & dist
|
||||
build/
|
||||
dist/
|
||||
coverage/
|
||||
|
||||
# SvelteKit / Vite
|
||||
.svelte-kit/
|
||||
.vite/
|
||||
|
||||
# Test artifacts (Vitest/Playwright)
|
||||
playwright-report/
|
||||
blob-report/
|
||||
test-results/
|
||||
coverage/
|
||||
|
||||
# Nix & direnv
|
||||
result
|
||||
.direnv/
|
||||
.devenv/
|
||||
|
||||
# OS/editor
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
# Misc
|
||||
*.local
|
||||
*.swp
|
||||
*.swo
|
||||
5
.npmrc
Normal file
5
.npmrc
Normal file
@@ -0,0 +1,5 @@
|
||||
shamefully-hoist=false
|
||||
prefer-workspace-packages=true
|
||||
workspace-concurrency=3
|
||||
auto-install-peers=true
|
||||
fund=false
|
||||
6
.prettierignore
Normal file
6
.prettierignore
Normal file
@@ -0,0 +1,6 @@
|
||||
node_modules
|
||||
pnpm-lock.yaml
|
||||
coverage
|
||||
build
|
||||
dist
|
||||
.svelte-kit
|
||||
9
.prettierrc
Normal file
9
.prettierrc
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"semi": true,
|
||||
"trailingComma": "es5",
|
||||
"arrowParens": "avoid",
|
||||
"tabWidth": 2,
|
||||
"useTabs": false
|
||||
}
|
||||
10
package.json
10
package.json
@@ -9,5 +9,13 @@
|
||||
"lint": "pnpm -r --if-present lint",
|
||||
"typecheck": "pnpm -r --if-present typecheck || pnpm -r --if-present check",
|
||||
"format": "pnpm -r --if-present format"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"prettier": "^3.3.3",
|
||||
"typescript": "^5.5.4",
|
||||
"svelte-check": "^3.8.5"
|
||||
},
|
||||
"packageManager": "pnpm@9.0.0"
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ Paths below are absolute to this repo.
|
||||
- Create /home/jawz/Development/Projects/GlowTrack/pnpm-workspace.yaml listing apps/* and packages/*
|
||||
- Dependencies: T001
|
||||
|
||||
- [ ] T004 Configure linting, formatting, types
|
||||
- [X] T004 Configure linting, formatting, types
|
||||
- Root: .editorconfig, .eslintrc.cjs, .prettierrc, .prettierignore, .npmrc (pnpm settings)
|
||||
- Add dev deps: eslint, eslint-config-prettier, prettier, typescript, svelte-check
|
||||
- Dependencies: T003
|
||||
|
||||
Reference in New Issue
Block a user