Skip to content

Commit c9ef97e

Browse files
authored
Docs: Update stylelint (#2564)
* Docs: Update stylelint Finally figured out how to migrate stylelint to esm * Try to use later node
1 parent 94c6bc4 commit c9ef97e

File tree

4 files changed

+617
-985
lines changed

4 files changed

+617
-985
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Setup Node
108108
uses: actions/setup-node@v4
109109
with:
110-
node-version: '16'
110+
node-version: '22'
111111
- name: Install dependencies
112112
run: |
113113
python -m pip install --upgrade pip build tox

gulpfile.babel.js gulpfile.babel.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import mqpacker from "css-mqpacker"
2121
import terser from '@rollup/plugin-terser'
2222
import {rollup} from "rollup"
2323
import {babel as rollupBabel, getBabelOutputPlugin} from "@rollup/plugin-babel"
24-
import stylelint from "gulp-stylelint"
24+
import gStylelintEsm from 'gulp-stylelint-esm'
2525
import eslint from "gulp-eslint"
2626
import rev from "gulp-rev"
2727
import revReplace from "gulp-rev-replace"
@@ -63,7 +63,7 @@ const config = {
6363
"./docs/theme/assets/pymdownx-extras/*.js",
6464
"./docs/theme/assets/pymdownx-extras/*.js.map"
6565
],
66-
gulp: "gulpfile.babel.js",
66+
gulp: "gulpfile.babel.mjs",
6767
mkdocsSrc: "./docs/src/mkdocs.yml"
6868
},
6969
folders: {
@@ -212,7 +212,7 @@ gulp.task("scss:build", gulp.series("scss:build:sass", () => {
212212
gulp.task("scss:lint", () => {
213213
return gulp.src(config.files.scss)
214214
.pipe(
215-
stylelint({
215+
gStylelintEsm({
216216
customSyntax: scss,
217217
reporters: [
218218
{formatter: "string", console: true}

0 commit comments

Comments
 (0)