Skip to content

Commit

Permalink
Merge pull request #112 from starbeamjs/feature/resources-refresh
Browse files Browse the repository at this point in the history
Resource Reform
  • Loading branch information
NullVoxPopuli authored Sep 22, 2023
2 parents 5793882 + 48235ea commit d03d514
Show file tree
Hide file tree
Showing 369 changed files with 24,154 additions and 8,256 deletions.
2 changes: 2 additions & 0 deletions .config/tsconfig/tsconfig.demo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"allowJs": true,

"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
Expand Down
1 change: 1 addition & 0 deletions .config/tsconfig/tsconfig.shared.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"rootDir": "../..",
"allowJs": true,

"target": "ESNext",
"module": "ESNext",
Expand Down
16 changes: 0 additions & 16 deletions .devcontainer/Dockerfile

This file was deleted.

34 changes: 0 additions & 34 deletions .devcontainer/devcontainer.json

This file was deleted.

3 changes: 0 additions & 3 deletions .devcontainer/scripts/on-create.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .devcontainer/scripts/post-start.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .devcontainer/scripts/update-content.sh

This file was deleted.

4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist
coverage
node_modules/**
**/node_modules/**
node_modules
**/node_modules
.ignore

packages/x-devtools-extension
Expand Down
10 changes: 3 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
"*.cjs",
"packages/x/devtools-extension",
"packages/env.d.ts",
"!.npmcheckrc.json"
"!.npmcheckrc.json",
"**/node_modules"
],

"plugins": ["@starbeam"],

"extends": [
"plugin:@starbeam/json:recommended",
"./.eslintrc.repo.json"
],
"extends": ["./.eslintrc.repo.json"],
"reportUnusedDisableDirectives": true
}
26 changes: 23 additions & 3 deletions .eslintrc.repo.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
{
"root": true,
"ignorePatterns": [
"*",
"!package.json",
"!.eslintrc.json",
"!.eslintrc.repo.json",
"!.vscode/*.json",
"**/node_modules"
],

"plugins": ["@starbeam"],
"overrides": [
{
"extends": ["plugin:@starbeam/tight"],
"files": ["vitest.config.ts", "rollup.config.mjs"],
"files": ["vitest.*.ts", "rollup.config.mjs"],
"parserOptions": {
"project": ["tsconfig.root.json"]
}
},
{
"extends": ["plugin:@starbeam/json:recommended"],
"files": [
".eslintrc.json",
".eslintrc.*.json",
"package.json",
"packages/*/*/{package,.eslintrc}.json",
"packages/*/*/tests/{package,.eslintrc}.json"
]
}
],
"root": false
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pack
.eslintcache
.ignore
.turbo
html
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"recommendations": [
"foxundermoon.shell-format",
"rohit-gohri.format-code-action"
"rohit-gohri.format-code-action",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig"
]
}
50 changes: 0 additions & 50 deletions .vscode/launch.json

This file was deleted.

42 changes: 37 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
// and other config-specific things.
"[json][jsonc]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": ["source.fixAll.eslint"]
"editor.codeActionsOnSave": [
"source.fixAll.eslint",
"source.formatDocument"
]
},

// format JavaScript and TypeScript using `eslint` first and then follow up
Expand All @@ -22,11 +25,15 @@
]
},

"codeium.aggressiveShutdown": true,
"codeium.enableCodeLens": false,
"codeium.enableSearch": false,
// "codeium"

"editor.defaultFormatter": "esbenp.prettier-vscode",

"eslint.codeActionsOnSave.mode": "all",
"eslint.enable": true,

"eslint.lintTask.enable": true,
"eslint.lintTask.options": "--cache -c ./.eslintrc.json --max-warnings=0 \"**/*.ts\" \"**/*.tsx\" \"**/*.json\"",
"eslint.onIgnoredFiles": "warn",
Expand All @@ -43,6 +50,8 @@
],
"eslint.workingDirectories": [{ "mode": "auto" }],

"evenBetterToml.schema.associations": {},

// exclude .gitignore files from the file explorer
"explorer.excludeGitIgnore": true,

Expand All @@ -59,6 +68,23 @@
"vite.config.ts": "rollup.config.*, .env.*"
},

