Skip to content

Commit

Permalink
[#3] Add prettier and .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed May 20, 2024
1 parent 2e733b5 commit 704d4dc
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# http://EditorConfig.org

root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.csv]
insert_final_newline = false

[*.{php,py}]
indent_size = 4

# https://www.markdownguide.org/basic-syntax/#line-breaks
[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
composer.lock
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
16 changes: 16 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"cssnano": "^7.0.1",
"postcss": "^8.4.38",
"postcss-pxtorem": "^6.1.0",
"prettier": "3.2.5",
"tailwindcss": "^3.4.3",
"vite": "^5.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import '../css/app.css'

console.log('Hello Craft CMS Starter')
console.log('Hello Craft CMS Starter')

0 comments on commit 704d4dc

Please sign in to comment.