Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Move prettier config to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonb927 committed Aug 6, 2024
1 parent f13abf7 commit 5fed943
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
8 changes: 5 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export default [
{
parserOptions: {
ecmaVersion: 2024,
sourceType: 'module',
languageOptions: {
parserOptions: {
ecmaVersion: 2024,
sourceType: 'module',
},
},
files: ['*/_assets/scripts/**/*.js'],
},
Expand Down
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"surge": "./node_modules/.bin/surge",
"lint": "eslint --fix && npm run prettier:write",
"lint:nofix": "eslint && npm run prettier",
"prettier": "prettier '*/_assets/scripts/**/*.js' --check",
"prettier:write": "prettier '*/_assets/scripts/**/*.js' --write",
"prettier": "prettier '*.config.js' '*/_assets/scripts/**/*.js' --check",
"prettier:write": "prettier '*.config.js' '*/_assets/scripts/**/*.js' --write",
"brandonb.ca:deploy:dryrun": "cd brandonb.ca && JEKYLL_ENV=production gulp deploy_dryrun",
"brandonb.ca:deploy": "cd brandonb.ca && JEKYLL_ENV=production gulp deploy",
"brandonb.ca:start:dev": "cd brandonb.ca && gulp --noserviceworker",
Expand All @@ -62,13 +62,6 @@
"ve7tzb.ca:start": "cd ve7tzb.ca && gulp",
"ve7tzb.ca:task:generate-share-images": "cd ve7tzb.ca && gulp generate_share_images"
},
"prettier": {
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "avoid"
},
"babel": {
"presets": [
[
Expand Down
10 changes: 10 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @type {import("prettier").Config}
*/
export default {
trailingComma: 'es5',
semi: false,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'avoid',
}

0 comments on commit 5fed943

Please sign in to comment.