@servicetitan/stylelint-config 26.4.0 → 27.1.0

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.
@@ -1,8 +1,4 @@
1
- import { Rule } from 'stylelint';
2
- declare const _default: {
3
- ruleName: string;
4
- rule: Rule;
5
- } & {
1
+ declare const _default: import("stylelint").Plugin & {
6
2
  ruleName: string;
7
3
  messages: {
8
4
  rejected: string;
@@ -1 +1 @@
1
- {"version":3,"file":"function-url-no-absolute.d.ts","sourceRoot":"","sources":["../src/function-url-no-absolute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,WAAW,CAAC;;;;;;;;;;AAgDtD,kBAA+E"}
1
+ {"version":3,"file":"function-url-no-absolute.d.ts","sourceRoot":"","sources":["../src/function-url-no-absolute.ts"],"names":[],"mappings":";;;;;;AAgDA,kBAA+E"}
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  const stylelint_1 = require("stylelint");
6
6
  const trim_1 = __importDefault(require("lodash/trim"));
7
- const functionArgumentsSearch = require('stylelint/lib/utils/functionArgumentsSearch');
7
+ const functionArgumentsSearch = require('stylelint/lib/utils/functionArgumentsSearch.cjs');
8
8
  const isAbsoluteUrl = (url) => /^\//.test(url) && !/^\/\//.test(url);
9
9
  const ruleName = '@servicetitan/function-url-no-absolute';
10
10
  const messages = stylelint_1.utils.ruleMessages(ruleName, {
@@ -1 +1 @@
1
- {"version":3,"file":"function-url-no-absolute.js","sourceRoot":"","sources":["../src/function-url-no-absolute.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AAEtD,uDAA+B;AAE/B,MAAM,uBAAuB,GAAG,OAAO,CAAC,6CAA6C,CAI5E,CAAC;AAEV,MAAM,aAAa,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAA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C;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAE3B,iBAAS,MAAM,CAAC,MAAM,CAAC,IAAA,wBAAY,EAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;wBAgI9B,OAAO,CAAC,MAAM,CAAC;AA9HpB,kBA8HqB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;wBA2J9B,OAAO,CAAC,MAAM,CAAC;AAzJpB,kBAyJqB"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  module.exports = {
3
- extends: ['stylelint-config-recommended', 'stylelint-prettier/recommended'],
3
+ extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
4
4
  plugins: ['./function-url-no-absolute', './use-tokens'],
5
5
  overrides: [
6
6
  {
@@ -124,6 +124,33 @@ module.exports = {
124
124
  '@servicetitan/function-url-no-absolute': true,
125
125
  '@servicetitan/use-tokens': true,
126
126
  'no-invalid-position-at-import-rule': null, // Not supported for LESS/SASS. Enable for CSS when https://github.com/stylelint/stylelint/issues/3128 is implemented.
127
+ 'at-rule-empty-line-before': null, // Require or disallow an empty line before at-rules
128
+ 'alpha-value-notation': null, // Specify percentage or number notation for alpha-values
129
+ 'color-function-notation': null, // Specify modern or legacy notation for color-functions
130
+ 'color-hex-length': null, // Specify short or long notation for hex colors
131
+ 'comment-whitespace-inside': null, // Require or disallow whitespace on the inside of comment markers
132
+ 'custom-property-pattern': null, // Specify a pattern for custom properties
133
+ 'declaration-block-no-shorthand-property-overrides': [true, { severity: 'warning' }], // Disallow shorthand properties that override related longhand properties
134
+ 'declaration-empty-line-before': null, // Require or disallow an empty line before declarations
135
+ 'declaration-block-no-redundant-longhand-properties': null, // Disallow redundant longhand properties within declaration-block
136
+ 'font-family-name-quotes': null, // Require or disallow quotes for font family names
137
+ 'function-url-quotes': null, // Require or disallow quotes for urls.
138
+ 'hue-degree-notation': null, // Specify number or angle notation for degree hues
139
+ 'import-notation': null, // Specify string or URL notation for @import rules
140
+ 'keyframes-name-pattern': null, // Specify a pattern for keyframe names
141
+ 'length-zero-no-unit': null, // Disallow units for zero lengths
142
+ 'media-feature-range-notation': null, // Specify context or prefix notation for media feature ranges
143
+ 'media-query-no-invalid': null, // Disallow invalid media queries (should not turn it on for CSS-like languages, such as Sass or Less)
144
+ 'number-max-precision': null, // Limit the number of decimal places allowed in numbers
145
+ 'property-no-vendor-prefix': null, // Disallow vendor prefixes for properties
146
+ 'rule-empty-line-before': null, // Require or disallow an empty line before rules
147
+ 'shorthand-property-no-redundant-values': null, // Disallow redundant values within shorthand properties
148
+ 'selector-class-pattern': null, // Specify a pattern for class selectors
149
+ 'selector-id-pattern': null, // Specify a pattern for ID selectors
150
+ 'selector-not-notation': null, // Specify simple or complex notation for :not() pseudo-class selectors
151
+ 'selector-pseudo-element-colon-notation': null, // Specify single or double colon notation for applicable pseudo-element selectors
152
+ 'value-keyword-case': null, // Specify lowercase or uppercase for keywords values
153
+ 'value-no-vendor-prefix': null, // Specify lowercase or uppercase for keywords values
127
154
  },
128
155
  };
129
156
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,iBAAS;IACL,OAAO,EAAE,CAAC,8BAA8B,EAAE,gCAAgC,CAAC;IAC3E,OAAO,EAAE,CAAC,4BAA4B,EAAE,cAAc,CAAC;IACvD,SAAS,EAAE;QACP;YACI,KAA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ACP,WAAW;oBACX,UAAU;oBACV,UAAU;oBACV,QAAQ;oBACR,SAAS;oBACT,WAAW;oBACX,WAAW;oBACX,YAAY;oBACZ,WAAW;oBACX,SAAS;oBACT,UAAU;iBACb;aACJ;SACJ;QACD,kCAAkC,EAAE;YAChC,IAAI;YACJ;gBACI,mBAAmB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;aAC3C;SACJ;QACD,wCAAwC,EAAE,IAAI;QAC9C,0BAA0B,EAAE,IAAI;QAChC,oCAAoC,EAAE,IAAI,EAAE,sHAAsH;KACrK;CACe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,iBAAS;IACL,OAAO,EAAE,CAAC,2BAA2B,EAAE,gCAAgC,CAAC;IACxE,OAAO,EAAE,CAAC,4BAA4B,EAAE,cAAc,CAAC;IACvD,SAAS,EAAE;QACP;YACI,KAAK,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;YAC9B,YAAY,EAAE,cAAc;SAC/B;QACD;YACI,KAAK,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;YAC9B,YAAY,EAAE,cAAc;SAC/B;KACJ;IACD,KAAK,EAAE;QACH,qBAAqB,EAAE;YACnB,IAAI;YACJ;gBACI;;;mBAGG;gBACH,eAAe,EAAE;oBACb,QAAQ;oBACR,GAAG;oBACH,IAAI;oBACJ,SAAS;oBACT,QAAQ;oBACR,GAAG;oBACH,GAAG;oBACH,SAAS;oBACT,QAAQ;oBACR,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,MAAM;oBACN,OAAO;oBACP,YAAY;oBACZ,OAAO;oBACP,MAAM;oBACN,KAAK;oBACL,KAAK;oBACL,MAAM;oBACN,KAAK;oBACL,MAAM;oBACN,KAAK;oBACL,MAAM;oBACN,IAAI;oBACJ,KAAK;oBACL,KAAK;oBACL,KAAK;oBACL,KAAK;oBACL,UAAU;oBACV,UAAU;oBACV,SAAS;oBACT,WAAW;oB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EAAE,CAAC,EAAE,0EAA0E;QAChK,+BAA+B,EAAE,IAAI,EAAE,wDAAwD;QAC/F,oDAAoD,EAAE,IAAI,EAAE,kEAAkE;QAC9H,yBAAyB,EAAE,IAAI,EAAE,mDAAmD;QACpF,qBAAqB,EAAE,IAAI,EAAE,uCAAuC;QACpE,qBAAqB,EAAE,IAAI,EAAE,mDAAmD;QAChF,iBAAiB,EAAE,IAAI,EAAE,mDAAmD;QAC5E,wBAAwB,EAAE,IAAI,EAAE,uCAAuC;QACvE,qBAAqB,EAAE,IAAI,EAAE,kCAAkC;QAC/D,8BAA8B,EAAE,IAAI,EAAE,8DAA8D;QACpG,wBAAwB,EAAE,IAAI,EAAE,sGAAsG;QACtI,sBAAsB,EAAE,IAAI,EAAE,wDAAwD;QACtF,2BAA2B,EAAE,IAAI,EAAE,0CAA0C;QAC7E,wBAAwB,EAAE,IAAI,EAAE,iDAAiD;QACjF,wCAAwC,EAAE,IAAI,EAAE,wDAAwD;QACxG,wBAAwB,EAAE,IAAI,EAAE,wCAAwC;QACxE,qBAAqB,EAAE,IAAI,EAAE,qCAAqC;QAClE,uBAAuB,EAAE,IAAI,EAAE,uEAAuE;QACtG,wCAAwC,EAAE,IAAI,EAAE,kFAAkF;QAClI,oBAAoB,EAAE,IAAI,EAAE,qDAAqD;QACjF,wBAAwB,EAAE,IAAI,EAAE,qDAAqD;KACxF;CACe,CAAC"}
@@ -1,8 +1,4 @@
1
- import { Rule } from 'stylelint';
2
- declare const _default: {
3
- ruleName: string;
4
- rule: Rule;
5
- } & {
1
+ declare const _default: import("stylelint").Plugin & {
6
2
  ruleName: string;
7
3
  messages: {
8
4
  variableExpected: (expected: string, found: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/use-tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,WAAW,CAAC;;;;;;;qCAkBrB,MAAM,SAAS,MAAM;;;AAkJtD,kBAA+E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/use-tokens/index.ts"],"names":[],"mappings":";;;qCAkBiC,MAAM,SAAS,MAAM;;;AAkJtD,kBAA+E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/stylelint-config",
3
- "version": "26.4.0",
3
+ "version": "27.1.0",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/eslint-stylelint-configurations",
6
6
  "repository": {
@@ -19,21 +19,20 @@
19
19
  "lodash": "~4.17.21",
20
20
  "postcss-less": "~6.0.0",
21
21
  "postcss-sass": "~0.5.0",
22
- "stylelint-config-prettier": "~9.0.5",
23
- "stylelint-config-standard": "~29.0.0",
24
- "stylelint-prettier": "~2.0.0"
22
+ "stylelint-config-standard": "~36.0.1",
23
+ "stylelint-prettier": "~5.0.2"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@servicetitan/tokens": "~12.9.0",
28
27
  "@types/color": "~3.0.3",
29
28
  "@types/lodash": "~4.14.178",
30
29
  "postcss": "~8.4.41",
31
- "stylelint": "~14.16.1"
30
+ "stylelint": "~16.9.0"
32
31
  },
33
32
  "peerDependencies": {
34
33
  "@servicetitan/tokens": "^12.9.0",
35
34
  "postcss": "^8.4.41",
36
- "stylelint": "^14.16.1"
35
+ "stylelint": "^16.9.0"
37
36
  },
38
37
  "publishConfig": {
39
38
  "access": "public"
@@ -41,5 +40,5 @@
41
40
  "cli": {
42
41
  "webpack": false
43
42
  },
44
- "gitHead": "2e4ea0f45727d1519f1d0b2925c9a21b1cb462e5"
43
+ "gitHead": "6eca03725ca72a85b405412c0b8cb934eb341366"
45
44
  }
@@ -2,7 +2,7 @@ import { Rule, createPlugin, utils } from 'stylelint';
2
2
 
3
3
  import trim from 'lodash/trim';
4
4
 
5
- const functionArgumentsSearch = require('stylelint/lib/utils/functionArgumentsSearch') as (
5
+ const functionArgumentsSearch = require('stylelint/lib/utils/functionArgumentsSearch.cjs') as (
6
6
  source: string,
7
7
  functionName: string,
8
8
  callback: (args: string, index: number) => void
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Config } from 'stylelint';
2
2
 
3
3
  export = {
4
- extends: ['stylelint-config-recommended', 'stylelint-prettier/recommended'],
4
+ extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
5
5
  plugins: ['./function-url-no-absolute', './use-tokens'],
6
6
  overrides: [
7
7
  {
@@ -125,5 +125,32 @@ export = {
125
125
  '@servicetitan/function-url-no-absolute': true,
126
126
  '@servicetitan/use-tokens': true,
127
127
  'no-invalid-position-at-import-rule': null, // Not supported for LESS/SASS. Enable for CSS when https://github.com/stylelint/stylelint/issues/3128 is implemented.
128
+ 'at-rule-empty-line-before': null, // Require or disallow an empty line before at-rules
129
+ 'alpha-value-notation': null, // Specify percentage or number notation for alpha-values
130
+ 'color-function-notation': null, // Specify modern or legacy notation for color-functions
131
+ 'color-hex-length': null, // Specify short or long notation for hex colors
132
+ 'comment-whitespace-inside': null, // Require or disallow whitespace on the inside of comment markers
133
+ 'custom-property-pattern': null, // Specify a pattern for custom properties
134
+ 'declaration-block-no-shorthand-property-overrides': [true, { severity: 'warning' }], // Disallow shorthand properties that override related longhand properties
135
+ 'declaration-empty-line-before': null, // Require or disallow an empty line before declarations
136
+ 'declaration-block-no-redundant-longhand-properties': null, // Disallow redundant longhand properties within declaration-block
137
+ 'font-family-name-quotes': null, // Require or disallow quotes for font family names
138
+ 'function-url-quotes': null, // Require or disallow quotes for urls.
139
+ 'hue-degree-notation': null, // Specify number or angle notation for degree hues
140
+ 'import-notation': null, // Specify string or URL notation for @import rules
141
+ 'keyframes-name-pattern': null, // Specify a pattern for keyframe names
142
+ 'length-zero-no-unit': null, // Disallow units for zero lengths
143
+ 'media-feature-range-notation': null, // Specify context or prefix notation for media feature ranges
144
+ 'media-query-no-invalid': null, // Disallow invalid media queries (should not turn it on for CSS-like languages, such as Sass or Less)
145
+ 'number-max-precision': null, // Limit the number of decimal places allowed in numbers
146
+ 'property-no-vendor-prefix': null, // Disallow vendor prefixes for properties
147
+ 'rule-empty-line-before': null, // Require or disallow an empty line before rules
148
+ 'shorthand-property-no-redundant-values': null, // Disallow redundant values within shorthand properties
149
+ 'selector-class-pattern': null, // Specify a pattern for class selectors
150
+ 'selector-id-pattern': null, // Specify a pattern for ID selectors
151
+ 'selector-not-notation': null, // Specify simple or complex notation for :not() pseudo-class selectors
152
+ 'selector-pseudo-element-colon-notation': null, // Specify single or double colon notation for applicable pseudo-element selectors
153
+ 'value-keyword-case': null, // Specify lowercase or uppercase for keywords values
154
+ 'value-no-vendor-prefix': null, // Specify lowercase or uppercase for keywords values
128
155
  },
129
156
  } as Partial<Config>;