Skip to content

Commit 893d742

Browse files
committedNov 17, 2024·
style: format all files with prettier
npx prettier --write .
1 parent 74a6632 commit 893d742

File tree

17 files changed

+234
-262
lines changed

17 files changed

+234
-262
lines changed
 

Diff for: ‎.babelrc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module.exports = {
2-
presets: [
3-
['@babel/preset-env', { targets: { node: '8.15.1' } }],
4-
'@babel/preset-typescript',
5-
],
2+
presets: [['@babel/preset-env', { targets: { node: '8.15.1' } }], '@babel/preset-typescript'],
63
plugins: ['@babel/plugin-proposal-class-properties'],
74

85
env: {

Diff for: ‎.eslintrc.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
module.exports = {
2-
extends: [
3-
'airbnb-base',
4-
'plugin:@typescript-eslint/recommended',
5-
'prettier',
6-
],
2+
extends: ['airbnb-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
73
plugins: ['unicorn', 'import', 'prettier', '@typescript-eslint'],
84
parser: '@typescript-eslint/parser',
95
parserOptions: {
@@ -29,7 +25,10 @@ module.exports = {
2925
// `jest` against the compiled .js results (would require compiling
3026
// the test files as well)?
3127
'unicorn/prefer-at': 'off',
32-
'import/no-extraneous-dependencies': ['error', {'devDependencies': true, 'optionalDependencies': false, 'peerDependencies': false}],
28+
'import/no-extraneous-dependencies': [
29+
'error',
30+
{ devDependencies: true, optionalDependencies: false, peerDependencies: false },
31+
],
3332
},
3433
},
3534
],
@@ -65,7 +64,7 @@ module.exports = {
6564

6665
// Causes issues with enums
6766
'no-shadow': 'off',
68-
'prefer-destructuring': 'off', // Intentionally disabled trash.
67+
'prefer-destructuring': 'off', // Intentionally disabled trash.
6968

7069
// prettier things
7170
'prettier/prettier': 'error',

Diff for: ‎.github/dependabot.yml

+41-41
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,44 @@
66

77
version: 2
88
updates:
9-
- package-ecosystem: 'npm'
10-
directory: '/' # Location of package manifests.
11-
commit-message:
12-
prefix: 'deps'
13-
schedule:
14-
interval: 'weekly'
15-
ignore:
16-
# @types/node should match our minimum supported node.js version ("engine").
17-
- dependency-name: '@types/node'
18-
groups:
19-
eslint:
20-
patterns:
21-
- '@typescript-eslint/*'
22-
- 'eslint*'
23-
babel:
24-
patterns:
25-
- '@babel/*'
26-
- 'babel*'
27-
types:
28-
patterns:
29-
- '@types/*'
30-
exclude-patterns:
31-
- '@types/node'
32-
test:
33-
patterns:
34-
- 'mocha*'
35-
- '@types/mocha'
36-
- 'jest*'
37-
- 'c8'
38-
- 'expect'
39-
# Check for updates to GitHub Actions every week
40-
- package-ecosystem: 'github-actions'
41-
directory: '/'
42-
commit-message:
43-
prefix: 'deps'
44-
schedule:
45-
interval: 'daily'
46-
groups:
47-
github-actions:
48-
patterns:
49-
- '*'
9+
- package-ecosystem: 'npm'
10+
directory: '/' # Location of package manifests.
11+
commit-message:
12+
prefix: 'deps'
13+
schedule:
14+
interval: 'weekly'
15+
ignore:
16+
# @types/node should match our minimum supported node.js version ("engine").
17+
- dependency-name: '@types/node'
18+
groups:
19+
eslint:
20+
patterns:
21+
- '@typescript-eslint/*'
22+
- 'eslint*'
23+
babel:
24+
patterns:
25+
- '@babel/*'
26+
- 'babel*'
27+
types:
28+
patterns:
29+
- '@types/*'
30+
exclude-patterns:
31+
- '@types/node'
32+
test:
33+
patterns:
34+
- 'mocha*'
35+
- '@types/mocha'
36+
- 'jest*'
37+
- 'c8'
38+
- 'expect'
39+
# Check for updates to GitHub Actions every week
40+
- package-ecosystem: 'github-actions'
41+
directory: '/'
42+
commit-message:
43+
prefix: 'deps'
44+
schedule:
45+
interval: 'daily'
46+
groups:
47+
github-actions:
48+
patterns:
49+
- '*'

Diff for: ‎.github/workflows/ci.yml

+68-68
Original file line numberDiff line numberDiff line change
@@ -22,77 +22,77 @@ jobs:
2222
node: ['14', '16', '18', '20']
2323
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
2424
exclude:
25-
- os: macos-latest
26-
node: '14'
27-
- os: macos-latest
28-
node: '16'
29-
- os: windows-latest
30-
node: '14'
31-
- os: windows-latest
32-
node: '16'
25+
- os: macos-latest
26+
node: '14'
27+
- os: macos-latest
28+
node: '16'
29+
- os: windows-latest
30+
node: '14'
31+
- os: windows-latest
32+
node: '16'
3333
include:
34-
- os: ubuntu-latest
35-
NIGHTLY: nvim-linux64.tar.gz
36-
NVIM_BIN_PATH: nvim-linux64/bin
37-
EXTRACT: tar xzf
38-
- os: macos-latest
39-
NIGHTLY: nvim-macos-x86_64.tar.gz
40-
NVIM_BIN_PATH: nvim-macos-x86_64/bin
41-
EXTRACT: tar xzf
42-
- os: windows-latest
43-
NIGHTLY: nvim-win64.zip
44-
NVIM_BIN_PATH: nvim-win64/bin
45-
EXTRACT: unzip
34+
- os: ubuntu-latest
35+
NIGHTLY: nvim-linux64.tar.gz
36+
NVIM_BIN_PATH: nvim-linux64/bin
37+
EXTRACT: tar xzf
38+
- os: macos-latest
39+
NIGHTLY: nvim-macos-x86_64.tar.gz
40+
NVIM_BIN_PATH: nvim-macos-x86_64/bin
41+
EXTRACT: tar xzf
42+
- os: windows-latest
43+
NIGHTLY: nvim-win64.zip
44+
NVIM_BIN_PATH: nvim-win64/bin
45+
EXTRACT: unzip
4646

4747
runs-on: ${{ matrix.os }}
4848

4949
# Steps represent a sequence of tasks that will be executed as part of the job
5050
steps:
51-
- uses: actions/checkout@v4
52-
53-
- uses: actions/setup-node@v4
54-
with:
55-
cache: npm
56-
node-version: ${{ matrix.node }}
57-
58-
- name: update npm (for node.js 14)
59-
if: matrix.node == '14'
60-
run: npm install -g 'npm@^8.8.0'
61-
62-
- name: install neovim
63-
run: |
64-
curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
65-
${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
66-
echo '${{ runner.os }}'
67-
68-
- name: update path (bash)
69-
if: runner.os != 'Windows'
70-
run: echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
71-
72-
- name: update path (windows)
73-
if: runner.os == 'Windows'
74-
run: echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
75-
76-
- name: install dependencies
77-
run: npm ci
78-
79-
- name: build
80-
run: npm run build
81-
82-
- name: lint
83-
# Skip on old Node.js, devDependencies use newish JS features.
84-
if: matrix.node != '14'
85-
run: npm run lint
86-
87-
- name: test
88-
run: |
89-
echo $PATH
90-
which nvim
91-
nvim --version
92-
93-
npm run test-coverage --stream
94-
95-
- uses: codecov/codecov-action@v5
96-
if: matrix.node == '20'
97-
with:
98-
verbose: true # optional (default = false)
51+
- uses: actions/checkout@v4
52+
53+
- uses: actions/setup-node@v4
54+
with:
55+
cache: npm
56+
node-version: ${{ matrix.node }}
57+
58+
- name: update npm (for node.js 14)
59+
if: matrix.node == '14'
60+
run: npm install -g 'npm@^8.8.0'
61+
62+
- name: install neovim
63+
run: |
64+
curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
65+
${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
66+
echo '${{ runner.os }}'
67+
68+
- name: update path (bash)
69+
if: runner.os != 'Windows'
70+
run: echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
71+
72+
- name: update path (windows)
73+
if: runner.os == 'Windows'
74+
run: echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
75+
76+
- name: install dependencies
77+
run: npm ci
78+
79+
- name: build
80+
run: npm run build
81+
82+
- name: lint
83+
# Skip on old Node.js, devDependencies use newish JS features.
84+
if: matrix.node != '14'
85+
run: npm run lint
86+
87+
- name: test
88+
run: |
89+
echo $PATH
90+
which nvim
91+
nvim --version
92+
93+
npm run test-coverage --stream
94+
95+
- uses: codecov/codecov-action@v5
96+
if: matrix.node == '20'
97+
with:
98+
verbose: true # optional (default = false)

0 commit comments

Comments
 (0)