Skip to content

Commit cbabb10

Browse files
chore: update dependencies to latest minor version (#5)
* chore: update dependencies to latest minor version * chore: run Prettier on codebase
1 parent 7719275 commit cbabb10

File tree

15 files changed

+453
-449
lines changed

15 files changed

+453
-449
lines changed

.eslintrc.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
root: true
22

33
extends:
4-
- plugin:@mysticatea/es2020
4+
- plugin:@mysticatea/es2020
55

66
rules:
7-
"@mysticatea/prettier": "off"
7+
"@mysticatea/prettier": "off"
88

99
overrides:
10-
- files:
11-
- src/**/*.js
12-
- test/**/*.js
13-
extends:
14-
- plugin:@mysticatea/+modules
15-
rules:
16-
init-declarations: "off"
17-
"@mysticatea/node/no-unsupported-features/es-syntax":
18-
- error
19-
- ignores: [modules]
10+
- files:
11+
- src/**/*.js
12+
- test/**/*.js
13+
extends:
14+
- plugin:@mysticatea/+modules
15+
rules:
16+
init-declarations: "off"
17+
"@mysticatea/node/no-unsupported-features/es-syntax":
18+
- error
19+
- ignores: [modules]

.esmrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cache": true,
3-
"debug": true,
4-
"sourceMap": true
2+
"cache": true,
3+
"debug": true,
4+
"sourceMap": true
55
}

.github/workflows/CI.yml

Lines changed: 133 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,137 @@
11
name: CI
22
on:
3-
push:
4-
branches:
5-
# default semantic-release branches
6-
- +([0-9])?(.{+([0-9]),x}).x
7-
- main
8-
- next
9-
- next-major
10-
- beta
11-
- alpha
12-
pull_request:
13-
schedule:
14-
- cron: 0 0 * * 0
3+
push:
4+
branches:
5+
# default semantic-release branches
6+
- +([0-9])?(.{+([0-9]),x}).x
7+
- main
8+
- next
9+
- next-major
10+
- beta
11+
- alpha
12+
pull_request:
13+
schedule:
14+
- cron: 0 0 * * 0
1515

1616
jobs:
17-
lint:
18-
name: ⬣ Lint
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: 🛑 Cancel Previous Runs
22-
uses: styfle/[email protected]
23-
24-
- name: ⬇️ Checkout repo
25-
uses: actions/checkout@v3
26-
27-
- name: ⎔ Setup Node
28-
uses: actions/setup-node@v3
29-
with:
30-
node-version: 18
31-
32-
- name: 📥 Install dependencies
33-
run: npm install
34-
35-
- name: ▶️ Run format:check script
36-
run: npm run format:check
37-
38-
- name: ▶️ Run lint script
39-
run: npm run lint
40-
41-
test:
42-
name: 🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{
43-
matrix.os }})
44-
strategy:
45-
matrix:
46-
eslint: [7]
47-
node: [10, 12.0.0, 12, 14.0.0, 14, 16, 18] # 10.0.0 is missing
48-
os: [ubuntu-latest]
49-
include:
50-
# On other platforms
51-
- os: windows-latest
52-
eslint: 7
53-
node: 18
54-
- os: macos-latest
55-
eslint: 7
56-
node: 18
57-
# On old ESLint versions
58-
- eslint: 6
59-
node: 18
60-
os: ubuntu-latest
61-
# - eslint: 5
62-
# node: 18
63-
# os: ubuntu-latest
64-
# On the minimum supported ESLint/Node.js version
65-
# - eslint: 5.0.0
66-
# node: 10.0.0
67-
# os: ubuntu-latest
68-
runs-on: ${{ matrix.os }}
69-
steps:
70-
- name: 🛑 Cancel Previous Runs
71-
uses: styfle/[email protected]
72-
73-
- name: ⬇️ Checkout repo
74-
uses: actions/checkout@v3
75-
76-
- name: ⎔ Setup Node v${{ matrix.node }}
77-
uses: actions/setup-node@v3
78-
with:
79-
node-version: ${{ matrix.node }}
80-
81-
- name: 📥 Install dependencies
82-
run: npm install
83-
84-
- name: 📥 Install ESLint v${{ matrix.eslint }}
85-
run: npm install --save-dev eslint@${{ matrix.eslint }}
86-
87-
- name: 🏗 Build
88-
run: npm run build
89-
90-
- name: ▶️ Run test script
91-
run: npm run test
92-
93-
- name: ⬆️ Upload coverage report
94-
uses: codecov/codecov-action@v3
95-
96-
release:
97-
name: 🚀 Release
98-
needs: [lint, test]
99-
runs-on: ubuntu-latest
100-
if: github.repository == 'eslint-community/eslint-utils' &&
101-
contains('refs/heads/main,refs/heads/next,refs/heads/beta,refs/heads/alpha',
102-
github.ref) && github.event_name == 'push'
103-
steps:
104-
- name: 🛑 Cancel Previous Runs
105-
uses: styfle/[email protected]
106-
107-
- name: ⬇️ Checkout repo
108-
uses: actions/checkout@v3
109-
110-
- name: ⎔ Setup node
111-
uses: actions/setup-node@v3
112-
with:
113-
node-version: 18
114-
115-
- name: 📥 Install dependencies
116-
run: npm install
117-
118-
- name: 🏗 Build
119-
run: npm run build
120-
121-
- name: 🚀 Release
122-
uses: cycjimmy/semantic-release-action@v3
123-
with:
124-
semantic_version: 19
125-
branches: |
126-
[
127-
'+([0-9])?(.{+([0-9]),x}).x',
128-
'main',
129-
'next',
130-
'next-major',
131-
{name: 'beta', prerelease: true},
132-
{name: 'alpha', prerelease: true}
133-
]
134-
env:
135-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
lint:
18+
name: ⬣ Lint
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: 🛑 Cancel Previous Runs
22+
uses: styfle/[email protected]
23+
24+
- name: ⬇️ Checkout repo
25+
uses: actions/checkout@v3
26+
27+
- name: ⎔ Setup Node
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: 18
31+
32+
- name: 📥 Install dependencies
33+
run: npm install
34+
35+
- name: ▶️ Run format:check script
36+
run: npm run format:check
37+
38+
- name: ▶️ Run lint script
39+
run: npm run lint
40+
41+
test:
42+
name:
43+
🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{
44+
matrix.os }})
45+
strategy:
46+
matrix:
47+
eslint: [7]
48+
node: [10, 12.0.0, 12, 14.0.0, 14, 16, 18] # 10.0.0 is missing
49+
os: [ubuntu-latest]
50+
include:
51+
# On other platforms
52+
- os: windows-latest
53+
eslint: 7
54+
node: 18
55+
- os: macos-latest
56+
eslint: 7
57+
node: 18
58+
# On old ESLint versions
59+
- eslint: 6
60+
node: 18
61+
os: ubuntu-latest
62+
# - eslint: 5
63+
# node: 18
64+
# os: ubuntu-latest
65+
# On the minimum supported ESLint/Node.js version
66+
# - eslint: 5.0.0
67+
# node: 10.0.0
68+
# os: ubuntu-latest
69+
runs-on: ${{ matrix.os }}
70+
steps:
71+
- name: 🛑 Cancel Previous Runs
72+
uses: styfle/[email protected]
73+
74+
- name: ⬇️ Checkout repo
75+
uses: actions/checkout@v3
76+
77+
- name: ⎔ Setup Node v${{ matrix.node }}
78+
uses: actions/setup-node@v3
79+
with:
80+
node-version: ${{ matrix.node }}
81+
82+
- name: 📥 Install dependencies
83+
run: npm install
84+
85+
- name: 📥 Install ESLint v${{ matrix.eslint }}
86+
run: npm install --save-dev eslint@${{ matrix.eslint }}
87+
88+
- name: 🏗 Build
89+
run: npm run build
90+
91+
- name: ▶️ Run test script
92+
run: npm run test
93+
94+
- name: ⬆️ Upload coverage report
95+
uses: codecov/codecov-action@v3
96+
97+
release:
98+
name: 🚀 Release
99+
needs: [lint, test]
100+
runs-on: ubuntu-latest
101+
if: github.repository == 'eslint-community/eslint-utils' &&
102+
contains('refs/heads/main,refs/heads/next,refs/heads/beta,refs/heads/alpha',
103+
github.ref) && github.event_name == 'push'
104+
steps:
105+
- name: 🛑 Cancel Previous Runs
106+
uses: styfle/[email protected]
107+
108+
- name: ⬇️ Checkout repo
109+
uses: actions/checkout@v3
110+
111+
- name: ⎔ Setup node
112+
uses: actions/setup-node@v3
113+
with:
114+
node-version: 18
115+
116+
- name: 📥 Install dependencies
117+
run: npm install
118+
119+
- name: 🏗 Build
120+
run: npm run build
121+
122+
- name: 🚀 Release
123+
uses: cycjimmy/semantic-release-action@v3
124+
with:
125+
semantic_version: 19
126+
branches: |
127+
[
128+
'+([0-9])?(.{+([0-9]),x}).x',
129+
'main',
130+
'next',
131+
'next-major',
132+
{name: 'beta', prerelease: true},
133+
{name: 'alpha', prerelease: true}
134+
]
135+
env:
136+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/no-response.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: 🥺 No Response
22

