@anolilab/stylelint-config 10.1.0 → 10.1.2

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,29 @@
1
+ ## @anolilab/stylelint-config [10.1.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@10.1.1...@anolilab/stylelint-config@10.1.2) (2026-03-27)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deps:** update dependencies, fix breaking changes, add oxlint in… ([#1011](https://github.com/anolilab/javascript-style-guide/issues/1011)) ([1967d7d](https://github.com/anolilab/javascript-style-guide/commit/1967d7d7dcea2349edfcbc1760ef7d5046d84848))
6
+
7
+ ### Styles
8
+
9
+ * cs fixes on md files ([1262ea8](https://github.com/anolilab/javascript-style-guide/commit/1262ea848750c22d227f3591787356f048f02741))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * **@anolilab/eslint-config:** upgraded to 23.0.0
15
+
16
+ ## @anolilab/stylelint-config [10.1.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@10.1.0...@anolilab/stylelint-config@10.1.1) (2026-02-28)
17
+
18
+ ### Bug Fixes
19
+
20
+ * **eslint-config:** disable css/no-invalid-at-rules for Tailwind CSS … ([#1000](https://github.com/anolilab/javascript-style-guide/issues/1000)) ([aa8b26b](https://github.com/anolilab/javascript-style-guide/commit/aa8b26b4cb711ad956a8d6360e2cc9f45d50565e))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * **@anolilab/eslint-config:** upgraded to 22.0.2
26
+
1
27
  ## @anolilab/stylelint-config [10.1.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@10.0.0...@anolilab/stylelint-config@10.1.0) (2026-02-21)
2
28
 
3
29
  ### Miscellaneous Chores
package/README.md CHANGED
@@ -37,17 +37,17 @@
37
37
  ## Propose
38
38
 
39
39
  Our package offers a comprehensive collection of opinionated, yet adaptable configurations for [stylelint](https://stylelint.io/).
40
- These configurations are designed to empower developers in achieving consistent code styling and mitigating common errors. Here's what our package brings to the table:
40
+ These configurations are designed to empower developers in achieving consistent code styling and mitigating common errors. Heres what our package brings to the table:
41
41
 
42
- - A Strong Foundation for Code Styling: We provide a robust starting point for your project's code styling. Our configurations serve as a solid foundation that can be effortlessly extended and modified according to your specific needs. With this flexibility, you can easily tailor the styling rules to align with your project's requirements.
42
+ - A Strong Foundation for Code Styling: We provide a robust starting point for your projects code styling. Our configurations serve as a solid foundation that can be effortlessly extended and modified according to your specific needs. With this flexibility, you can easily tailor the styling rules to align with your projects requirements.
43
43
 
44
- - Enforcing Best Practices: Our package ensures adherence to widely accepted best practices for CSS development. By enforcing consistent indentation, discouraging the use of vendor prefixes, and discouraging unnecessary specificity, we promote cleaner and more maintainable code. These practices help streamline collaboration and enhance the readability of your stylesheets.
44
+ - Enforcing Best Practices: Our package ensures adherence to widely accepted best practices for CSS development. By enforcing consistent indentation, discouraging the use of vendor prefixes, and discouraging unnecessary specificity, we promote cleaner, and more maintainable code. These practices help streamline collaboration and enhance the readability of your stylesheets.
45
45
 
46
- - Error Prevention: Our configurations are equipped to catch common errors that can often go unnoticed. We help you identify and rectify issues like missing units for numeric values, usage of invalid colors, and utilization of unsupported or deprecated CSS features. By proactively highlighting these errors, we aid in improving the overall quality and compatibility of your stylesheets.
46
+ - Error Prevention: Our configurations are equipped to catch common errors that can often go unnoticed. We help you identify and rectify issues like missing units for numeric values, usage of invalid colors, and utilization of unsupported or deprecated CSS features. By proactively highlighting these errors, we aid in improving the overall quality, and compatibility of your stylesheets.
47
47
 
48
- - Consistency Across Codebase: Maintaining consistency throughout your codebase is essential for a polished end result. Our package plays a pivotal role in achieving this objective. By providing clear and consistent rules for code styling, we empower developers to adhere to a unified approach. This not only enhances readability but also simplifies maintenance and collaboration within your team.
48
+ - Consistency Across Codebase: Maintaining consistency throughout your codebase is essential for a polished end result. Our package plays a pivotal role in achieving this objective. By providing clear and consistent rules for code styling, we empower developers to adhere to a unified approach. This not only enhances readability but also simplifies maintenance, and collaboration within your team.
49
49
 
50
- In summary, our package equips developers with opinionated yet flexible stylelint configurations. By ensuring consistent code styling and error prevention, we streamline the development process and foster a more efficient and harmonious coding environment.
50
+ In summary, our package equips developers with opinionated yet flexible stylelint configurations. By ensuring consistent code styling, and error prevention, we streamline the development process and foster a more efficient and harmonious coding environment.
51
51
 
52
52
  ## Install
53
53
 
@@ -65,7 +65,7 @@ pnpm add @anolilab/stylelint-config
65
65
 
66
66
  ## Usage
67
67
 
68
- If you don't have a `.stylelintrc.js` or the other supported file names and `.stylelintignore`, we can create the file for you after installing `@anolilab/stylelint-config`, call `pnpm stylelint-config:install`.
68
+ If you dont have a `.stylelintrc.js` or the other supported filenames and `.stylelintignore`, we can create the file for you after installing `@anolilab/stylelint-config`, call `pnpm stylelint-config:install`.
69
69
 
70
70
  > Note: If the script detects an existing `.stylelintrc.js` file, it will not overwrite it.
71
71
 
@@ -97,18 +97,18 @@ pnpm pkg set scripts.lint:css:fix="pnpm run lint:css --fix"
97
97
 
98
98
  > For `npm` users, replace `pnpm` with `npm` in the above command.
99
99
 
100
- or copy the following to your `package.json`:
100
+ Or copy the following to your `package.json`:
101
101
 
102
102
  ```json
103
- {
103
+ {
104
104
  "scripts": {
105
- "lint:css": "stylelint --config=./.stylelintrc.js '**/*.{js,jsx,tsx,ts,less,css,scss,sass}'",
106
- "lint:css:fix": "stylelint --config=./.stylelintrc.js '**/*.{js,jsx,tsx,ts,less,css,scss,sass}' --fix"
105
+ "lint:css": "stylelint --config=./.stylelintrc.js '**/*.{js,jsx,tsx,ts,less,css,scss,sass}'",
106
+ "lint:css:fix": "stylelint --config=./.stylelintrc.js '**/*.{js,jsx,tsx,ts,less,css,scss,sass}' --fix"
107
107
  }
108
- }
108
+ }
109
109
  ```
110
110
 
111
- This will run `stylelint` on all defined files in your app's directory and its subdirectories.
111
+ This will run `stylelint` on all defined files in your apps directory and its subdirectories.
112
112
  You can customize the files and directories to be linted as needed.
113
113
 
114
114
  > Note: this package use `browserslist` to detect the correct browserslist config.
@@ -132,9 +132,9 @@ The package exports the following configurations, to create your own configurati
132
132
 
133
133
  ## Supported Node.js Versions
134
134
 
135
- Libraries in this ecosystem make the best effort to track [Node.js' release schedule](https://github.com/nodejs/release#release-schedule).
135
+ Libraries in this ecosystem make the best effort to track [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
136
136
 
137
- Here's [a post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
137
+ Heres [a post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
138
138
 
139
139
  ## Contributing
140
140
 
@@ -150,7 +150,7 @@ If you would like to help take a look at the [list of issues](https://github.com
150
150
 
151
151
  ## Made with ❤️ at Anolilab
152
152
 
153
- This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
153
+ This is an open source project and will always remain free to use. If you think its cool, please star it 🌟. [Anolilab](https://anolilab.com/open-source) is a Development and AI Studio. Contact at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or want to say hi!
154
154
 
155
155
  ## License
156
156
 
@@ -165,7 +165,7 @@ The anolilab stylelint-config is open-sourced software licensed under the [MIT][
165
165
  [prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
166
166
  [prs-welcome]: https://github.com/anolilab/javascript-style-guide/blob/main/.github/CONTRIBUTING.md
167
167
  [chat-badge]: https://img.shields.io/discord/902465130518949899.svg?style=for-the-badge
168
- [chat]: https://discord.gg/4VuvwWGaaB
168
+ [chat]: https://discord.com/invite/4VuvwWGaaB
169
169
  [typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
170
170
  [typescript-url]: https://www.typescriptlang.org/
171
171
  [license-url]: https://opensource.org/licenses/MIT
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { fileURLToPath } from "node:url";
2
1
  import path from "node:path";
2
+ import { fileURLToPath } from "node:url";
3
3
 
4
4
  const cconfig = [
5
5
  "./dist/config/best-practices.mjs",
@@ -13,16 +13,17 @@ const cconfig = [
13
13
  ];
14
14
 
15
15
  /**
16
- * @param {string} specifier
17
- * @returns {string}
16
+ * @param {string} specifier - The path specifier to resolve.
17
+ * @returns {string} The resolved absolute path.
18
18
  */
19
19
  const resolvePath = (specifier) => {
20
- const currentModuleDir = path.dirname(fileURLToPath(import.meta.url));
21
- return path.resolve(currentModuleDir, specifier);
20
+ const currentModuleDirectory = path.dirname(fileURLToPath(import.meta.url));
21
+
22
+ return path.resolve(currentModuleDirectory, specifier);
22
23
  };
23
24
 
24
25
  const config = {
25
- extends: [...cconfig.map(resolvePath), "stylelint-config-clean-order"],
26
+ extends: [...cconfig.map((specifier) => resolvePath(specifier)), "stylelint-config-clean-order"],
26
27
  };
27
28
 
28
29
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/stylelint-config",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "description": "Stylelint shareable config for the Anolilab stylesheet guide.",
5
5
  "keywords": [
6
6
  "css",
@@ -171,12 +171,12 @@
171
171
  "stylelint-config:install": "./dist/bin.mjs"
172
172
  },
173
173
  "files": [
174
- "dist",
175
- "README.md",
176
174
  "CHANGELOG.md",
177
175
  "LICENSE.md",
178
- "index.d.ts",
176
+ "README.md",
177
+ "dist",
179
178
  "index.cjs",
179
+ "index.d.ts",
180
180
  "index.mjs"
181
181
  ],
182
182
  "dependencies": {
@@ -190,7 +190,7 @@
190
190
  "stylelint-selector-no-empty": "^1.0.9"
191
191
  },
192
192
  "peerDependencies": {
193
- "postcss": "^8.5.6",
193
+ "postcss": "8.5.8",
194
194
  "stylelint": "^15.11.0 || 16.x"
195
195
  },
196
196
  "engines": {