-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
4,239 additions
and
2,453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@effect/eslint-plugin": minor | ||
--- | ||
|
||
upgrade dprint dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
if [[ ! -d "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin" ]]; then | ||
echo "Cannot find source directory; Did you move it?" | ||
echo "(Looking for "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin")" | ||
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again' | ||
exit 1 | ||
fi | ||
|
||
# rebuild the cache forcefully | ||
_nix_direnv_force_reload=1 direnv exec "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin" true | ||
|
||
# Update the mtime for .envrc. | ||
# This will cause direnv to reload again - but without re-building. | ||
touch "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin/.envrc" | ||
|
||
# Also update the timestamp of whatever profile_rc we have. | ||
# This makes sure that we know we are up to date. | ||
touch -r "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin/.envrc" "/Users/maxwellbrown/Code/github.com/effect-ts/eslint-plugin/.direnv"/*.rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/nix/store/hszghlxf0fp75pwvj2f12vw9sy20rysi-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/nix/store/l4wskml8vcs49mg6w9la715cx10sviwh-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/nix/store/yw15ziknkim1a4a6ii1hhr45i5a6yj82-nix-shell-env |
1,899 changes: 1,899 additions & 0 deletions
1,899
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | ||
}; | ||
outputs = {nixpkgs, ...}: let | ||
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; | ||
forAllSystems = nixpkgs.lib.genAttrs systems; | ||
in { | ||
formatter = forAllSystems ( | ||
system: let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
pkgs.alejandra | ||
); | ||
devShells = forAllSystems ( | ||
system: let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in { | ||
default = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
bun | ||
corepack | ||
deno | ||
nodejs-slim # Node v20.12.2 | ||
]; | ||
}; | ||
} | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"url": "https://github.com/Effect-TS/eslint-plugin/issues" | ||
}, | ||
"homepage": "https://github.com/Effect-TS/eslint-plugin", | ||
"description": "A Language-Service Plugin to Refactor and Diagnostic effect-ts projects", | ||
"description": "A set of ESlint and TypeScript rules to work with Effect", | ||
"tags": [ | ||
"typescript", | ||
"algebraic-data-types", | ||
|
@@ -53,57 +53,66 @@ | |
} | ||
}, | ||
"dependencies": { | ||
"@dprint/formatter": "^0.2.0", | ||
"@dprint/typescript": "^0.85.1", | ||
"diff": "^5.1.0" | ||
"@dprint/formatter": "^0.4.1", | ||
"@dprint/typescript": "^0.91.3", | ||
"diff": "^5.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.22.9", | ||
"@babel/core": "^7.22.9", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.5", | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.2", | ||
"@babel/cli": "^7.24.7", | ||
"@babel/core": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.7", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.7", | ||
"@effect-ts/build-utils": "0.40.7", | ||
"@rollup/pluginutils": "^5.0.2", | ||
"@types/benchmark": "^2.1.2", | ||
"@types/chai": "^4.3.5", | ||
"@types/diff": "^5.0.3", | ||
"@rollup/pluginutils": "^5.1.0", | ||
"@types/benchmark": "^2.1.5", | ||
"@types/chai": "^4.3.16", | ||
"@types/diff": "^5.2.1", | ||
"@types/glob": "^8.1.0", | ||
"@types/jest": "^29.5.3", | ||
"@types/node": "^20.4.5", | ||
"@types/prettier": "2", | ||
"@types/rimraf": "^4.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"@typescript-eslint/rule-tester": "^6.2.1", | ||
"@typescript-eslint/scope-manager": "6.2.1", | ||
"@typescript-eslint/type-utils": "6.2.1", | ||
"@typescript-eslint/types": "^6.2.1", | ||
"@typescript-eslint/utils": "6.2.1", | ||
"@vitest/coverage-v8": "^0.33.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.14.10", | ||
"@typescript-eslint/eslint-plugin": "^7.16.0", | ||
"@typescript-eslint/parser": "^7.16.0", | ||
"@typescript-eslint/rule-tester": "^7.16.0", | ||
"@typescript-eslint/scope-manager": "7.16.0", | ||
"@typescript-eslint/type-utils": "7.16.0", | ||
"@typescript-eslint/types": "^7.16.0", | ||
"@typescript-eslint/utils": "7.16.0", | ||
"@vitest/coverage-v8": "^2.0.2", | ||
"babel-plugin-annotate-pure-calls": "^0.4.0", | ||
"concurrently": "^8.2.0", | ||
"concurrently": "^8.2.2", | ||
"cpx": "^1.5.0", | ||
"eslint": "^8.46.0", | ||
"eslint-import-resolver-typescript": "^3.5.5", | ||
"eslint-plugin-codegen": "0.17.0", | ||
"eslint-plugin-deprecation": "^1.5.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-sort-destructure-keys": "^1.5.0", | ||
"fast-check": "^3.12.0", | ||
"glob": "^10.3.3", | ||
"madge": "^6.1.0", | ||
"picocolors": "^1.0.0", | ||
"prettier": "2", | ||
"rimraf": "^5.0.1", | ||
"ts-node": "^10.9.1", | ||
"ts-patch": "^3.0.2", | ||
"eslint-import-resolver-typescript": "^3.6.1", | ||
"eslint-plugin-codegen": "0.28.0", | ||
"eslint-plugin-deprecation": "^3.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-simple-import-sort": "^12.1.1", | ||
"eslint-plugin-sort-destructure-keys": "^2.0.0", | ||
"fast-check": "^3.19.0", | ||
"glob": "^11.0.0", | ||
"madge": "^7.0.0", | ||
"picocolors": "^1.0.1", | ||
"prettier": "^3.3.2", | ||
"rimraf": "^6.0.1", | ||
"ts-node": "^10.9.2", | ||
"ts-patch": "^3.2.1", | ||
"tslint": "^6.1.3", | ||
"typescript": "^5.1.6", | ||
"typescript": "^5.5.3", | ||
"ultra-runner": "^3.10.5", | ||
"vite": "^4.4.7", | ||
"vitest": "0.33.0" | ||
"vite": "^5.3.3", | ||
"vitest": "2.0.2" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@changesets/[email protected]": "patches/@[email protected]", | ||
"@changesets/[email protected]": "patches/@[email protected]" | ||
}, | ||
"updateConfig": { | ||
"ignoreDependencies": [ | ||
"eslint" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"side": [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js | ||
index 60427457c887f2d72168fecec83d79088c68e3a4..007c3509417baed7ef15a1c6dafecbd57c704fd8 100644 | ||
--- a/dist/changesets-assemble-release-plan.cjs.js | ||
+++ b/dist/changesets-assemble-release-plan.cjs.js | ||
@@ -180,16 +180,6 @@ function determineDependents({ | ||
} of dependencyVersionRanges) { | ||
if (nextRelease.type === "none") { | ||
continue; | ||
- } else if (shouldBumpMajor({ | ||
- dependent, | ||
- depType, | ||
- versionRange, | ||
- releases, | ||
- nextRelease, | ||
- preInfo, | ||
- onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange | ||
- })) { | ||
- type = "major"; | ||
} else if ((!releases.has(dependent) || releases.get(dependent).type === "none") && (config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents === "always" || !semverSatisfies__default["default"](incrementVersion(nextRelease, preInfo), versionRange))) { | ||
switch (depType) { | ||
case "dependencies": | ||
diff --git a/dist/changesets-assemble-release-plan.esm.js b/dist/changesets-assemble-release-plan.esm.js | ||
index f6583cf3f639e1fe4df764a015689dea74127236..c6c843f7912c01dc74bba4c98bcf656d2d37914b 100644 | ||
--- a/dist/changesets-assemble-release-plan.esm.js | ||
+++ b/dist/changesets-assemble-release-plan.esm.js | ||
@@ -169,16 +169,6 @@ function determineDependents({ | ||
} of dependencyVersionRanges) { | ||
if (nextRelease.type === "none") { | ||
continue; | ||
- } else if (shouldBumpMajor({ | ||
- dependent, | ||
- depType, | ||
- versionRange, | ||
- releases, | ||
- nextRelease, | ||
- preInfo, | ||
- onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange | ||
- })) { | ||
- type = "major"; | ||
} else if ((!releases.has(dependent) || releases.get(dependent).type === "none") && (config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents === "always" || !semverSatisfies(incrementVersion(nextRelease, preInfo), versionRange))) { | ||
switch (depType) { | ||
case "dependencies": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/dist/changesets-get-github-info.cjs.js b/dist/changesets-get-github-info.cjs.js | ||
index a74df59f8a5988f458a3476087399f5e6dfe4818..ce5e60ef9916eb0cb76ab1e9dd422abcad752bf6 100644 | ||
--- a/dist/changesets-get-github-info.cjs.js | ||
+++ b/dist/changesets-get-github-info.cjs.js | ||
@@ -251,18 +251,13 @@ async function getInfo(request) { | ||
b = new Date(b.mergedAt); | ||
return a > b ? 1 : a < b ? -1 : 0; | ||
})[0] : null; | ||
- | ||
- if (associatedPullRequest) { | ||
- user = associatedPullRequest.author; | ||
- } | ||
- | ||
return { | ||
user: user ? user.login : null, | ||
pull: associatedPullRequest ? associatedPullRequest.number : null, | ||
links: { | ||
commit: `[\`${request.commit.slice(0, 7)}\`](${data.commitUrl})`, | ||
pull: associatedPullRequest ? `[#${associatedPullRequest.number}](${associatedPullRequest.url})` : null, | ||
- user: user ? `[@${user.login}](${user.url})` : null | ||
+ user: user ? `@${user.login}` : null | ||
} | ||
}; | ||
} | ||
diff --git a/dist/changesets-get-github-info.esm.js b/dist/changesets-get-github-info.esm.js | ||
index 27e5c972ab1202ff16f5124b471f4bbcc46be2b5..3940a8fe86e10cb46d8ff6436dea1103b1839927 100644 | ||
--- a/dist/changesets-get-github-info.esm.js | ||
+++ b/dist/changesets-get-github-info.esm.js | ||
@@ -242,18 +242,13 @@ async function getInfo(request) { | ||
b = new Date(b.mergedAt); | ||
return a > b ? 1 : a < b ? -1 : 0; | ||
})[0] : null; | ||
- | ||
- if (associatedPullRequest) { | ||
- user = associatedPullRequest.author; | ||
- } | ||
- | ||
return { | ||
user: user ? user.login : null, | ||
pull: associatedPullRequest ? associatedPullRequest.number : null, | ||
links: { | ||
commit: `[\`${request.commit.slice(0, 7)}\`](${data.commitUrl})`, | ||
pull: associatedPullRequest ? `[#${associatedPullRequest.number}](${associatedPullRequest.url})` : null, | ||
- user: user ? `[@${user.login}](${user.url})` : null | ||
+ user: user ? `@${user.login}` : null | ||
} | ||
}; | ||
} |
Oops, something went wrong.