Skip to content

Commit

Permalink
Update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikko Miu committed Feb 13, 2024
1 parent f65d338 commit c454e80
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
public/

resources/_gen/

assets/jsconfig.json
2 changes: 1 addition & 1 deletion assets/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ function onPageLoad() {
sectionExpandToggle();
}

window.addEventListener('load', onDocumentLoad);
window.addEventListener("load", onDocumentLoad);
window.addEventListener("turbo:load", onPageLoad);
14 changes: 6 additions & 8 deletions assets/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["*"]
}
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"clean": "bin/clean",
"prettier": "npm run prettier:cmd -- --write",
"prettier:check": "npm run prettier:cmd -- --check",
"prettier:cmd": "prettier {.devcontainer,.vscode,archetypes,assets,bin,content,layouts,resources,static}/**/*.{css,scss,html,js,json,md,yml,yaml}",
"prettier:cmd": "prettier .",
"stylelint": "stylelint **/*.scss --fix",
"stylelint:check": "stylelint **/*.scss",
"markdownlint:check": "markdownlint content/**/*.md"
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
'postcss-import': {},
"postcss-import": {},
tailwindcss: {},
autoprefixer: {},
},
Expand Down
11 changes: 4 additions & 7 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./{content,layouts}/**/*.{md,html,js}',
'./static/js/*.js',
],
content: ["./{content,layouts}/**/*.{md,html,js}", "./static/js/*.js"],
theme: {
fontFamily: {
sans: ['Fira Code', 'Monaco', "Ubuntu Mono", 'Consolas', 'monospace'],
serif: ['Fira Code', 'Monaco', "Ubuntu Mono", 'Consolas', 'monospace'],
sans: ["Fira Code", "Monaco", "Ubuntu Mono", "Consolas", "monospace"],
serif: ["Fira Code", "Monaco", "Ubuntu Mono", "Consolas", "monospace"],
},
extend: {
colors: {
primary: '#ee72f1',
primary: "#ee72f1",
},
},
},
Expand Down

0 comments on commit c454e80

Please sign in to comment.