Skip to content

Commit

Permalink
switch to prettier-linter-helpers for dprint diff (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jul 16, 2024
1 parent d7d4adb commit 8c767b7
Show file tree
Hide file tree
Showing 10 changed files with 5,135 additions and 4,361 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-turkeys-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/eslint-plugin": patch
---

switch to prettier-linter-helpers for dprint diff
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake;
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tmp/
build/
dist/
docs/modules
.direnv/
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = {nixpkgs, ...}: let
forAllSystems = function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: function nixpkgs.legacyPackages.${system});
in {
formatter = forAllSystems (pkgs: pkgs.alejandra);
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
corepack
nodejs
];
};
});
};
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"dependencies": {
"@dprint/formatter": "^0.2.0",
"@dprint/typescript": "^0.85.1",
"diff": "^5.1.0"
"prettier-linter-helpers": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.22.9",
Expand All @@ -67,11 +67,11 @@
"@rollup/pluginutils": "^5.0.2",
"@types/benchmark": "^2.1.2",
"@types/chai": "^4.3.5",
"@types/diff": "^5.0.3",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.5",
"@types/prettier": "2",
"@types/prettier-linter-helpers": "^1.0.4",
"@types/rimraf": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
Expand Down Expand Up @@ -109,5 +109,6 @@
"side": [],
"modules": [],
"global": []
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 8c767b7

Please sign in to comment.