Skip to content

Commit

Permalink
fix: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Martirosian committed May 18, 2024
1 parent 7bcc2b7 commit 0227d5d
Show file tree
Hide file tree
Showing 38 changed files with 845 additions and 732 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

4 changes: 1 addition & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
extends: [
'github>escapace/renovate-configuration'
]
extends: ['github>escapace/renovate-configuration'],
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: escapace/workflows/.github/workflows/ci-typescript.yaml@trunk
with:
enable-codecov: true
enable-codecov: false
node-version: ${{ needs.context.outputs.node-version }}
pnpm-version: ${{ needs.context.outputs.pnpm-version }}
ref: ${{ needs.context.outputs.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: escapace/workflows/.github/workflows/ci-typescript.yaml@trunk
with:
enable-artifact-upload: true
enable-codecov: true
enable-codecov: false
node-version: ${{ needs.context.outputs.node-version }}
pnpm-version: ${{ needs.context.outputs.pnpm-version }}
ref: ${{ needs.context.outputs.ref }}
Expand Down
33 changes: 15 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
/index.d.ts.map
/typelevel

.DS_Store
.awcache
.idea
.manage_modules
.rpt2_cache
.vscode

# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln

# Logs
logs
*.log
Expand Down Expand Up @@ -74,6 +60,9 @@ web_modules/
# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand All @@ -89,10 +78,12 @@ web_modules/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# dotenv environment variable files
.env
.env.test
.env.production
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -115,6 +106,13 @@ dist
# vuepress build output
.vuepress/dist

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

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

Expand All @@ -135,4 +133,3 @@ dist
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
27 changes: 17 additions & 10 deletions .syncpackrc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"customTypes": {
"engines": {
"path": "engines",
"strategy": "versionsByName"
}
},
"dependencyTypes": [
"dev",
"engines",
"local",
"overrides",
"peer",
"pnpmOverrides",
"prod",
"resolutions"
"resolutions",
"local",
"engines"
],
"customTypes": {
"engines": {
"path": "engines",
"strategy": "versionsByName"
}
},
"semverGroups": [
{
"dependencies": ["**"],
Expand All @@ -35,5 +35,12 @@
"range": "^"
}
],
"source": ["package.json"]
"source": ["package.json", "packages/*/package.json"],
"versionGroups": [
{
"dependencies": ["$LOCAL"],
"isIgnored": true,
"packages": ["**"]
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Exhibit A - Source Code Form License Notice

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
file, You can obtain one at https://mozilla.org/MPL/2.0/.

If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
Expand Down
8 changes: 7 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { escapace } from 'eslint-config-escapace'

export default escapace()
export default escapace({
typescript: {
rules: {
'typescript/no-explicit-any': 'off',
},
},
})
12 changes: 3 additions & 9 deletions lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ pre-commit:
- rebase

commands:
knip:
glob: '{package.json,**/package.json,pnpm-lock.yaml}'
priority: 1
run: pnpm exec knip

skip: true
ls-lint:
priority: 1
run: pnpm exec ls-lint --config '.ls-lint.yaml'
Expand Down Expand Up @@ -48,14 +42,14 @@ pre-commit:
stage_fixed: true

eslint:
exclude: '(^|/)pnpm-lock.yaml$'
exclude: '^[\/]*(pnpm-lock\.yaml|lib)$'
glob: '*.{js,mjs,cjs,ts,mts,cts,yml,yaml,json}'
priority: 6
run: pnpm exec eslint --fix {staged_files}
run: pnpm exec eslint --no-warn-ignored --fix {staged_files}
stage_fixed: true

prettier:
exclude: '(^|/)pnpm-lock.yaml$'
exclude: '^[\/]*(pnpm-lock\.yaml|lib)$'
glob: '*.{js,mjs,cjs,ts,mts,cts,yml,yaml,json,md}'
priority: 7
run: pnpm exec prettier --write {staged_files}
Expand Down
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@escapace/pnpm-pack": "0.2.0",
"@escapace/pnpm-pack": "0.4.1",
"@ls-lint/ls-lint": "2.2.3",
"eslint": "9.1.1",
"eslint-config-escapace": "5.0.5",
"lefthook": "1.6.10",
"eslint": "9.3.0",
"eslint-config-escapace": "5.0.12",
"lefthook": "1.6.12",
"prettier": "3.2.5",
"prettier-config-escapace": "1.2.0",
"prettier-config-escapace": "1.2.1",
"syncpack": "12.3.2",
"tsd": "0.31.0",
"typescript": "5.4.5"
},
"engines": {
"node": ">=20.12.0",
"pnpm": ">=8.15.6"
},
"files": [
Expand All @@ -33,14 +32,19 @@
"homepage": "https://github.com/escapace/typelevel",
"license": "MPL-2.0",
"private": false,
"publishConfig": {
"access": "public",
"provenance": true
},
"repository": "escapace/typelevel",
"scripts": {
"build": "rm -rf index.d.ts hkt.d.ts typelevel && tsc --emitDeclarationOnly --declarationDir .",
"lint": "ls-lint --config .ls-lint.yaml && knip && eslint",
"build": "rm -rf index.d.ts hkt.d.ts typelevel && tsc -p tsconfig-build.json --emitDeclarationOnly --declarationDir .",
"format": "eslint --no-warn-ignored --fix && prettier -uw .",
"lint": "ls-lint --config .ls-lint.yaml && eslint",
"pack": "pnpm-pack package --pack-destination lib",
"prepare": "lefthook install",
"test": "echo ok",
"typecheck": "tsc -p test/tsconfig.json --noEmit"
"typecheck": "tsc --noEmit"
},
"sideEffects": false,
"type": "module",
Expand Down
Loading

0 comments on commit 0227d5d

Please sign in to comment.