Skip to content

Commit

Permalink
fixed some lint issues
Browse files Browse the repository at this point in the history
changed @ts-ignore lint error to warning
tidied up some package scripts
added sanity test for dist package
  • Loading branch information
lvl99 committed Jan 8, 2023
1 parent 8e8f6fb commit 9fa9997
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
coverage
.vscode
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": 0
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/ban-ts-comment": "warn"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
5 changes: 5 additions & 0 deletions __tests__/sanity.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const barbell = require("../dist/index");

it("should work as commonjs module", () => {
expect(barbell).toHaveProperty("default");
});
5 changes: 0 additions & 5 deletions dist/lib/barbell.js

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

2 changes: 1 addition & 1 deletion dist/lib/barbell.js.map

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

4 changes: 3 additions & 1 deletion dist/lib/reporter.js

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

Loading

0 comments on commit 9fa9997

Please sign in to comment.