Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from swrlab/dev/dependency-upgrades
Browse files Browse the repository at this point in the history
Project updates
  • Loading branch information
frytg authored Mar 11, 2021
2 parents c25d13d + 4ce224b commit cc3afb1
Show file tree
Hide file tree
Showing 11 changed files with 4,718 additions and 1,888 deletions.
21 changes: 0 additions & 21 deletions .editorconfig

This file was deleted.

13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: daily
time: '08:00'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: '08:00'
1 change: 0 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Lint code

on: [push]
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish package to Github

on:
release:
types: [created]

jobs:
github:
runs-on: ubuntu-latest
steps:
- name: 👀 Checkout repo
uses: actions/checkout@v2

- name: 🛠 Setup Node
uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@swrlab'

- name: 📦 Install Dependencies
run: npm install

- name: 🚀 npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
package-lock.json
package.json
yarn.lock
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"@swr/prettier-config"
"@swrlab/swr-prettier-config"
File renamed without changes.
3 changes: 3 additions & 0 deletions configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ module.exports = {
useTabs: true,
},
],
'no-console': 'off',
'sonarjs/cognitive-complexity': ['error', 40],
'one-var': ['error', { let: 'consecutive' }],
},
};
Loading

0 comments on commit cc3afb1

Please sign in to comment.