12 Commits

Author SHA1 Message Date
a1eff3e087 chore: package cleanup 2025-12-03 21:52:10 +02:00
b0e4e355e8 feat: publish workflow 2025-12-03 21:47:55 +02:00
b6cc005af4 chore(deps): upgrade packages 2025-12-03 21:46:44 +02:00
62a96ad4f8 fix(ci): missing write permission 2025-12-03 21:46:44 +02:00
51c5639c1c chore: cr comments. fixes permissions and imports. 2025-12-03 21:46:44 +02:00
af514ef825 chore: rebuild yarn.lock 2025-12-03 21:46:44 +02:00
67ffa64338 chore(deps): upgrade yarn and packages 2025-12-03 21:46:44 +02:00
93b2c27414 chore(deps): update deps, sort package.json 2025-12-03 21:46:44 +02:00
df19e2e97d chore(deps): update yarn dependencies 2025-12-03 21:46:44 +02:00
14076444b4 chore: .nvmrc
# Conflicts:
#	.nvmrc
2025-12-03 21:46:44 +02:00
fa9dbfc10a fix: bump node version requirement to v22
stylelint-config-recommended-scss@15.0.0: The engine "node" is incompatible with this module. Expected version ">=22".
2025-12-03 21:46:44 +02:00
ad609c6c9a feat(ci): new release flow, linting
# Conflicts:
#	.github/workflows/pr-lint.yml
#	.github/workflows/stale.yml
#	.github/workflows/sync-labels.yml

# Conflicts:
#	yarn.lock
2025-12-03 21:46:39 +02:00
14 changed files with 4992 additions and 833 deletions

View File

@@ -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"]
}

View File

@@ -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]
@@ -23,8 +21,17 @@ jobs:
statuses: write
contents: read
packages: read
pull-requests: write
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

76
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,76 @@
---
name: Publish
on:
push:
branches:
- main
permissions: read-all
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
Linter:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
statuses: write
contents: read
packages: read
issues: write
pull-requests: write
steps:
- name: Run PR Lint
# https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@a52399cf74eac2b0963591ab2c6c8eb0f7f50b2d # v2025.12.01
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- Linter
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Setup Node.js Environment
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
always-auth: true
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
scope: "@ivuorinen"
- name: Install and enable corepack
shell: sh
run: npm install -g corepack --force && corepack enable
- name: Cache Node Modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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: Semantic Release
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

1
.markdownlintignore Normal file
View File

@@ -0,0 +1 @@
node_modules/

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
v22

1
.prettierrc.json Normal file
View File

@@ -0,0 +1 @@
"@ivuorinen/prettier-config"

3
.releaserc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@ivuorinen/semantic-release-config"]
}

3
.stylelintrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@ivuorinen/stylelint-config/css"]
}

1
.yarnrc.yml Normal file
View File

@@ -0,0 +1 @@
nodeLinker: node-modules

View File

@@ -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

View File

@@ -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
{

View File

@@ -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"
}
}
];
]

View File

@@ -1,65 +1,76 @@
{
"$schema": "https://www.schemastore.org/package.json",
"name": "@ivuorinen/stylelint-config",
"version": "0.3.19",
"type": "module",
"description": "ivuorinen's shareable configuration for stylelint.",
"author": {
"name": "Ismo Vuorinen",
"url": "https://github.com/ivuorinen"
},
"bugs": {
"url": "https://github.com/ivuorinen/base-configs-stylelint/issues"
},
"engines": {
"node": ">=20"
},
"main": "css/index.cjs",
"module": "css/index.mjs",
"exports": {
".": {
"import": "./css/index.mjs",
"require": "./css/index.cjs"
},
"./css": {
"import": "./scss/index.mjs",
"require": "./scss/index.cjs"
},
"./scss": {
"import": "./scss/index.mjs",
"require": "./scss/index.cjs"
}
},
"files": [
"css/*",
"scss/*",
"scripts/*"
],
"homepage": "https://github.com/ivuorinen/base-configs-stylelint#readme",
"keywords": [
"stylelint-config",
"stylelint",
"config",
"ivuorinen"
],
"license": "MIT",
"publishConfig": {
"access": "public"
"homepage": "https://github.com/ivuorinen/base-configs-stylelint#readme",
"bugs": {
"url": "https://github.com/ivuorinen/base-configs-stylelint/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ivuorinen/base-configs-stylelint.git"
},
"license": "MIT",
"author": {
"name": "Ismo Vuorinen",
"url": "https://github.com/ivuorinen"
},
"maintainers": [
{
"name": "Ismo Vuorinen",
"url": "https://github.com/ivuorinen"
}
],
"type": "module",
"exports": {
".": {
"import": "./css/index.mjs",
"require": "./css/index.cjs"
},
"./css": {
"import": "./css/index.mjs",
"require": "./css/index.cjs"
},
"./scss": {
"import": "./scss/index.mjs",
"require": "./scss/index.cjs"
}
},
"main": "css/index.cjs",
"module": "css/index.mjs",
"files": [
"css/*",
"scss/*",
"scripts/*"
],
"scripts": {
"postinstall": "node scripts/postinstall.cjs"
},
"dependencies": {
"@ivuorinen/config-checker": "^1.1.12",
"postcss": "^8",
"stylelint": "^16",
"stylelint-config-recommended-scss": "^16.0.0",
"stylelint-config-standard": "^39.0.0",
"@ivuorinen/config-checker": "^2.1.1",
"postcss": "^8.5.6",
"stylelint": "^16.26.1",
"stylelint-config-recommended-scss": "^16.0.2",
"stylelint-config-standard": "^39.0.1",
"stylelint-order": "^7.0.0",
"stylelint-scss": "^6"
"stylelint-scss": "^6.12.1"
},
"devDependencies": {
"@ivuorinen/semantic-release-config": "^0.3.18"
},
"packageManager": "yarn@4.12.0",
"engines": {
"node": ">=22"
},
"publishConfig": {
"access": "public"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

5548
yarn.lock

File diff suppressed because it is too large Load Diff