Skip to content

Commit

Permalink
chore: add prettier support
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Feb 7, 2021
1 parent 70806a9 commit a839882
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.DS_Store
node_modules
/dist

# (local) env files
.env
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Coverage report
/coverage

# Misc files
.gitignore
.prettierignore
LICENSE
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"arrowParens": "avoid"
}
37 changes: 37 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
"dev": "rollup -c -w",
"validate": "svelte-check",
"clean": "rm -rf dist",
"lint": "prettier -c '**/*'",
"prepublishOnly": "npm run clean && npm run validate && npm run build"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-typescript": "^8.1.1",
"less": "^3.13.1",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.1.2",
"rollup": "^2.38.5",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
Expand Down

0 comments on commit a839882

Please sign in to comment.