Skip to content

Commit 1932cd7

Browse files
authored
Use .prettierignore so it applies everywhere (#388)
1 parent 70735a5 commit 1932cd7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
coverage
3+
pacakge-lock.json

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"build": "tsc --build",
2626
"postbuild": "chmod +x dist/bin/concurrently.js",
2727
"clean": "tsc --build --clean",
28-
"format": "prettier --ignore-path .gitignore --check '**/{!(package-lock).json,*.y?(a)ml,*.md}'",
28+
"format": "prettier --check '**/*.{json,y?(a)ml,md}'",
2929
"format:fix": "npm run format -- --write",
30-
"lint": "eslint . --ext mjs,js,ts --ignore-path .gitignore",
30+
"lint": "eslint --ignore-path .gitignore --ext mjs,js,ts .",
3131
"lint:fix": "npm run lint -- --fix",
3232
"prepublishOnly": "npm run build",
3333
"report-coverage": "cat coverage/lcov.info | coveralls",
@@ -101,6 +101,6 @@
101101
},
102102
"lint-staged": {
103103
"*.m?{js,ts}": "eslint --fix",
104-
"{!(package-lock).json,*.{y?(a)ml,md}}": "prettier --write"
104+
"*.{json,y?(a)ml,md}": "prettier --write"
105105
}
106106
}

0 commit comments

Comments
 (0)