Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠️ [Eslint] Switch to eslint-config-love #52

Merged
merged 7 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/calm-teachers-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"socialitejs": patch
---

Add onlyfans network and update some dependencies.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true,
"es2022": true
},
"extends": ["standard-with-typescript", "plugin:prettier/recommended"],
"extends": ["love", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Labels
name: 🗃️ PR Labels
on: [pull_request_target]

jobs:
Expand All @@ -10,10 +10,10 @@ jobs:
pull-requests: write

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Apply PR labels
- name: 🍭 Apply PR labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: 🤖 Lint
on: [push]

jobs:
Expand All @@ -7,20 +7,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Lint
- name: 🎨 Lint
run: npm run lint

- name: Prettier
- name: 💄 Prettier
run: npm run format
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: 🚀 Release

on:
push:
Expand All @@ -7,28 +7,34 @@ on:

jobs:
release:
name: Release
name: Version and release package
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: 🗳️ Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Create PR or publish to NPM
- name: 🏗️ Build project
run: npm run build

- name: 📣 Create PR or publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
title: '🦋 [Release] Version packages'
commit: '🦋 [Changesets] Prepare for next release'
version: npm run release:version
publish: npm run release:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: 🧪 Test
on: [push]

jobs:
Expand All @@ -7,17 +7,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Test
- name: 🧑‍🔬 Test
run: npm run test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10
20.12
Loading