Skip to content

Commit 1e529e7

Browse files
committed
feature: @putout/processor-css: drop support of node < 22
1 parent 18d6bec commit 1e529e7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/processor-css/lib/config-loader.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import {createRequire} from 'node:module';
1+
import defaultConfig from '../stylelintrc.json' with {
2+
type: 'json',
3+
};
24

3-
const require = createRequire(import.meta.url);
5+
export {
6+
defaultConfig,
7+
};
48

5-
export const defaultConfig = require('../stylelintrc.json');
69
export const createConfigLoader = ({cosmiconfig}) => async () => {
710
const explorer = cosmiconfig('stylelint', {
811
searchStrategy: 'project',

packages/processor-css/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"supertape": "^11.0.3"
4949
},
5050
"peerDependencies": {
51-
"putout": ">=40"
51+
"putout": ">=41"
5252
},
5353
"license": "MIT",
5454
"engines": {
55-
"node": ">=20"
55+
"node": ">=22"
5656
},
5757
"publishConfig": {
5858
"access": "public"

0 commit comments

Comments
 (0)