Skip to content

Commit 84d80a5

Browse files
chore: prettify other files in the codebase (#361)
* chore: prettify codebase * Update package.json * Update .lintstagedrc
1 parent c4ef1ab commit 84d80a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/pipeline.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- 'alpha'
1313
- '!all-contributors/**'
1414
pull_request:
15-
types: [ opened, synchronize ]
15+
types: [opened, synchronize]
1616

1717
jobs:
1818
code_validation:
@@ -51,8 +51,8 @@ jobs:
5151

5252
strategy:
5353
matrix:
54-
node: [ '10.12', '10', '12.0', '12', '14' ]
55-
eslint: [ '7.5', '7' ]
54+
node: ['10.12', '10', '12.0', '12', '14']
55+
eslint: ['7.5', '7']
5656

5757
steps:
5858
- name: Cancel Previous Runs

.lintstagedrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"prettier --write",
55
"jest --findRelatedTests"
66
],
7-
"*.md": ["prettier --write"]
7+
"*.{json,md,yml}": ["prettier --write"]
88
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"scripts": {
2828
"build": "tsc",
2929
"postbuild": "cpy README.md ./dist && cpy package.json ./dist && cpy LICENSE ./dist",
30+
"format": "prettier --write .",
31+
"format:check": "prettier --check .",
3032
"lint": "eslint . --max-warnings 0 --ext .js,.ts",
3133
"lint:fix": "npm run lint -- --fix",
32-
"format": "prettier --write README.md \"{lib,docs,tests}/**/*.{js,ts,md}\"",
33-
"format:check": "prettier --check README.md \"{lib,docs,tests}/**/*.{js,json,yml,ts,md}\"",
3434
"test": "jest",
3535
"test:ci": "jest --ci --coverage",
3636
"test:update": "npm run test -- --u",

0 commit comments

Comments
 (0)