Skip to content

Commit

Permalink
chore: add a lint script, lint project (samrum#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
samrum authored May 1, 2021
1 parent 183d261 commit 01cf729
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage
dist
CHANGELOG.md
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"trailingComma": "all"
}
"trailingComma": "all"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "rm -rf dist && rollup -c",
"dev": "rm -rf dist && rollup -c -w",
"lint": "prettier --write .",
"prepublishOnly": "yarn run test && yarn run build",
"prerelease": "yarn run test && yarn run build",
"release": "standard-version --sign",
Expand Down
18 changes: 9 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"target": "ES6",
"strict": true,
"esModuleInterop": true,
"declaration": true,
"moduleResolution": "node",
"resolveJsonModule": true,
},
"exclude": ["node_modules", "test"]
"compilerOptions": {
"target": "ES6",
"strict": true,
"esModuleInterop": true,
"declaration": true,
"moduleResolution": "node",
"resolveJsonModule": true
},
"exclude": ["node_modules", "test"]
}

0 comments on commit 01cf729

Please sign in to comment.