Skip to content

Commit

Permalink
Add linting script
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Sep 3, 2022
1 parent 8d2f504 commit fcb571c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/generated/*
/dist
/generated
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"test": "npm run node -- uvu src '.*.test.ts'",
"test:ci": "c8 --reporter lcov npm test",
"posttest": "tsc --noEmit",
"test": "run-p test:suite test:lint test:types",
"test:ci": "run-p test:suite:ci test:lint test:types",
"test:suite": "npm run env -- uvu src '.*.test.ts'",
"test:suite:ci": "npm run env -- c8 --reporter lcov uvu src '.*.test.ts'",
"test:lint": "eslint --max-warnings 0 --cache --ext js,jsx,cjs,mjs,ts,tsx .",
"test:types": "tsc --noEmit",
"prepare": "run-s husky:install build",
"release": "semantic-release",
"husky:install": "husky install",
"node": "env-cmd cross-env NODE_OPTIONS='--no-warnings --loader ts-node/esm/transpile-only'"
"env": "env-cmd cross-env NODE_OPTIONS='--no-warnings --loader ts-node/esm/transpile-only'"
},
"main": "./dist/node.js",
"browser": "./dist/main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test("Get invoices", async () => {

const {
objects: [invoice],
} = await sevDeskClient.getInvoice({ id: firstInvoice.id! });
} = await sevDeskClient.getInvoice({ id: firstInvoice.id });

assertIsInvoice(invoice);
});
Expand Down

0 comments on commit fcb571c

Please sign in to comment.