33
on:
4-
schedule:
5-
# Schedule for five minutes after the hour, every hour
6-
- cron: "5 * * * *"
4+
schedule:
5+
# Schedule for five minutes after the hour, every hour
6+
- cron: "5 * * * *"
77

88
permissions:
9-
issues: write
10-
pull-requests: write
9+
issues: write
10+
pull-requests: write
1111

1212
jobs:
13-
stale:
14-
if: github.repository == 'eslint-community/eslint-utils'
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: 🥺 Handle Ghosting
18-
uses: actions/stale@v6
19-
with:
20-
close-issue-message: >
21-
This issue has been automatically closed because we haven't received a
22-
response from the original author 🙈. This automation helps keep the issue
23-
tracker clean from issues that aren't actionable. Please reach out if you
24-
have more information for us! 🙂
25-
close-pr-message: >
26-
This PR has been automatically closed because we haven't received a
27-
response from the original author 🙈. This automation helps keep the issue
28-
tracker clean from PRs that aren't actionable. Please reach out if you
29-
have more information for us! 🙂
13+
stale:
14+
if: github.repository == 'eslint-community/eslint-utils'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 🥺 Handle Ghosting
18+
uses: actions/stale@v6
19+
with:
20+
close-issue-message: >
21+
This issue has been automatically closed because we haven't received a
22+
response from the original author 🙈. This automation helps keep the issue
23+
tracker clean from issues that aren't actionable. Please reach out if you
24+
have more information for us! 🙂
25+
close-pr-message: >
26+
This PR has been automatically closed because we haven't received a
27+
response from the original author 🙈. This automation helps keep the issue
28+
tracker clean from PRs that aren't actionable. Please reach out if you
29+
have more information for us! 🙂

.nycrc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include:
2-
- src/**/*.js
2+
- src/**/*.js
33
reporter:
4-
- lcov
5-
- text-summary
4+
- lcov
5+
- text-summary
66
require:
7-
- esm
7+
- esm

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
tabWidth: 4,
3+
semi: false,
4+
trailingComma: "all",
5+
}

.prettierrc.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
2+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
33
}

0 commit comments

Comments
 (0)