Skip to content

Commit

Permalink
chore: upgrade deps and use c8/prettier (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored Jul 25, 2024
1 parent c7e61e5 commit e22e13f
Show file tree
Hide file tree
Showing 9 changed files with 1,233 additions and 2,430 deletions.
4 changes: 4 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"reporter": ["lcov"],
"include": ["lib/**/*.js"]
}
16 changes: 7 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 4
root = true

[*]
end_of_line = lf
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
230 changes: 0 additions & 230 deletions .eslintrc.json

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish to npm

on:
release:
types: [created]
types: [published]

jobs:
build:
Expand All @@ -16,7 +16,6 @@ jobs:
with:
node-version: 22
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run build --if-present
- run: npm test

Expand All @@ -37,6 +36,11 @@ jobs:
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.ref_name }}
- run: npm publish --provenance --access public --tag next
if: "github.event.release.prerelease"
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
- run: npm publish --provenance --access public
if: "!github.event.release.prerelease"
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bracketSpacing": false,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"arrowParens": "always"
}
10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import eslintjs from '@eslint/js';

const {configs: eslintConfigs} = eslintjs;

export default [
{
...eslintConfigs.recommended,
files: ['lib/**/*.js'],
}
];
Loading

0 comments on commit e22e13f

Please sign in to comment.