Allow prettier to check more files that it's capable of handling

This commit is contained in:
James M. Greene
2022-09-16 20:35:47 -05:00
parent 45efe60937
commit b030b061cb
3 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
name: Checking formatting name: Check formatting
on: on:
push: push:

5
.prettierignore Normal file
View File

@@ -0,0 +1,5 @@
# Ignore build artifacts
/dist/
# Ignore all Markdown files
*.md

View File

@@ -5,8 +5,8 @@
"description": "A GitHub Action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.", "description": "A GitHub Action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.",
"main": "./dist/index.js", "main": "./dist/index.js",
"scripts": { "scripts": {
"format": "prettier --write 'src/**/*.js'", "format": "prettier --write .",
"format:check": "prettier --check 'src/**/*.js'", "format:check": "prettier --check .",
"prepare": "npm run format && ncc build src/index.js -o dist --source-map --license licenses.txt", "prepare": "npm run format && ncc build src/index.js -o dist --source-map --license licenses.txt",
"test": "jest" "test": "jest"
}, },