Skip to content

Commit

Permalink
Configure Prettier to format *.scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Aug 14, 2023
1 parent 4ebd0bc commit 737029d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
{
files: '*.scss',
options: {
printWidth: 120,
singleQuote: false
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint:editorconfig": "editorconfig-checker",
"lint:html": "html-validate \"deploy/public/**/index.html\"",
"lint:js": "eslint --cache --cache-location .cache/eslint --cache-strategy content --color --ignore-path .gitignore \"**/*.{cjs,js,mjs}\"",
"lint:prettier": "prettier --cache --cache-location .cache/prettier --cache-strategy content --check \"**/*.{json,md,yaml,yml}\"",
"lint:prettier": "prettier --cache --cache-location .cache/prettier --cache-strategy content --check \"**/*.{json,md,scss,yaml,yml}\"",
"lint:scss": "stylelint \"**/*.scss\"",
"check-links": "hyperlink --canonicalroot https://design-system.service.gov.uk/ --internal --recursive --source-maps deploy/public/sitemap.xml | tap-mocha-reporter min"
},
Expand Down

0 comments on commit 737029d

Please sign in to comment.