"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.svn": true,
"**/CVS": true,
"**/Thumbs.db": true,
"**/dist/**": true,
"**/node_modules/**": true,
".turbo/**": true
},
"inline-bookmarks.expert.custom.words.mapping": {
"red": ["@fixme(?=\\s|$)"]
},
"inline-bookmarks.view.exclude.gitIgnore": true,

"npm-outdated.decorations": "fancy",
"prettier.prettierPath": "./node_modules/prettier",

// rewrap provides a quick keyboard shortcut (alt-q) to reformat comments to
Expand All @@ -67,13 +93,12 @@
"rewrap.autoWrap.enabled": true,
"rewrap.reformat": true,
"rewrap.wrappingColumn": 80,

// CHANGELOG.md and pnpm-lock.yaml create a lot of search noise
"search.exclude": {
"**/CHANGELOG.md": true,
"pnpm-lock.yaml": true
},

"testing.automaticallyOpenPeekView": "never",
// Try to avoid auto-importing other packages in the mono-repo as relative
// paths. Instead, use the packaage name.
"typescript.preferences.importModuleSpecifier": "project-relative",
Expand All @@ -82,5 +107,12 @@
"typescript.tsdk": "node_modules/typescript/lib",
// This can sometimes be flaky, but generally it's a good idea to have
// project-wide checks if possible.
"typescript.tsserver.experimental.enableProjectDiagnostics": true
"typescript.tsserver.experimental.enableProjectDiagnostics": true,

"vitest.changeBackgroundColor": true,
"vitest.commandLine": "pnpm vitest --ui --no-open --api.port 8080 --api.host 0.0.0.0 --api.strictPort",
"vitest.debugExclude": ["<node_internals>/**", "**/node_modules/**"],
"vitest.disabledWorkspaceFolders": ["demos", "@types", "workspace"],
"vitest.enable": true,
"vitest.showFailMessages": true
}
8 changes: 6 additions & 2 deletions @types/@rollup/plugin-commonjs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"root": true,
"ignorePatterns": ["node_modules", "dist", "html", "tests"],
"plugins": ["@starbeam"],
"overrides": [
{
Expand All @@ -8,7 +9,10 @@
"parserOptions": {
"project": "tsconfig.json"
}
},
{
"extends": ["plugin:@starbeam/json:recommended"],
"files": ["*.json"]
}
],
"extends": ["plugin:@starbeam/json:recommended"]
]
}
4 changes: 2 additions & 2 deletions @types/@rollup/plugin-commonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"type": "library:upstream-types"
},
"scripts": {
"test:lint": "eslint \"index.d.ts\" --max-warnings 0",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc -b"
},
"dependencies": {
"@rollup/plugin-commonjs": "^24.1.0"
"@rollup/plugin-commonjs": "^25.0.4"
},
"devDependencies": {
"@starbeam/eslint-plugin": "workspace:^"
Expand Down
8 changes: 6 additions & 2 deletions @types/@rollup/plugin-node-resolve/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"root": true,
"ignorePatterns": ["node_modules", "dist", "html", "tests"],
"plugins": ["@starbeam"],
"overrides": [
{
Expand All @@ -8,7 +9,10 @@
"parserOptions": {
"project": "tsconfig.json"
}
},
{
"extends": ["plugin:@starbeam/json:recommended"],
"files": ["*.json"]
}
],
"extends": ["plugin:@starbeam/json:recommended"]
]
}
4 changes: 2 additions & 2 deletions @types/@rollup/plugin-node-resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"type": "library:upstream-types"
},
"scripts": {
"test:lint": "eslint \"index.d.ts\" --max-warnings 0",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc -b"
},
"dependencies": {
"@rollup/plugin-node-resolve": "^15.0.2"
"@rollup/plugin-node-resolve": "^15.2.1"
},
"devDependencies": {
"@starbeam/eslint-plugin": "workspace:^"
Expand Down
8 changes: 6 additions & 2 deletions @types/ansicolor/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"root": true,
"ignorePatterns": ["node_modules", "dist", "html", "tests"],
"plugins": ["@starbeam"],
"overrides": [
{
Expand All @@ -8,7 +9,10 @@
"parserOptions": {
"project": "tsconfig.json"
}
},
{
"extends": ["plugin:@starbeam/json:recommended"],
"files": ["*.json"]
}
],
"extends": ["plugin:@starbeam/json:recommended"]
]
}
Loading

0 comments on commit d03d514

Please sign in to comment.