Skip to content

Commit

Permalink
feat: hello eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 13, 2024
0 parents commit 8bfbb2c
Show file tree
Hide file tree
Showing 17 changed files with 7,239 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run linters
on: [push]

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run Lint
run: pnpm run lint
38 changes: 38 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Any Commit
on:
push:
branches:
- '**'
tags:
- '!**'

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- run: pnpx pkg-pr-new publish --compact --pnpm
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Dependencies
node_modules

# Logs
*.log*

# Temp directories
.temp
.tmp
.cache

# Yarn
**/.yarn/cache
**/.yarn/*state*

# Generated dirs
dist

# Nuxt
.nuxt
.output
.data
.vercel_build_output
.build-*
.netlify

# Env
.env

# Testing
reports
coverage
*.lcov
.nyc_output

# VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Intellij idea
*.iml
.idea

# OSX
.DS_Store
.AppleDouble
.LSOverride
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Linux
.directory

# Archives
*.zip
*.tgz

2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
32 changes: 32 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"git": {
"requireBranch": "main",
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true,
"releaseName": "v${version}"
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"header": "# Changelog",
"preset": {
"name": "conventionalcommits",
"types": [
{ "type": "feat", "section": "🚀 Features" },
{ "type": "fix", "section": "🩹 Bug Fixes" },
{ "type": "docs", "section": "📖 Documentation" },
{ "type": "refactor", "section": "⚙️ Refactor" },
{ "type": "revert", "section": "🔙 Reverts" }
]
}
}
},
"hooks": {
"before:init": ["pnpm run lint"],
"after:bump": "pnpm run build",
"after:git:release": "echo After git push, before github release",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
}
}
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Changelog

## [1.3.0](https://github.com/alvarosabu/eslint-config/compare/1.2.0...1.3.0) (2024-09-06)


### 🚀 Features

* @antfu/eslint-config v3 ([fd68339](https://github.com/alvarosabu/eslint-config/commit/fd6833923f98163d99619589308b1d0d9d7359de))

## [1.2.0](https://github.com/alvarosabu/eslint-config/compare/1.1.0...1.2.0) (2024-08-19)


### 🚀 Features

* **deps:** updated deps ([57d7ad0](https://github.com/alvarosabu/eslint-config/commit/57d7ad03ade615148b45d07bc1a6d2e8263a7b0e))

## [1.1.0](https://github.com/alvarosabu/eslint-config/compare/1.0.0...1.1.0) (2024-04-10)


### 🚀 Features

* force minor with `@antfu/eslint-config: v2.13.2` ([439dd86](https://github.com/alvarosabu/eslint-config/commit/439dd86116bf2c42b948e987b48062e7891469c7))


### 🩹 Bug Fixes

* type issues ([1127b56](https://github.com/alvarosabu/eslint-config/commit/1127b56c3503d6fdef8204213aa60d27451158c2))

## 1.0.0 (2024-03-08)
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023-present, (alvarosabu) Alvaro Saburido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 8bfbb2c

Please sign in to comment.