@averay/codeformat 0.2.25 → 0.2.26
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,18 +1,12 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly '
|
|
2
|
+
readonly 'defensive-css/require-custom-property-fallback': null;
|
|
3
|
+
readonly 'defensive-css/require-flex-wrap': null;
|
|
4
|
+
readonly 'defensive-css/require-scrollbar-gutter': null;
|
|
3
5
|
readonly 'order/order': readonly ["custom-properties", "declarations"];
|
|
4
6
|
readonly 'order/properties-order': readonly [string[], {
|
|
5
7
|
readonly unspecified: "bottomAlphabetical";
|
|
6
8
|
}];
|
|
7
|
-
readonly '
|
|
8
|
-
readonly 'accidental-hover': true;
|
|
9
|
-
readonly 'background-repeat': true;
|
|
10
|
-
readonly 'custom-property-fallbacks': false;
|
|
11
|
-
readonly 'flex-wrapping': false;
|
|
12
|
-
readonly 'scroll-chaining': true;
|
|
13
|
-
readonly 'scrollbar-gutter': false;
|
|
14
|
-
readonly 'vendor-prefix-grouping': true;
|
|
15
|
-
}];
|
|
9
|
+
readonly 'csstools/use-logical': "always";
|
|
16
10
|
readonly 'container-name-pattern': string;
|
|
17
11
|
readonly 'custom-media-pattern': string;
|
|
18
12
|
readonly 'custom-property-pattern': string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import propertiesOrder from '@averay/css-properties-sort-order';
|
|
2
2
|
import recommended from 'stylelint-config-recommended';
|
|
3
3
|
import standard from 'stylelint-config-standard';
|
|
4
|
+
import defensiveCssStrict from 'stylelint-plugin-defensive-css/configs/strict';
|
|
4
5
|
import patterns from "../../lib/cssPatterns.js";
|
|
5
6
|
export default {
|
|
6
7
|
...recommended.rules,
|
|
@@ -28,19 +29,11 @@ export default {
|
|
|
28
29
|
},
|
|
29
30
|
// Extensions
|
|
30
31
|
'csstools/use-logical': 'always',
|
|
32
|
+
...defensiveCssStrict.rules, // Resolve TS4058 error referencing internal types.
|
|
33
|
+
'defensive-css/require-custom-property-fallback': null, // Makes using custom properties too burdensome.
|
|
34
|
+
'defensive-css/require-flex-wrap': null, // Not wrapping is the default for a reason.
|
|
35
|
+
'defensive-css/require-scrollbar-gutter': null, // Ruins the aesthetic to accommodate edge cases.
|
|
31
36
|
'order/order': ['custom-properties', 'declarations'],
|
|
32
37
|
'order/properties-order': [propertiesOrder, { unspecified: 'bottomAlphabetical' }],
|
|
33
|
-
'plugin/use-defensive-css': [
|
|
34
|
-
true,
|
|
35
|
-
{
|
|
36
|
-
'accidental-hover': true,
|
|
37
|
-
'background-repeat': true,
|
|
38
|
-
'custom-property-fallbacks': false, // Makes using custom properties too burdensome.
|
|
39
|
-
'flex-wrapping': false, // Not wrapping is the default for a reason.
|
|
40
|
-
'scroll-chaining': true,
|
|
41
|
-
'scrollbar-gutter': false, // Ruins the aesthetic to accommodate edge cases.
|
|
42
|
-
'vendor-prefix-grouping': true,
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
38
|
};
|
|
46
39
|
//# sourceMappingURL=ruleset-css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-css.js","sourceRoot":"","sources":["../../../rulesets/stylelint/ruleset-css.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,QAAQ,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ruleset-css.js","sourceRoot":"","sources":["../../../rulesets/stylelint/ruleset-css.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,kBAAkB,MAAM,+CAA+C,CAAC;AAE/E,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAEhD,eAAe;IACb,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,QAAQ,CAAC,KAAK;IAEjB,aAAa;IACb,GAAG;QACD,aAAa,EAAE,OAAO;QACtB,iCAAiC,EAAE,IAAI;KACxC;IAED,6BAA6B;IAC7B,GAAG;QACD,2BAA2B,EAAE,IAAI;QACjC,2BAA2B,EAAE,IAAI;QACjC,wBAAwB,EAAE,IAAI;KAC/B;IAED,WAAW;IACX,GAAG;QACD,wBAAwB,EAAE,QAAQ,CAAC,GAAG;QACtC,sBAAsB,EAAE,QAAQ,CAAC,GAAG;QACpC,yBAAyB,EAAE,QAAQ,CAAC,GAAG;QACvC,wBAAwB,EAAE,QAAQ,CAAC,GAAG;QACtC,oBAAoB,EAAE,QAAQ,CAAC,GAAG;QAClC,wBAAwB,EAAE,QAAQ,CAAC,gCAAgC;QACnE,qBAAqB,EAAE,QAAQ,CAAC,KAAK;KACtC;IAED,aAAa;IACb,sBAAsB,EAAE,QAAQ;IAEhC,GAAI,kBAAkB,CAAC,KAA4D,EAAE,mDAAmD;IACxI,gDAAgD,EAAE,IAAI,EAAE,gDAAgD;IACxG,iCAAiC,EAAE,IAAI,EAAE,4CAA4C;IACrF,wCAAwC,EAAE,IAAI,EAAE,iDAAiD;IAEjG,aAAa,EAAE,CAAC,mBAAmB,EAAE,cAAc,CAAC;IACpD,wBAAwB,EAAE,CAAC,eAAe,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;CAC1E,CAAC"}
|
|
@@ -11,20 +11,14 @@ export default function makeStylelintConfig(cssRules?: ConfigRules, scssRules?:
|
|
|
11
11
|
reportInvalidScopeDisables: true;
|
|
12
12
|
reportNeedlessDisables: true;
|
|
13
13
|
rules: {
|
|
14
|
-
'
|
|
14
|
+
'defensive-css/require-custom-property-fallback': null;
|
|
15
|
+
'defensive-css/require-flex-wrap': null;
|
|
16
|
+
'defensive-css/require-scrollbar-gutter': null;
|
|
15
17
|
'order/order': readonly ["custom-properties", "declarations"];
|
|
16
18
|
'order/properties-order': readonly [string[], {
|
|
17
19
|
readonly unspecified: "bottomAlphabetical";
|
|
18
20
|
}];
|
|
19
|
-
'
|
|
20
|
-
readonly 'accidental-hover': true;
|
|
21
|
-
readonly 'background-repeat': true;
|
|
22
|
-
readonly 'custom-property-fallbacks': false;
|
|
23
|
-
readonly 'flex-wrapping': false;
|
|
24
|
-
readonly 'scroll-chaining': true;
|
|
25
|
-
readonly 'scrollbar-gutter': false;
|
|
26
|
-
readonly 'vendor-prefix-grouping': true;
|
|
27
|
-
}];
|
|
21
|
+
'csstools/use-logical': "always";
|
|
28
22
|
'container-name-pattern': string;
|
|
29
23
|
'custom-media-pattern': string;
|
|
30
24
|
'custom-property-pattern': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@averay/codeformat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"author": "Adam Averay (https://adamaveray.com.au/)",
|
|
5
5
|
"homepage": "https://github.com/adamaveray/codeformat",
|
|
6
6
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"build:tsc": "bun --bun x tsc --project tsconfig.build.json --outDir dist",
|
|
30
30
|
"build:php": "cp -R src/php dist/src/ && cp -R rulesets/php dist/rulesets/",
|
|
31
31
|
"test": "bun test",
|
|
32
|
-
"format": "dist/bin/codeformat.js fix",
|
|
33
|
-
"lint": "dist/bin/codeformat.js check",
|
|
32
|
+
"format": "bun run build && dist/bin/codeformat.js fix",
|
|
33
|
+
"lint": "bun run build && dist/bin/codeformat.js check",
|
|
34
34
|
"prepare": "bun --bun x husky",
|
|
35
35
|
"prepack": "bun run build",
|
|
36
|
-
"release": "bun run lint && bun --bun x bumpp && bun publish",
|
|
36
|
+
"release": "bun run lint && bun --bun x bumpp && bun publish --access=public",
|
|
37
37
|
"watch": "bun run build:tsc --watch"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|