Skip to content

Commit

Permalink
style: add prettier (#451)
Browse files Browse the repository at this point in the history
* style: add prettier

* style: apply prettier change
  • Loading branch information
MindTooth authored Aug 11, 2023
1 parent 0641340 commit 30a7466
Show file tree
Hide file tree
Showing 20 changed files with 842 additions and 261 deletions.
24 changes: 12 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module.exports = {
"env": {
"browser": true,
"node": true,
"es2021": true
env: {
browser: true,
node: true,
es2021: true,
},
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
extends: ["eslint:recommended", "prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: 13,
sourceType: "module",
},
rules: {
"no-unused-vars": "warn",
},
"rules": {
"no-unused-vars": "warn"
}
};
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# .prettierignore

**/pnpm-lock.yaml

dist

src/github.json
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Prettier Config
module.exports = {
plugins: ["prettier-plugin-packagejson"],
};
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@
</a>
</p>


## Introduction

This is the repo for the `srcery` website. All contributions are
This is the repo for the `srcery` website. All contributions are
welcome and encouraged.

[View site](https://srcery.sh)

## Web Stack

* [Vite](https://vitejs.dev/)
* [Alpine.js](https://alpinejs.dev/)
* [PostCSS](https://postcss.org)
* [TailwindCSS](https://tailwindcss.com)
- [Vite](https://vitejs.dev/)
- [Alpine.js](https://alpinejs.dev/)
- [PostCSS](https://postcss.org)
- [TailwindCSS](https://tailwindcss.com)

## Running Locally

Expand Down Expand Up @@ -85,7 +84,6 @@ pnpm run preview

> NOTE: ./dist folder needs to be built for the preview server to work

## License

MIT License. See `LICENSE` for more information.
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,39 @@
"private": true,
"description": "Srcery theme landing page",
"homepage": "https://srcery.sh",
"scripts": {
"fetch": "node scripts/fetch_gh_data.mjs",
"start": "vite",
"build": "vite build --emptyOutDir",
"preview": "vite preview",
"clean": "rm -f src/github.json"
},
"repository": {
"type": "git",
"url": "https://github.com/srcery-colors/srcery.sh"
},
"license": "MIT",
"author": "Srcery Team",
"scripts": {
"build": "vite build --emptyOutDir",
"clean": "rm -f src/github.json",
"fetch": "node scripts/fetch_gh_data.mjs",
"preview": "vite preview",
"start": "vite"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.2",
"@srcery-colors/srcery-palette": "^1.0.4",
"alpinejs": "^3.12.3",
"devicon": "^2.15.1",
"highlight.js": "^11.8.0"
},
"devDependencies": {
"autoprefixer": "^10.4.14",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"htmlhint": "^1.1.4",
"lodash": "^4.17.21",
"octokit": "^3.1.0",
"postcss": "^8.4.27",
"prettier": "^3.0.1",
"prettier-plugin-packagejson": "^2.4.5",
"tailwindcss": "^3.3.2",
"vite": "^4.3.4",
"vite-plugin-handlebars": "^1.6.0"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.2",
"@srcery-colors/srcery-palette": "^1.0.4",
"alpinejs": "^3.12.3",
"devicon": "^2.15.1",
"highlight.js": "^11.8.0"
},
"packageManager": "pnpm@8.6.12"
}
Loading

0 comments on commit 30a7466

Please sign in to comment.