Skip to content

Commit

Permalink
Update dependencies. Include starter tsconfig.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitschpatrol committed Jun 7, 2024
1 parent 45f2dcb commit de68e73
Show file tree
Hide file tree
Showing 16 changed files with 296 additions and 272 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
files: ['src/**/*', 'scripts/**/*', 'packages/*/src/**/*', 'packages/*/scripts/**/*'],
rules: {
'n/no-unpublished-import': 'off',
'n/shebang': 'off',
'n/hashbang': 'off',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Release
if: env.IS_VALID_COMMIT == 'true'
id: release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ env.ACCESS_TOKEN }}
draft: false
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"license": "MIT",
"private": true,
"packageManager": "pnpm@9.1.4",
"packageManager": "pnpm@9.2.0",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8.0.0"
Expand Down Expand Up @@ -62,7 +62,7 @@
"@kitschpatrol/stylelint-config": "workspace:*",
"@pinojs/json-colorizer": "^4.0.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.14.1",
"@types/node": "^20.14.2",
"bumpp": "^9.4.1",
"chalk": "^5.3.0",
"cosmiconfig": "^9.0.0",
Expand All @@ -73,7 +73,7 @@
"json-stringify-pretty-compact": "^4.0.0",
"meow": "^13.2.0",
"package-up": "^5.0.0",
"tsx": "^4.11.2",
"tsx": "^4.13.2",
"typescript": "~5.4.5"
}
}
1 change: 1 addition & 0 deletions packages/cspell-config/dictionaries/kp-tech.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ hackintosh
haml
hasha
hashable
hashbang
hashchange
helpd
HoloLens
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module.exports = {
kebabCase: true,
pascalCase: true,
},
ignore: ['^\\[slug\\]\\.astro$'],
ignore: [String.raw`^\[slug\]\.astro$`],
},
],
},
Expand Down Expand Up @@ -333,7 +333,7 @@ module.exports = {
{
case: 'pascalCase',
ignore: [
'^\\+', // SvelteKit +page.svelte etc.
String.raw`^\+`, // SvelteKit +page.svelte etc.
],
},
],
Expand Down
17 changes: 4 additions & 13 deletions packages/eslint-config/init/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@
"allowJs": true
},
"extends": "./tsconfig.json",
"exclude": [],
"include": [
"**/**.js",
"**/**.ts",
"**/**.svelte",
"**/**.astro",
"**/**.cjs",
"**/**.mjs",
"**/**.cts",
"**/**.mts",
"**/**.jsx",
"**/**.tsx"
]

/* Also lint config files. */
"include": ["**/*", "**/**.*"],
"exclude": ["dist/", "bin/"]
}
26 changes: 26 additions & 0 deletions packages/eslint-config/init/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"noEmit": true,
"noErrorTruncation": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},

"include": ["**/*"],
"exclude": ["dist/", "bin/"]
}
10 changes: 5 additions & 5 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@
"@pinojs/json-colorizer": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"astro-eslint-parser": "^0.16.3",
"astro-eslint-parser": "^1.0.2",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.44.0",
"eslint-config-xo": "^0.45.0",
"eslint-config-xo-typescript": "^4.0.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-astro": "^1.2.0",
"eslint-plugin-html": "^8.1.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-n": "^17.8.1",
"eslint-plugin-perfectionist": "^2.10.0",
"eslint-plugin-svelte": "^2.39.0",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-unicorn": "^53.0.0",
"execa": "^8.0.1",
"fs-extra": "^11.2.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ The whole flat file config thing is pending...

ESLint does not inherit files and paths from `.gitignore`. Ignored paths must be specified in `.eslintignore`.

This shared config will also initialize a `tsconfig.json` and a `tsconfig.eslint.json`. These should probably live in a separate configuration package, but they'll reside here for now.

<!-- license -->

## License
Expand Down
2 changes: 1 addition & 1 deletion packages/mdat-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prepublishOnly": "pnpm run build"
},
"peerDependencies": {
"mdat": "^0.6.15"
"mdat": "^0.7.0"
},
"dependencies": {
"@pinojs/json-colorizer": "^4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"prepublishOnly": "pnpm run build"
},
"peerDependencies": {
"prettier": "^3.3.0"
"prettier": "^3.3.1"
},
"dependencies": {
"@pinojs/json-colorizer": "^4.0.0",
Expand All @@ -52,12 +52,12 @@
"cosmiconfig": "^9.0.0",
"execa": "^8.0.1",
"fs-extra": "^11.2.0",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-pkg": "^0.18.1",
"prettier-plugin-sh": "^0.14.0",
"prettier-plugin-sql": "^0.18.0",
"prettier-plugin-svelte": "^3.2.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"prettier-plugin-svelte": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.6.2",
"prettier-plugin-toml": "^2.0.1"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Release
if: env.IS_VALID_COMMIT == 'true'
id: release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ env.ACCESS_TOKEN }}
draft: false
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"cosmiconfig": "^9.0.0",
"execa": "^8.0.1",
"fs-extra": "^11.2.0",
"stylelint-config-clean-order": "^5.4.2",
"stylelint-config-clean-order": "^6.0.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-standard": "^36.0.0"
},
Expand Down
Loading

0 comments on commit de68e73

Please sign in to comment.