@anolilab/stylelint-config 11.0.5 → 11.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## @anolilab/stylelint-config [11.0.6](https://github.com/anolilab/javascript-style-guide/compare/%40anolilab%2Fstylelint-config%4011.0.5...%40anolilab%2Fstylelint-config%4011.0.6) (2026-07-20)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **browserslist-config-anolilab:** upgraded to 9.0.1
7
+ * **@anolilab/eslint-config:** upgraded to 28.0.2
8
+ * **@anolilab/prettier-config:** upgraded to 10.0.2
9
+
1
10
  ## @anolilab/stylelint-config [11.0.5](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@11.0.4...@anolilab/stylelint-config@11.0.5) (2026-07-03)
2
11
 
3
12
 
package/dist/bin.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- var g=Object.defineProperty;var r=(e,o)=>g(e,"name",{value:o,configurable:!0});import{existsSync as a}from"node:fs";import{readFile as d,writeFile as c}from"node:fs/promises";import{join as l}from"node:path";import{exit as s}from"node:process";var u=Object.defineProperty,y=r((e,o)=>u(e,"name",{value:o,configurable:!0}),"s");const t=".stylelintrc",m=y(async(e,o)=>{const n=[t,`${t}.js`,`${t}.cjs`,`${t}.json`,`${t}.yaml`,`${t}.yml`,"stylelint.config.js","stylelint.config.cjs"];for(const f of n)if(a(l(e,f))){console.warn('⚠️ .stylelintrc.js already exists; Make sure that it includes the following for @anolilab/stylelint-config to work as it should: { "extends": ["@anolilab/stylelint-config"] }.');return}const i=l(e,".stylelintrc.js");await c(i,`${o?"export default":"module.exports ="} {
2
+ import{existsSync as a}from"node:fs";import{readFile as y,writeFile as c}from"node:fs/promises";import{join as l}from"node:path";import{exit as i}from"node:process";const t=".stylelintrc",f=async(o,n)=>{const e=[t,`${t}.js`,`${t}.cjs`,`${t}.json`,`${t}.yaml`,`${t}.yml`,"stylelint.config.js","stylelint.config.cjs"];for(const r of e)if(a(l(o,r))){console.warn('⚠️ .stylelintrc.js already exists; Make sure that it includes the following for @anolilab/stylelint-config to work as it should: { "extends": ["@anolilab/stylelint-config"] }.');return}const s=l(o,".stylelintrc.js");await c(s,`${n?"export default":"module.exports ="} {
3
3
  "extends": [
4
4
  "@anolilab/stylelint-config",
5
5
  ]
6
6
  };
7
7
 
8
- `,"utf8")},"writeStylelintRc"),p=y(async e=>{const o=l(e,".stylelintignore");a(o)||await c(o,`package.json
8
+ `,"utf8")},g=async o=>{const n=l(o,".stylelintignore");a(n)||await c(n,`package.json
9
9
  package-lock.json
10
10
  yarn.lock
11
11
  pnpm-lock.yaml
@@ -14,5 +14,5 @@ node_modules/**
14
14
  .next/**
15
15
  dist/**
16
16
 
17
- `,"utf8")},"writeStylelintIgnore");(async()=>{const e=process.cwd(),o=l(e,"package.json");a(o)||(console.error("😬 No package.json found in the current directory. You need to run this command in a directory with a package.json file."),s(1));const n=JSON.parse(await d(o,"utf8"));console.log("Configuring @anolilab/stylelint-config",e,`
18
- `);try{await m(e,n.type==="module"),await p(e),console.log("😎 Everything went well, have fun!"),s(0)}catch(i){console.log("😬 something went wrong:"),console.error(i),s(1)}})();
17
+ `,"utf8")};(async()=>{const o=process.cwd(),n=l(o,"package.json");a(n)||(console.error("😬 No package.json found in the current directory. You need to run this command in a directory with a package.json file."),i(1));const e=JSON.parse(await y(n,"utf8"));console.log("Configuring @anolilab/stylelint-config",o,`
18
+ `);try{await f(o,e.type==="module"),await g(o),console.log("😎 Everything went well, have fun!"),i(0)}catch(s){console.log("😬 something went wrong:"),console.error(s),i(1)}})();
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var r=(e,o)=>s(e,"name",{value:o,configurable:!0});const n=require("node:process"),u=require("browserslist-config-anolilab"),p=r(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),t=p(u),i={plugins:["stylelint-no-unsupported-browser-features"],rules:{"plugin/no-unsupported-browser-features":[!0,{browsers:n.env.NODE_ENV==="production"?t.production:t.modernBrowsers,severity:"warning"}]}};module.exports=i;
1
+ "use strict";const t=require("node:process"),o=require("browserslist-config-anolilab"),s=e=>e&&typeof e=="object"&&"default"in e?e.default:e,r=s(o),n={plugins:["stylelint-no-unsupported-browser-features"],rules:{"plugin/no-unsupported-browser-features":[!0,{browsers:t.env.NODE_ENV==="production"?r.production:r.modernBrowsers,severity:"warning"}]}};module.exports=n;
package/index.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ declare const config: {
2
+ extends: string[];
3
+ };
4
+
5
+ module.exports = config;
package/index.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ declare const config: {
2
+ extends: string[];
3
+ };
4
+
5
+ export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/stylelint-config",
3
- "version": "11.0.5",
3
+ "version": "11.0.6",
4
4
  "description": "Stylelint shareable config for the Anolilab stylesheet guide.",
5
5
  "keywords": [
6
6
  "css",
@@ -176,12 +176,14 @@
176
176
  "README.md",
177
177
  "dist",
178
178
  "index.cjs",
179
+ "index.d.cts",
180
+ "index.d.mts",
179
181
  "index.d.ts",
180
182
  "index.mjs"
181
183
  ],
182
184
  "dependencies": {
183
- "browserslist-config-anolilab": "9.0.0",
184
- "stylelint-config-clean-order": "8.0.2",
185
+ "browserslist-config-anolilab": "9.0.1",
186
+ "stylelint-config-clean-order": "10.0.0",
185
187
  "stylelint-config-standard": "40.0.0",
186
188
  "stylelint-declaration-block-no-ignored-properties": "3.0.0",
187
189
  "stylelint-high-performance-animation": "2.0.0",
@@ -190,7 +192,7 @@
190
192
  "stylelint-selector-no-empty": "^1.0.9"
191
193
  },
192
194
  "peerDependencies": {
193
- "postcss": "8.5.15",
195
+ "postcss": "8.5.20",
194
196
  "stylelint": "^15.11.0 || 16.x"
195
197
  },
196
198
  "engines": {