Skip to content

Commit a9af475

Browse files
authored
ESLint: Migrate to flat config, isolate Prettier, fix errors (#120)
1 parent ba3bb36 commit a9af475

23 files changed

+1802
-3093
lines changed

.eslintrc.js

-28
This file was deleted.

.github/dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ updates:
77
groups:
88
dependencies:
99
patterns:
10-
- "*"
10+
- '*'
1111
- package-ecosystem: npm
1212
directory: /
1313
schedule:
1414
interval: monthly
1515
groups:
1616
dependencies:
1717
patterns:
18-
- "*"
18+
- '*'

.github/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ changelog:
2323
- dependencies
2424
- title: 🤷🏻 Other changes
2525
labels:
26-
- "*"
26+
- '*'

.github/workflows/test.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -216,25 +216,25 @@ jobs:
216216
os: [ubuntu-latest, macos-latest, windows-latest]
217217
runs-on: ${{ matrix.os }}
218218
steps:
219-
- uses: actions/checkout@v4
220-
- name: Move pixi.toml
221-
run: mv test/default/* .
222-
- uses: ./
223-
with:
224-
cache: false
225-
pixi-bin-path: custom-bin/pixi${{ matrix.os == 'windows-latest' && '.exe' || '' }}
226-
- run: |
227-
test -f custom-bin/pixi${{ matrix.os == 'windows-latest' && '.exe' || '' }}
228-
pixi --help
229-
which pixi | grep -q custom-bin/pixi
230-
# which pixi should be absolute
231-
which pixi | grep -q "^/"
219+
- uses: actions/checkout@v4
220+
- name: Move pixi.toml
221+
run: mv test/default/* .
222+
- uses: ./
223+
with:
224+
cache: false
225+
pixi-bin-path: custom-bin/pixi${{ matrix.os == 'windows-latest' && '.exe' || '' }}
226+
- run: |
227+
test -f custom-bin/pixi${{ matrix.os == 'windows-latest' && '.exe' || '' }}
228+
pixi --help
229+
which pixi | grep -q custom-bin/pixi
230+
# which pixi should be absolute
231+
which pixi | grep -q "^/"
232232
233233
existing-pixi-bin:
234234
strategy:
235235
matrix:
236236
os: [ubuntu-latest, macos-latest, windows-latest]
237-
ignore-reason: [ none, version, version-latest, url, bin-path]
237+
ignore-reason: [none, version, version-latest, url, bin-path]
238238
runs-on: ${{ matrix.os }}
239239
steps:
240240
- uses: actions/checkout@v4

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,6 @@ lib/**/*
100100

101101
# Ignore jetbrains files
102102
.idea
103+
104+
# ESBuild metafile
105+
metafile*.json

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
}

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
2525
```yml
2626
- uses: prefix-dev/[email protected]
2727
with:
28-
pixi-version: v0.23.0
28+
pixi-version: v0.24.1
2929
cache: true
3030
auth-host: prefix.dev
3131
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
@@ -49,7 +49,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
4949
> groups:
5050
> dependencies:
5151
> patterns:
52-
> - "*"
52+
> - '*'
5353
> ```
5454

5555
## Features
@@ -117,10 +117,10 @@ test:
117117
matrix:
118118
environment: [py311, py312]
119119
steps:
120-
- uses: actions/checkout@v4
121-
- uses: prefix-dev/[email protected]
122-
with:
123-
environments: ${{ matrix.environment }}
120+
- uses: actions/checkout@v4
121+
- uses: prefix-dev/[email protected]
122+
with:
123+
environments: ${{ matrix.environment }}
124124
```
125125

126126
#### Install multiple environments in one job
@@ -216,6 +216,7 @@ You can even run Python scripts like this:
216216
```
217217

218218
If you want to use PowerShell, you need to specify `-Command` as well.
219+
219220
```yml
220221
- run: | # everything here will be run inside of the pixi environment
221222
python --version | Select-String "3.11"
@@ -352,5 +353,5 @@ If you want to see more examples, you can take a look at the [GitHub Workflows o
352353

353354
1. Clone this repository.
354355
2. Run `pnpm install` inside the repository (if you don't have [`pnpm`](https://github.com/pnpm/pnpm) installed, you can install it with `pixi global install pnpm`).
355-
3. Run `pnpm dev` for live transpilation of the TypeScript source code.
356+
3. Run `pnpm dev` for live transpilation of the TypeScript source code.
356357
4. To test the action, you can run [`act`](https://github.com/nektos/act) (inside docker) or use :sparkles: CI driven development :sparkles:.

action.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ inputs:
2727
`$GITHUB_PATH`. If more than one environment is specified in `environments`, this must be the name of the
2828
environment. Defaults to `false`. Requires at least pixi v0.21.0.
2929
locked:
30-
description:
31-
Whether to use `pixi install --locked`. Defaults to `true` when the lockfile is present, otherwise `false`.
30+
description: Whether to use `pixi install --locked`. Defaults to `true` when the lockfile is present, otherwise `false`.
3231
frozen:
3332
description: Whether to use `pixi install --frozen`. Defaults to `false`.
3433
cache:

0 commit comments

Comments
 (0)