mirror of
https://github.com/ivuorinen/base-configs-stylelint.git
synced 2026-01-26 03:03:58 +00:00
feat(ci): new release flow, linting
# Conflicts: # .github/workflows/pr-lint.yml # .github/workflows/stale.yml # .github/workflows/sync-labels.yml # Conflicts: # yarn.lock
This commit is contained in:
6
.github/renovate.json
vendored
6
.github/renovate.json
vendored
@@ -1,6 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"github>ivuorinen/renovate-config"
|
||||
]
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["github>ivuorinen/renovate-config"]
|
||||
}
|
||||
|
||||
12
.github/workflows/pr-lint.yml
vendored
12
.github/workflows/pr-lint.yml
vendored
@@ -1,10 +1,8 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
name: Lint Code Base
|
||||
name: Lint PR Code Base
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
|
||||
@@ -25,6 +23,14 @@ jobs:
|
||||
packages: read
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Yarn Lock Changes
|
||||
uses: Simek/yarn-lock-changes@34017425198654c20162a4dfd4f238fbece9636f # v0.12.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Run PR Lint
|
||||
# https://github.com/ivuorinen/actions
|
||||
uses: ivuorinen/actions/pr-lint@fbbb487332f2b01379192eecb73f7252f1cc54d4 # v2025.11.30
|
||||
|
||||
62
.github/workflows/publish.yml
vendored
Normal file
62
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Linter:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
statuses: write
|
||||
contents: read
|
||||
packages: read
|
||||
|
||||
steps:
|
||||
- name: Run PR Lint
|
||||
# https://github.com/ivuorinen/actions
|
||||
uses: ivuorinen/actions/pr-lint@99f3911475dbb5b8d43d314b24c0882997433868 # 25.6.23
|
||||
|
||||
publish:
|
||||
name: Publish
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- Linter
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js Environment
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
with:
|
||||
always-auth: true
|
||||
node-version-file: ".nvmrc"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
scope: "@ivuorinen"
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
||||
id: cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: node-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: yarn install
|
||||
|
||||
- name: Release
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: yarn run semantic-release
|
||||
1
.markdownlintignore
Normal file
1
.markdownlintignore
Normal file
@@ -0,0 +1 @@
|
||||
node_modules/
|
||||
1
.prettierrc.json
Normal file
1
.prettierrc.json
Normal file
@@ -0,0 +1 @@
|
||||
"@ivuorinen/prettier-config"
|
||||
3
.releaserc.json
Normal file
3
.releaserc.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": ["@ivuorinen/semantic-release-config"]
|
||||
}
|
||||
3
.stylelintrc.json
Normal file
3
.stylelintrc.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": ["@ivuorinen/stylelint-config/css"]
|
||||
}
|
||||
69
CHANGELOG.md
69
CHANGELOG.md
@@ -1,114 +1,63 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.18](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.17...@ivuorinen/stylelint-config@0.3.18) (2025-05-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update stylelint-config-recommended-scss to 15.0.0 ([#356](https://github.com/ivuorinen/base-configs/issues/356)) ([8e9d21c](https://github.com/ivuorinen/base-configs/commit/8e9d21c3acca6c203453edd5c2bd628898760dde))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update stylelint-config-recommended-scss to 15.0.0 ([#356](https://github.com/ivuorinen/base-configs/issues/356)) ([8e9d21c](https://github.com/ivuorinen/base-configs/commit/8e9d21c3acca6c203453edd5c2bd628898760dde))
|
||||
|
||||
## [0.3.17](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.16...@ivuorinen/stylelint-config@0.3.17) (2025-04-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update stylelint-order to 7.0.0 ([#353](https://github.com/ivuorinen/base-configs/issues/353)) ([e6f1a12](https://github.com/ivuorinen/base-configs/commit/e6f1a12eaa46f0577e42c17e14d4fa9cef35b780))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update stylelint-order to 7.0.0 ([#353](https://github.com/ivuorinen/base-configs/issues/353)) ([e6f1a12](https://github.com/ivuorinen/base-configs/commit/e6f1a12eaa46f0577e42c17e14d4fa9cef35b780))
|
||||
|
||||
## [0.3.16](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.15...@ivuorinen/stylelint-config@0.3.16) (2025-04-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update stylelint-config-standard to 38.0.0 ([#350](https://github.com/ivuorinen/base-configs/issues/350)) ([aec3f7c](https://github.com/ivuorinen/base-configs/commit/aec3f7cf78715c39dc206e90bd9f4bfece62b724))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update stylelint-config-standard to 38.0.0 ([#350](https://github.com/ivuorinen/base-configs/issues/350)) ([aec3f7c](https://github.com/ivuorinen/base-configs/commit/aec3f7cf78715c39dc206e90bd9f4bfece62b724))
|
||||
|
||||
## 0.3.15 (2025-02-23)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 0.3.14 (2025-02-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a))
|
||||
|
||||
## 0.3.13 (2025-01-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506))
|
||||
|
||||
## [0.3.12](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.11...@ivuorinen/stylelint-config@0.3.12) (2025-01-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update stylelint-config-standard to 37.0.0 ([#323](https://github.com/ivuorinen/base-configs/issues/323)) ([6a5b8ef](https://github.com/ivuorinen/base-configs/commit/6a5b8eff0c59f698b45eb431918fddeca6db4ff9))
|
||||
|
||||
|
||||
|
||||
|
||||
- **deps:** update stylelint-config-standard to 37.0.0 ([#323](https://github.com/ivuorinen/base-configs/issues/323)) ([6a5b8ef](https://github.com/ivuorinen/base-configs/commit/6a5b8eff0c59f698b45eb431918fddeca6db4ff9))
|
||||
|
||||
## [0.3.11](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.10...@ivuorinen/stylelint-config@0.3.11) (2024-12-10)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.10](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.9...@ivuorinen/stylelint-config@0.3.10) (2024-12-10)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.9](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.8...@ivuorinen/stylelint-config@0.3.9) (2024-12-10)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.3.8](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.7...@ivuorinen/stylelint-config@0.3.8) (2024-12-09)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 0.3.7 (2024-11-25)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
@@ -143,7 +92,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.37...@ivuorinen/stylelint-config@0.3.0) (2024-08-21)
|
||||
## [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.37...@ivuorinen/stylelint-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in stylelint ([e4aed31](https://github.com/ivuorinen/base-configs/commit/e4aed31ef984188923eaedf6d8cff8ab36ecf924))
|
||||
|
||||
@@ -365,7 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
# [0.2.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.1.33...@ivuorinen/stylelint-config@0.2.0) (2023-10-25)
|
||||
## [0.2.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.1.33...@ivuorinen/stylelint-config@0.2.0) (2023-10-25)
|
||||
|
||||
### Features
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Usage](#usage)
|
||||
- [CSS <sub><sup>(Default)</sup></sub>](#css-subsupdefaultsupsub)
|
||||
- [CSS (Default)](#css-default)
|
||||
- [SCSS](#scss)
|
||||
- [Extending the config](#extending-the-config)
|
||||
- [Documentations](#documentations)
|
||||
@@ -40,7 +40,7 @@ After installing it, a _`.stylelintrc.json`_ file will be created automatically
|
||||
|
||||
This package provides configuration for CSS and SCSS, you can choose which one you want to extend:
|
||||
|
||||
### CSS <sub><sup>(Default)</sup></sub>
|
||||
### CSS (Default)
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ivuorinenConfig from '@ivuorinen/eslint-config';
|
||||
import ivuorinenConfig from '@ivuorinen/eslint-config'
|
||||
|
||||
export default [
|
||||
...ivuorinenConfig,
|
||||
@@ -9,4 +9,4 @@ export default [
|
||||
// "no-unused-vars": "warn"
|
||||
}
|
||||
}
|
||||
];
|
||||
]
|
||||
|
||||
16
package.json
16
package.json
@@ -50,7 +50,13 @@
|
||||
"url": "git+https://github.com/ivuorinen/base-configs-stylelint.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
"postinstall": "node scripts/postinstall.cjs",
|
||||
"eslint:fix": "eslint '**/*.{js,tsx,ts,mjs,cjs}' --fix",
|
||||
"eslint:report": "eslint '**/*.{js,tsx,ts,mjs,cjs}'",
|
||||
"markdownlint:fix": "markdownlint '**/*.md' --fix",
|
||||
"markdownlint:report": "markdownlint '**/*.md'",
|
||||
"prettier:fix": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --write",
|
||||
"prettier:report": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --check"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.12",
|
||||
@@ -61,5 +67,11 @@
|
||||
"stylelint-order": "^7.0.0",
|
||||
"stylelint-scss": "^6"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230",
|
||||
"devDependencies": {
|
||||
"@ivuorinen/eslint-config": "^0.5.13",
|
||||
"@ivuorinen/markdownlint-config": "^0.3.16",
|
||||
"@ivuorinen/prettier-config": "^0.3.12",
|
||||
"@ivuorinen/semantic-release-config": "^0.3.18"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user