Skip to content

Commit 700065e

Browse files
authored
chore: bump all compatible (dev) deps (#1171)
1 parent c516d75 commit 700065e

20 files changed

+149
-193
lines changed

.changeset/tough-plums-repeat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"prettier-eslint": patch
3+
---
4+
5+
chore: take `.cjs`, `.cts`, `.mts` into account

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root=true
2+
3+
[*]
4+
indent_style=space
5+
indent_size=2
6+
tab_width=2
7+
end_of_line=lf
8+
charset=utf-8
9+
trim_trailing_whitespace=true
10+
insert_final_newline=true

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config = {
55
'plugin:node-dependencies/recommended'
66
],
77
parserOptions: {
8-
ecmaVersion: 2021
8+
ecmaVersion: 'latest'
99
},
1010
rules: {
1111
'valid-jsdoc': 'off',
@@ -20,7 +20,7 @@ const config = {
2020
],
2121
'import/no-import-module-exports': 'off',
2222
'arrow-parens': ['error', 'as-needed'],
23-
quotes: ['error', 'single', { avoidEscape: true }],
23+
quotes: ['error', 'single', { avoidEscape: true }]
2424
},
2525
settings: {
2626
'import/ignore': ['node_modules', 'src'] // Using CommonJS in src

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
* text=auto
22
*.js text eol=lf
3+
yarn.lock -diff

.github/ISSUE_TEMPLATE.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ Yes || No
2323

2424
**Relevant code or config**
2525

26-
```javascript
26+
```js
2727

2828
```
2929

3030
**What I did:**
3131

32-
33-
3432
**What happened:**
3533

3634
<!-- Please provide the full error message/screenshots/anything -->
@@ -44,8 +42,4 @@ minimal amount of code possible.
4442

4543
**Problem description:**
4644

47-
48-
4945
**Suggested solution:**
50-
51-

.github/dependabot.yml

-78
This file was deleted.

.github/workflows/ci.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
410

511
jobs:
612
ci:
713
runs-on: ubuntu-latest
814

915
strategy:
1016
matrix:
11-
node-version:
12-
- 10
13-
- 12
14-
- 14
17+
node:
1518
- 16
1619
- 18
1720
- 20
21+
- 22
22+
fail-fast: false
1823

1924
steps:
2025
- uses: actions/checkout@v4
2126

22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
27+
- name: Use Node.js ${{ matrix.node }}
28+
uses: actions/setup-node@v4
2429
with:
2530
node-version: ${{ matrix.node }}
2631

@@ -31,6 +36,6 @@ jobs:
3136
run: npm start validate
3237

3338
- name: Check test coverage
34-
uses: codecov/codecov-action@v3
39+
uses: codecov/codecov-action@v5
3540
with:
3641
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

.github/workflows/release.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
pull-requests: write
16+
817
jobs:
918
release:
1019
name: Release
@@ -13,16 +22,15 @@ jobs:
1322
- name: Checkout Repo
1423
uses: actions/checkout@v4
1524
with:
16-
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1725
fetch-depth: 0
1826

19-
- name: Setup Node.js 16
20-
uses: actions/setup-node@v3
27+
- name: Setup Node.js LTS
28+
uses: actions/setup-node@v4
2129
with:
22-
node-version: 16
30+
node-version: lts/*
2331

2432
- name: Install Dependencies
25-
run: npm install
33+
run: npm i
2634

2735
- name: Build
2836
run: npm start build
@@ -31,10 +39,10 @@ jobs:
3139
id: changesets
3240
uses: changesets/action@v1
3341
with:
34-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
35-
publish: npm start release
3642
commit: 'chore: release prettier-eslint'
3743
title: 'chore: release prettier-eslint'
44+
publish: npm start release
3845
env:
3946
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_CONFIG_PROVENANCE: true
4048
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/stale.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ name: Mark stale issues and pull requests
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: '0 0 * * *'
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
610

711
jobs:
812
stale:
9-
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- uses: actions/stale@v8
14-
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
stale-issue-message: 'Stale issue'
17-
stale-pr-message: 'Stale pull request'
18-
stale-issue-label: 'no-issue-activity'
19-
stale-pr-label: 'no-pr-activity'
16+
- uses: actions/stale@v9
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
stale-issue-message: 'Stale issue'
20+
stale-pr-message: 'Stale pull request'
21+
stale-issue-label: 'no-issue-activity'
22+
stale-pr-label: 'no-pr-activity'

.husky/pre-commit

-4
This file was deleted.

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.20.2
1+
v20.19.0

.prettierrc.js

-4
This file was deleted.

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"arrowParens": "avoid",
3+
"singleQuote": true,
4+
"plugins": ["prettier-plugin-pkg", "prettier-plugin-svelte"]
5+
}

.simple-git-hooks.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pre-commit": "npm start validate"
3+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ This allows you to use `eslint` to look for bugs and/or bad practices, and use
151151
## Capturing ESLint messages
152152

153153
```javascript
154-
const {analyze} = require("prettier-eslint");
154+
const { analyze } = require('prettier-eslint');
155155

156156
const text = 'var x = 0;';
157157
const result = await analyze({
158158
text,
159159
eslintConfig: {
160160
rules: { 'no-var': 'error' }
161161
}
162-
})
162+
});
163163
console.log(result.messages);
164164
```
165165

package-scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
release: {
5353
description:
5454
'We automate releases with changesets. This should only be run on GitHub Actions',
55-
script: 'changeset publish',
55+
script: series('clean-pkg-json', 'changeset publish'),
5656
},
5757
validate: {
5858
description:

0 commit comments

Comments
 (0)