Skip to content

Commit e22e13f

Browse files
authored
chore: upgrade deps and use c8/prettier (#166)
1 parent c7e61e5 commit e22e13f

9 files changed

+1233
-2430
lines changed

.c8rc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"reporter": ["lcov"],
3+
"include": ["lib/**/*.js"]
4+
}

.editorconfig

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

.eslintrc.json

-230
This file was deleted.

.github/workflows/npm-publish.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Publish to npm
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
99

1010
jobs:
1111
build:
@@ -16,7 +16,6 @@ jobs:
1616
with:
1717
node-version: 22
1818
- run: npm ci
19-
- run: npx playwright install --with-deps
2019
- run: npm run build --if-present
2120
- run: npm test
2221

@@ -37,6 +36,11 @@ jobs:
3736
- run: npm version ${TAG_NAME} --git-tag-version=false
3837
env:
3938
TAG_NAME: ${{ github.ref_name }}
39+
- run: npm publish --provenance --access public --tag next
40+
if: "github.event.release.prerelease"
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
4043
- run: npm publish --provenance --access public
44+
if: "!github.event.release.prerelease"
4145
env:
4246
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}

.prettierrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"bracketSpacing": false,
3+
"printWidth": 80,
4+
"semi": true,
5+
"singleQuote": true,
6+
"tabWidth": 2,
7+
"trailingComma": "none",
8+
"useTabs": false,
9+
"arrowParens": "always"
10+
}

eslint.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eslintjs from '@eslint/js';
2+
3+
const {configs: eslintConfigs} = eslintjs;
4+
5+
export default [
6+
{
7+
...eslintConfigs.recommended,
8+
files: ['lib/**/*.js'],
9+
}
10+
];

0 commit comments

Comments
 (0)