Skip to content

Commit

Permalink
chore: Remove lint targets, add format.
Browse files Browse the repository at this point in the history
We'll use `eslint` for linting in a subsequent commit.
  • Loading branch information
dhess committed May 14, 2023
1 parent 7b05c85 commit 5cd8716
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
README.md
LICENSE.md
coverage/
node_modules/
dist/
pnpm-lock.yaml
.github/
.direnv/
flake.lock
result*
8 changes: 4 additions & 4 deletions api/github/webhooks/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { createNodeMiddleware, createProbot } = require('probot')
const { createNodeMiddleware, createProbot } = require("probot");

const app = require('../../../')
const app = require("../../../");

module.exports = createNodeMiddleware(app, {
probot: createProbot(),
webhooksPath: '/api/github/webhooks'
})
webhooksPath: "/api/github/webhooks",
});
6 changes: 0 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
files = "^.github/workflows/";
};
};

excludes = [
"LICENSE.md"
"README.md"
"pnpm-lock.yaml"
];
};
};

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"start": "probot run ./index.js",
"test": "jest --coverage",
"update-snapshots": "jest --updateSnapshot",
"posttest": "pnpm run lint",
"lint": "prettier --check '{lib,test,docs}/**/*.{js,json,md}' index.js *.md package.json app.yml",
"lint:fix": "prettier --write '{lib,test,docs}/**/*.{js,json,md}' index.js *.md package.json app.yml"
"format": "prettier --write ."
},
"engines": {
"node": ">=18",
Expand Down

0 comments on commit 5cd8716

Please sign in to comment.