@workleap/stylelint-configs 2.0.3 → 2.0.5

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,52 +1,64 @@
1
1
  # @workleap/stylelint-config
2
2
 
3
+ ## 2.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#244](https://github.com/workleap/wl-web-configs/pull/244) [`038d794`](https://github.com/workleap/wl-web-configs/commit/038d794458289e344502a56fd563c71e8d6dd0f8) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies
8
+
9
+ ## 2.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#230](https://github.com/workleap/wl-web-configs/pull/230) [`0a4279c`](https://github.com/workleap/wl-web-configs/commit/0a4279c40b7c2ea76c7e1884a8e2fd744ca9b7c1) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Packages now includes the source codes and sourcemap.
14
+
3
15
  ## 2.0.3
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [#186](https://github.com/gsoft-inc/wl-web-configs/pull/186) [`997054e`](https://github.com/gsoft-inc/wl-web-configs/commit/997054eb66118e5897ce686a446d98ac7ea6abd6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Loosen the dependencies version.
19
+ - [#186](https://github.com/workleap/wl-web-configs/pull/186) [`997054e`](https://github.com/workleap/wl-web-configs/commit/997054eb66118e5897ce686a446d98ac7ea6abd6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Loosen the dependencies version.
8
20
 
9
21
  ## 2.0.2
10
22
 
11
23
  ### Patch Changes
12
24
 
13
- - [#179](https://github.com/gsoft-inc/wl-web-configs/pull/179) [`61d3721`](https://github.com/gsoft-inc/wl-web-configs/commit/61d37216198083ba78cd4b1480e38c8d772a6119) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.
25
+ - [#179](https://github.com/workleap/wl-web-configs/pull/179) [`61d3721`](https://github.com/workleap/wl-web-configs/commit/61d37216198083ba78cd4b1480e38c8d772a6119) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.
14
26
 
15
27
  ## 2.0.1
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [#177](https://github.com/gsoft-inc/wl-web-configs/pull/177) [`8936ce6`](https://github.com/gsoft-inc/wl-web-configs/commit/8936ce677cad205caba2f13a71f5c9208f1dd5e6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated packages dependencies.
31
+ - [#177](https://github.com/workleap/wl-web-configs/pull/177) [`8936ce6`](https://github.com/workleap/wl-web-configs/commit/8936ce677cad205caba2f13a71f5c9208f1dd5e6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated packages dependencies.
20
32
 
21
33
  ## 2.0.0
22
34
 
23
35
  ### Major Changes
24
36
 
25
- - [#98](https://github.com/gsoft-inc/wl-web-configs/pull/98) [`56ca32e`](https://github.com/gsoft-inc/wl-web-configs/commit/56ca32ee3194c51210aacc5189f3ebbec5a4a7b6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - New start, every package has a major version bump
37
+ - [#98](https://github.com/workleap/wl-web-configs/pull/98) [`56ca32e`](https://github.com/workleap/wl-web-configs/commit/56ca32ee3194c51210aacc5189f3ebbec5a4a7b6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - New start, every package has a major version bump
26
38
 
27
39
  ## 1.2.3
28
40
 
29
41
  ### Patch Changes
30
42
 
31
- - [#92](https://github.com/gsoft-inc/wl-web-configs/pull/92) [`66e8f10`](https://github.com/gsoft-inc/wl-web-configs/commit/66e8f1033a987523c65fe9e61f53dac6d2e38777) Thanks [@ofrogon](https://github.com/ofrogon)! - Migrate project from GitHub organization
43
+ - [#92](https://github.com/workleap/wl-web-configs/pull/92) [`66e8f10`](https://github.com/workleap/wl-web-configs/commit/66e8f1033a987523c65fe9e61f53dac6d2e38777) Thanks [@ofrogon](https://github.com/ofrogon)! - Migrate project from GitHub organization
32
44
 
33
45
  ## 1.2.2
34
46
 
35
47
  ### Patch Changes
36
48
 
37
- - [#85](https://github.com/gsoft-inc/wl-web-configs/pull/85) [`bad2df7`](https://github.com/gsoft-inc/wl-web-configs/commit/bad2df75593fb70d431d73bdced653b157c50caa) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated TSUP configuration and added a new SWC config package
49
+ - [#85](https://github.com/workleap/wl-web-configs/pull/85) [`bad2df7`](https://github.com/workleap/wl-web-configs/commit/bad2df75593fb70d431d73bdced653b157c50caa) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated TSUP configuration and added a new SWC config package
38
50
 
39
51
  ## 1.2.1
40
52
 
41
53
  ### Patch Changes
42
54
 
43
- - [#74](https://github.com/gsoft-inc/wl-web-configs/pull/74) [`43c9eb1`](https://github.com/gsoft-inc/wl-web-configs/commit/43c9eb11e61896855666c44beb0e711c82a560a3) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Updated installation documentation
55
+ - [#74](https://github.com/workleap/wl-web-configs/pull/74) [`43c9eb1`](https://github.com/workleap/wl-web-configs/commit/43c9eb11e61896855666c44beb0e711c82a560a3) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Updated installation documentation
44
56
 
45
57
  ## 1.2.0
46
58
 
47
59
  ### Minor Changes
48
60
 
49
- - [#25](https://github.com/gsoft-inc/wl-web-configs/pull/25) [`26447ac`](https://github.com/gsoft-inc/wl-web-configs/commit/26447acc2cb2dca69667e171ab37bca330ecfde5) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Update to repository setups:
61
+ - [#25](https://github.com/workleap/wl-web-configs/pull/25) [`26447ac`](https://github.com/workleap/wl-web-configs/commit/26447acc2cb2dca69667e171ab37bca330ecfde5) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Update to repository setups:
50
62
  - feat: #19 clean, test and lint:types scripts shouldn't be delegated to packages
51
63
  - chore: #18 clean script != reset script
52
64
  - feat: #17 tsup setup
@@ -55,16 +67,16 @@
55
67
 
56
68
  ### Patch Changes
57
69
 
58
- - [#14](https://github.com/gsoft-inc/wl-web-configs/pull/14) [`3da3332`](https://github.com/gsoft-inc/wl-web-configs/commit/3da33327fd24874b9f26568f54d4dad0941753c2) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Update the package.json to update repository url
70
+ - [#14](https://github.com/workleap/wl-web-configs/pull/14) [`3da3332`](https://github.com/workleap/wl-web-configs/commit/3da33327fd24874b9f26568f54d4dad0941753c2) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Update the package.json to update repository url
59
71
 
60
72
  ## 1.1.0
61
73
 
62
74
  ### Minor Changes
63
75
 
64
- - [#9](https://github.com/gsoft-inc/wl-web-configs/pull/9) [`d4365f6`](https://github.com/gsoft-inc/wl-web-configs/commit/d4365f63033989ac4d7358186c188175d5ef60e9) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Updated the documentation
76
+ - [#9](https://github.com/workleap/wl-web-configs/pull/9) [`d4365f6`](https://github.com/workleap/wl-web-configs/commit/d4365f63033989ac4d7358186c188175d5ef60e9) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Updated the documentation
65
77
 
66
78
  ## 1.0.0
67
79
 
68
80
  ### Major Changes
69
81
 
70
- - [#2](https://github.com/gsoft-inc/wl-web-configs/pull/2) [`9d18deb`](https://github.com/gsoft-inc/wl-web-configs/commit/9d18debcaa1704806b04f7045789823245fd1c9b) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Initial commit of the package
82
+ - [#2](https://github.com/workleap/wl-web-configs/pull/2) [`9d18deb`](https://github.com/workleap/wl-web-configs/commit/9d18debcaa1704806b04f7045789823245fd1c9b) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Initial commit of the package
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## Usage
7
7
 
8
- View the [user's documentation](https://gsoft-inc.github.io/wl-web-configs/).
8
+ View the [user's documentation](https://workleap.github.io/wl-web-configs/).
9
9
 
10
10
  ## 🤝 Contributing
11
11
 
@@ -13,4 +13,4 @@ View the [contributor's documentation](../../CONTRIBUTING.md).
13
13
 
14
14
  ## License
15
15
 
16
- Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/workleap-license/blob/master/LICENSE.
16
+ Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/workleap/workleap-license/blob/master/LICENSE.
package/dist/index.js CHANGED
@@ -1,22 +1,13 @@
1
- 'use strict';
2
-
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __commonJS = (cb, mod) => function __require() {
5
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
- };
7
-
8
- // src/index.ts
9
- var require_src = __commonJS({
10
- "src/index.ts"(exports, module) {
11
- var config = {
12
- // Emit errors for `stylelint-disable` comments that don't actually match any lints that need to be disabled.
13
- reportNeedlessDisables: true,
14
- // Emit errors for `stylelint-disable` comments that don't match rules that are specified in the configuration object.
15
- reportInvalidScopeDisables: true,
16
- extends: ["stylelint-config-standard"],
17
- plugins: ["stylelint-prettier"],
18
- defaultSeverity: "warning",
19
- rules: {
1
+ "use strict";
2
+ const config = {
3
+ // Emit errors for `stylelint-disable` comments that don't actually match any lints that need to be disabled.
4
+ reportNeedlessDisables: true,
5
+ // Emit errors for `stylelint-disable` comments that don't match rules that are specified in the configuration object.
6
+ reportInvalidScopeDisables: true,
7
+ extends: ["stylelint-config-standard"],
8
+ plugins: ["stylelint-prettier"],
9
+ defaultSeverity: "warning",
10
+ rules: {
20
11
  // # Rule category: Avoid Errors
21
12
  // Override from the stylelint-config-recommended config.
22
13
  // We don"t use the "no-descending-specificity" rule because we don"t like the way it works.
@@ -25,16 +16,16 @@ var require_src = __commonJS({
25
16
  // We use CSS Modules and it uses :global and :local pseudo classes.
26
17
  // This rule has been taken from https://github.com/pascalduez/stylelint-config-css-modules/blob/main/index.js
27
18
  "selector-pseudo-class-no-unknown": [
28
- true,
29
- {
30
- ignorePseudoClasses: [
31
- "export",
32
- "import",
33
- "global",
34
- "local",
35
- "external"
36
- ]
37
- }
19
+ true,
20
+ {
21
+ ignorePseudoClasses: [
22
+ "export",
23
+ "import",
24
+ "global",
25
+ "local",
26
+ "external"
27
+ ]
28
+ }
38
29
  ],
39
30
  // # Rule category: Enforce conventions
40
31
  // Override from the stylelint-config-standard config.
@@ -58,24 +49,20 @@ var require_src = __commonJS({
58
49
  "declaration-block-single-line-max-declarations": 1,
59
50
  "font-weight-notation": "numeric",
60
51
  "unit-allowed-list": [
61
- "em",
62
- "rem",
63
- "%",
64
- "fr",
65
- "deg",
66
- "vh",
67
- "vw",
68
- "s",
69
- "ch"
70
- // px is not allowed because we use rem units instead.
52
+ "em",
53
+ "rem",
54
+ "%",
55
+ "fr",
56
+ "deg",
57
+ "vh",
58
+ "vw",
59
+ "s",
60
+ "ch"
61
+ // px is not allowed because we use rem units instead.
71
62
  ],
72
63
  // As of Stylelint 15, all stylistic rules have been dropped. They suggest using Prettier instead.
73
64
  "prettier/prettier": true
74
- }
75
- };
76
- module.exports = config;
77
- }
78
- });
79
- var index = require_src();
80
-
81
- module.exports = index;
65
+ }
66
+ };
67
+ module.exports = config;
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAW;IACnB,6GAA6G;IAC7G,sBAAsB,EAAE,IAAI;IAC5B,sHAAsH;IACtH,0BAA0B,EAAE,IAAI;IAChC,OAAO,EAAE,CAAC,2BAA2B,CAAC;IACtC,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,eAAe,EAAE,SAAS;IAC1B,KAAK,EAAE;QACH,gCAAgC;QAEhC,yDAAyD;QACzD,4FAA4F;QAC5F,2BAA2B,EAAE,IAAI;QAEjC,yDAAyD;QACzD,oEAAoE;QACpE,8GAA8G;QAC9G,kCAAkC,EAAE;YAChC,IAAI;YACJ;gBACI,mBAAmB,EAAE;oBACjB,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,OAAO;oBACP,UAAU;iBACb;aACJ;SACJ;QAED,uCAAuC;QAEvC,sDAAsD;QACtD,kDAAkD;QAClD,kBAAkB,EAAE,MAAM;QAE1B,sDAAsD;QACtD,2GAA2G;QAC3G,2EAA2E;QAC3E,0GAA0G;QAC1G,gEAAgE;QAChE,8BAA8B;QAC9B,sCAAsC;QACtC,KAAK;QACL,qFAAqF;QACrF,MAAM;QACN,KAAK;QACL,wBAAwB,EAAE,IAAI;QAE9B,qHAAqH;QACrH,2DAA2D;QAC3D,mBAAmB,EAAE,CAAC;QACtB,gDAAgD,EAAE,CAAC;QACnD,sBAAsB,EAAE,SAAS;QACjC,mBAAmB,EAAE;YACjB,IAAI;YACJ,KAAK;YACL,GAAG;YACH,IAAI;YACJ,KAAK;YACL,IAAI;YACJ,IAAI;YACJ,GAAG;YACH,IAAI;YACJ,sDAAsD;SACzD;QAED,kGAAkG;QAClG,mBAAmB,EAAE,IAAI;KAC5B;CACJ,CAAC;AAKF,iBAAS,MAAM,CAAC"}
package/package.json CHANGED
@@ -2,31 +2,27 @@
2
2
  "name": "@workleap/stylelint-configs",
3
3
  "author": "Workleap",
4
4
  "description": "Workleap recommended Stylelint configurations.",
5
- "version": "2.0.3",
5
+ "version": "2.0.5",
6
6
  "license": "Apache-2.0",
7
- "keywords": [
8
- "workleap",
9
- "stylelint",
10
- "stylelint-plugin",
11
- "config",
12
- "css"
13
- ],
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "provenance": true
10
+ },
14
11
  "exports": {
15
12
  ".": {
16
13
  "require": "./dist/index.js",
17
- "import": "./dist/index.js",
18
- "types": "./dist/index.d.ts"
14
+ "import": "./dist/index.js"
19
15
  }
20
16
  },
21
- "types": "./dist/index.d.ts",
22
17
  "files": [
18
+ "src",
23
19
  "dist",
24
20
  "CHANGELOG.md",
25
21
  "README.md"
26
22
  ],
27
23
  "repository": {
28
24
  "type": "git",
29
- "url": "git+https://github.com/gsoft-inc/wl-web-configs.git",
25
+ "url": "git+https://github.com/workleap/wl-web-configs.git",
30
26
  "directory": "packages/stylelint-configs"
31
27
  },
32
28
  "peerDependencies": {
@@ -41,25 +37,23 @@
41
37
  "optional": true
42
38
  }
43
39
  },
44
- "devDependencies": {
45
- "@types/node": "20.11.25",
46
- "prettier": "3.2.5",
47
- "stylelint": "16.2.1",
48
- "tsup": "8.0.2",
49
- "typescript": "5.4.2",
50
- "@workleap/eslint-plugin": "3.1.0",
51
- "@workleap/tsup-configs": "3.0.4",
52
- "@workleap/typescript-configs": "3.0.2"
53
- },
54
40
  "dependencies": {
55
- "stylelint-config-standard": "^36.0.0",
56
- "stylelint-prettier": "^5.0.0"
41
+ "stylelint-config-standard": "^37.0.0",
42
+ "stylelint-prettier": "^5.0.3"
57
43
  },
58
- "publishConfig": {
59
- "access": "public",
60
- "provenance": true
44
+ "devDependencies": {
45
+ "@types/node": "22.13.14",
46
+ "@typescript-eslint/parser": "8.29.0",
47
+ "eslint": "8.57.0",
48
+ "rimraf": "6.0.1",
49
+ "typescript": "5.8.2",
50
+ "@workleap/eslint-plugin": "3.3.2",
51
+ "@workleap/typescript-configs": "3.0.3"
61
52
  },
62
53
  "scripts": {
63
- "build": "tsup"
54
+ "prebuild": "rimraf dist",
55
+ "build": "tsc --project tsconfig.build.json",
56
+ "eslint": "eslint . --max-warnings=-0 --cache --cache-location node_modules/.cache/eslint",
57
+ "typecheck": "tsc"
64
58
  }
65
59
  }
package/src/index.ts ADDED
@@ -0,0 +1,79 @@
1
+ import type { Config } from "stylelint";
2
+
3
+ const config: Config = {
4
+ // Emit errors for `stylelint-disable` comments that don't actually match any lints that need to be disabled.
5
+ reportNeedlessDisables: true,
6
+ // Emit errors for `stylelint-disable` comments that don't match rules that are specified in the configuration object.
7
+ reportInvalidScopeDisables: true,
8
+ extends: ["stylelint-config-standard"],
9
+ plugins: ["stylelint-prettier"],
10
+ defaultSeverity: "warning",
11
+ rules: {
12
+ // # Rule category: Avoid Errors
13
+
14
+ // Override from the stylelint-config-recommended config.
15
+ // We don"t use the "no-descending-specificity" rule because we don"t like the way it works.
16
+ "no-descending-specificity": null,
17
+
18
+ // Override from the stylelint-config-recommended config.
19
+ // We use CSS Modules and it uses :global and :local pseudo classes.
20
+ // This rule has been taken from https://github.com/pascalduez/stylelint-config-css-modules/blob/main/index.js
21
+ "selector-pseudo-class-no-unknown": [
22
+ true,
23
+ {
24
+ ignorePseudoClasses: [
25
+ "export",
26
+ "import",
27
+ "global",
28
+ "local",
29
+ "external"
30
+ ]
31
+ }
32
+ ],
33
+
34
+ // # Rule category: Enforce conventions
35
+
36
+ // Override from the stylelint-config-standard config.
37
+ // We prefer using the long hex format for colors.
38
+ "color-hex-length": "long",
39
+
40
+ // Override from the stylelint-config-standard config.
41
+ // We use CSS Modules and the apps usually use camelCase since it can be used a a JavaScript variable name.
42
+ // Ex: .myClass can be used as a JavaScript variable name (styles.myClass).
43
+ // if we had used kebab-case (my-class) then we would have to use styles["my-class"] which is not as nice.
44
+ // in our design system however, i would add the following rule:
45
+ // "selector-class-pattern": [
46
+ // "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
47
+ // {
48
+ // message: (selector) => `Expected class selector "${selector}" to be kebab-case`,
49
+ // },
50
+ // ],
51
+ "selector-class-pattern": null,
52
+
53
+ // These next rules do not exist in the stylelint-config-recommended config nor the stylelint-config-standard config.
54
+ // We are adding them here because we want to enforce them.
55
+ "max-nesting-depth": 2,
56
+ "declaration-block-single-line-max-declarations": 1,
57
+ "font-weight-notation": "numeric",
58
+ "unit-allowed-list": [
59
+ "em",
60
+ "rem",
61
+ "%",
62
+ "fr",
63
+ "deg",
64
+ "vh",
65
+ "vw",
66
+ "s",
67
+ "ch"
68
+ // px is not allowed because we use rem units instead.
69
+ ],
70
+
71
+ // As of Stylelint 15, all stylistic rules have been dropped. They suggest using Prettier instead.
72
+ "prettier/prettier": true
73
+ }
74
+ };
75
+
76
+ // Using TypeScript "export" keyword until StyleLint support ESM.
77
+ // Otherwise we must deal with a weird CommonJS output from esbuild which is not worth it.
78
+ // For more info, see: https://github.com/evanw/esbuild/issues/1079
79
+ export = config;
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Config } from 'stylelint';
2
-
3
- declare const config: Config;
4
-
5
- export { config as default };