Skip to content

Commit

Permalink
Docs: Update stylelint (#2564)
Browse files Browse the repository at this point in the history
* Docs: Update stylelint

Finally figured out how to migrate stylelint to esm

* Try to use later node
  • Loading branch information
facelessuser authored Jan 10, 2025
1 parent 94c6bc4 commit c9ef97e
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 985 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
- name: Install dependencies
run: |
python -m pip install --upgrade pip build tox
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.babel.js → gulpfile.babel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import mqpacker from "css-mqpacker"
import terser from '@rollup/plugin-terser'
import {rollup} from "rollup"
import {babel as rollupBabel, getBabelOutputPlugin} from "@rollup/plugin-babel"
import stylelint from "gulp-stylelint"
import gStylelintEsm from 'gulp-stylelint-esm'
import eslint from "gulp-eslint"
import rev from "gulp-rev"
import revReplace from "gulp-rev-replace"
Expand Down Expand Up @@ -63,7 +63,7 @@ const config = {
"./docs/theme/assets/pymdownx-extras/*.js",
"./docs/theme/assets/pymdownx-extras/*.js.map"
],
gulp: "gulpfile.babel.js",
gulp: "gulpfile.babel.mjs",
mkdocsSrc: "./docs/src/mkdocs.yml"
},
folders: {
Expand Down Expand Up @@ -212,7 +212,7 @@ gulp.task("scss:build", gulp.series("scss:build:sass", () => {
gulp.task("scss:lint", () => {
return gulp.src(config.files.scss)
.pipe(
stylelint({
gStylelintEsm({
customSyntax: scss,
reporters: [
{formatter: "string", console: true}
Expand Down
Loading

0 comments on commit c9ef97e

Please sign in to comment.