Skip to content

Commit 6797d5d

Browse files
authored
chore: tiny improvements (#1196)
1 parent 9e154f1 commit 6797d5d

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
* text=auto
2-
*.js text eol=lf
1+
* text=auto eol=lf
32
yarn.lock -diff

.github/workflows/autofix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: write
16+
1417
jobs:
1518
autofix:
1619
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci:
1316
runs-on: ubuntu-latest
@@ -40,4 +43,4 @@ jobs:
4043
- name: Check test coverage
4144
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
4245
with:
43-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
46+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pkg-pr-new.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
publish:
1316
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
run: yarn --immutable
3434

3535
- name: Build
36-
run: yarn start build
36+
run: yarn build
3737

3838
- name: Create Release Pull Request or Publish to npm
3939
id: changesets
4040
uses: changesets/action@v1
4141
with:
4242
commit: 'chore: release prettier-eslint'
4343
title: 'chore: release prettier-eslint'
44-
publish: npm start release
44+
publish: yarn start release
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
NPM_CONFIG_PROVENANCE: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Formats your JavaScript using [`prettier`][prettier] followed by [`eslint --fix`
77
[![version][version-badge]][package] [![downloads][downloads-badge]][npm-stat]
88
[![MIT License][license-badge]][license]
99

10+
[![Open Collective backers and sponsors](https://img.shields.io/opencollective/all/prettier-eslint?style=flat-square)](https://opencollective.com/prettier-eslint)
1011
[![All Contributors](https://img.shields.io/badge/all_contributors-59-orange.svg?style=flat-square)](#contributors)
1112
[![PRs Welcome][prs-badge]][prs] [![Donate][donate-badge]][donate]
1213
[![Code of Conduct][coc-badge]][coc] [![Examples][examples-badge]][examples]

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"prettier-eslint"
3333
],
3434
"scripts": {
35-
"build": "yarn start build",
36-
"format": "yarn start format",
37-
"lint": "yarn start lint",
35+
"build": "nps build",
36+
"format": "nps format",
37+
"lint": "nps lint",
3838
"prepare": "patch-package && simple-git-hooks && yarn-berry-deduplicate || exit 0",
3939
"start": "nps",
40-
"test": "yarn start test"
40+
"test": "nps test"
4141
},
4242
"peerDependencies": {
4343
"prettier-plugin-svelte": "^3.0.0",

0 commit comments

Comments
 (0)