Skip to content

Commit

Permalink
Use .prettierignore so it applies everywhere (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Nov 19, 2022
1 parent 70735a5 commit 1932cd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
@@ -0,0 +1,3 @@
dist
coverage
pacakge-lock.json
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -25,9 +25,9 @@
"build": "tsc --build",
"postbuild": "chmod +x dist/bin/concurrently.js",
"clean": "tsc --build --clean",
"format": "prettier --ignore-path .gitignore --check '**/{!(package-lock).json,*.y?(a)ml,*.md}'",
"format": "prettier --check '**/*.{json,y?(a)ml,md}'",
"format:fix": "npm run format -- --write",
"lint": "eslint . --ext mjs,js,ts --ignore-path .gitignore",
"lint": "eslint --ignore-path .gitignore --ext mjs,js,ts .",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run build",
"report-coverage": "cat coverage/lcov.info | coveralls",
Expand Down Expand Up @@ -101,6 +101,6 @@
},
"lint-staged": {
"*.m?{js,ts}": "eslint --fix",
"{!(package-lock).json,*.{y?(a)ml,md}}": "prettier --write"
"*.{json,y?(a)ml,md}": "prettier --write"
}
}

0 comments on commit 1932cd7

Please sign in to comment.