@anolilab/stylelint-config 6.0.14 → 7.0.1
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 +48 -0
- package/README.md +2 -4
- package/dist/bin.mjs +18 -0
- package/dist/config/best-practices.cjs +1 -0
- package/dist/config/best-practices.d.cts +18 -0
- package/dist/config/best-practices.mjs +1 -5
- package/dist/config/declaration-block-no-ignored-properties.cjs +1 -0
- package/dist/config/declaration-block-no-ignored-properties.d.cts +8 -0
- package/dist/config/declaration-block-no-ignored-properties.mjs +1 -5
- package/dist/config/high-performance-animation.cjs +1 -0
- package/dist/config/high-performance-animation.d.cts +8 -0
- package/dist/config/high-performance-animation.mjs +1 -5
- package/dist/config/no-unsupported-browser-features.cjs +1 -0
- package/dist/config/no-unsupported-browser-features.d.cts +11 -0
- package/dist/config/no-unsupported-browser-features.mjs +1 -8
- package/dist/config/require-units.cjs +1 -0
- package/dist/config/require-units.d.cts +8 -0
- package/dist/config/require-units.mjs +1 -5
- package/dist/config/selector-no-empty.cjs +1 -0
- package/dist/config/selector-no-empty.d.cts +8 -0
- package/dist/config/selector-no-empty.mjs +1 -5
- package/dist/config/standard.cjs +1 -0
- package/dist/config/standard.d.cts +5 -0
- package/dist/config/standard.mjs +1 -5
- package/dist/config/tailwindcss.cjs +1 -0
- package/dist/config/tailwindcss.d.cts +13 -0
- package/dist/config/tailwindcss.d.mts +0 -1
- package/dist/config/tailwindcss.d.ts +0 -1
- package/dist/config/tailwindcss.mjs +1 -5
- package/index.cjs +15 -0
- package/index.mjs +11 -4
- package/package.json +122 -69
- package/dist/config/a11y.d.mts +0 -16
- package/dist/config/a11y.d.ts +0 -16
- package/dist/config/a11y.js +0 -7
- package/dist/config/a11y.js.map +0 -1
- package/dist/config/a11y.mjs +0 -5
- package/dist/config/a11y.mjs.map +0 -1
- package/dist/config/best-practices.js +0 -7
- package/dist/config/best-practices.js.map +0 -1
- package/dist/config/best-practices.mjs.map +0 -1
- package/dist/config/declaration-block-no-ignored-properties.js +0 -7
- package/dist/config/declaration-block-no-ignored-properties.js.map +0 -1
- package/dist/config/declaration-block-no-ignored-properties.mjs.map +0 -1
- package/dist/config/high-performance-animation.js +0 -7
- package/dist/config/high-performance-animation.js.map +0 -1
- package/dist/config/high-performance-animation.mjs.map +0 -1
- package/dist/config/no-unsupported-browser-features.js +0 -14
- package/dist/config/no-unsupported-browser-features.js.map +0 -1
- package/dist/config/no-unsupported-browser-features.mjs.map +0 -1
- package/dist/config/require-units.js +0 -7
- package/dist/config/require-units.js.map +0 -1
- package/dist/config/require-units.mjs.map +0 -1
- package/dist/config/selector-no-empty.js +0 -7
- package/dist/config/selector-no-empty.js.map +0 -1
- package/dist/config/selector-no-empty.mjs.map +0 -1
- package/dist/config/standard.js +0 -7
- package/dist/config/standard.js.map +0 -1
- package/dist/config/standard.mjs.map +0 -1
- package/dist/config/tailwindcss.js +0 -7
- package/dist/config/tailwindcss.js.map +0 -1
- package/dist/config/tailwindcss.mjs.map +0 -1
- package/dist/postinstall.d.mts +0 -2
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -26
- package/dist/postinstall.js.map +0 -1
- package/dist/postinstall.mjs +0 -24
- package/dist/postinstall.mjs.map +0 -1
- package/index.js +0 -16
- package/skip.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
## @anolilab/stylelint-config [7.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@7.0.0...@anolilab/stylelint-config@7.0.1) (2025-05-31)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **deps:** update minor updates (minor) ([#896](https://github.com/anolilab/javascript-style-guide/issues/896)) ([d5132c8](https://github.com/anolilab/javascript-style-guide/commit/d5132c8e59df185331772917e8216c78a97e47be))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* add new linting scripts and update dependencies ([655a866](https://github.com/anolilab/javascript-style-guide/commit/655a86641903f157e4d8a4dc69d0f44448fa7cc9))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **browserslist-config-anolilab:** upgraded to 6.0.1
|
|
15
|
+
|
|
16
|
+
## @anolilab/stylelint-config [7.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@6.0.14...@anolilab/stylelint-config@7.0.0) (2025-05-26)
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* **styylelint-config:** changed post-install script to a bin command call
|
|
21
|
+
Signed-off-by: prisis <d.bannert@anolilab.de>
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **styylelint-config:** removed post-install script, updated dependencies, allowed node 23 and ([821fb74](https://github.com/anolilab/javascript-style-guide/commit/821fb743e7ee726673e55992982753b1337845b8))
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **stylelint-config:** removed @anolilab/package-json-utils, using cwd of the command call ([244eeb7](https://github.com/anolilab/javascript-style-guide/commit/244eeb7dc41599bdf2a03fabd5ce33454866effa))
|
|
30
|
+
* **stylelint-config:** updated stylelint-config-clean-order to v7 and dev deps ([531c48d](https://github.com/anolilab/javascript-style-guide/commit/531c48d00fc17f4b9e86d5cfc7af7d03cb6ca306))
|
|
31
|
+
|
|
32
|
+
### Miscellaneous Chores
|
|
33
|
+
|
|
34
|
+
* remove deprecated ESLint and Prettier configurations, update project structure and dependencies ([7b269ed](https://github.com/anolilab/javascript-style-guide/commit/7b269eda93e7dbede5fbdb536dec518dab2bc54b))
|
|
35
|
+
* **stylelint-config:** updated dev dependencies ([1704a5d](https://github.com/anolilab/javascript-style-guide/commit/1704a5d12029246f8f0ddd6c2843e5c86fd489bc))
|
|
36
|
+
* update node engine compatibility across multiple packages ([8755783](https://github.com/anolilab/javascript-style-guide/commit/8755783d4be3199bd602ede7d83628f83be3f358))
|
|
37
|
+
* update stylelint-config dependencies to latest versions ([9b0de0c](https://github.com/anolilab/javascript-style-guide/commit/9b0de0c07e830e3d6844e5bfa819296c1b06acea))
|
|
38
|
+
* update stylelint-config to use CommonJS and ESM formats ([bd54894](https://github.com/anolilab/javascript-style-guide/commit/bd54894231d51185f5594905ed20474085952802))
|
|
39
|
+
|
|
40
|
+
### Continuous Integration
|
|
41
|
+
|
|
42
|
+
* fixed build workflow ([622591f](https://github.com/anolilab/javascript-style-guide/commit/622591f129fea0d30129d45346e49795169accd2))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Dependencies
|
|
46
|
+
|
|
47
|
+
* **browserslist-config-anolilab:** upgraded to 6.0.0
|
|
48
|
+
|
|
1
49
|
## @anolilab/stylelint-config [6.0.14](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@6.0.13...@anolilab/stylelint-config@6.0.14) (2023-12-22)
|
|
2
50
|
|
|
3
51
|
|
package/README.md
CHANGED
|
@@ -51,13 +51,11 @@ yarn add -D browserslist stylelint @anolilab/stylelint-config
|
|
|
51
51
|
|
|
52
52
|
## Usage
|
|
53
53
|
|
|
54
|
-
If you don’t have a `.stylelintrc.js`, we
|
|
55
|
-
|
|
56
|
-
If you already have a `.stylelintrc.js`, then you can extend the `.stylelintrc.js`, with `@anolilab/stylelint-config`.
|
|
54
|
+
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`.
|
|
57
55
|
|
|
58
56
|
> Note: If the script detects an existing `.stylelintrc.js` file, it will not overwrite it.
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
If you already have a `.stylelintrc.js`, then you can extend the `.stylelintrc.js`, with `@anolilab/stylelint-config`.
|
|
61
59
|
|
|
62
60
|
```js
|
|
63
61
|
module.exports = {
|
package/dist/bin.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var f=Object.defineProperty;var r=(e,o)=>f(e,"name",{value:o,configurable:!0});import{existsSync as a}from"node:fs";import{readFile as g,writeFile as c}from"node:fs/promises";import{join as l}from"node:path";import{exit as s}from"node:process";var d=Object.defineProperty,y=r((e,o)=>d(e,"name",{value:o,configurable:!0}),"i");const t=".stylelintrc",u=y(async(e,o)=>{for(const i of[t,`${t}.js`,`${t}.cjs`,`${t}.json`,`${t}.yaml`,`${t}.yml`,"stylelint.config.js","stylelint.config.cjs"])if(a(l(e,i))){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 n=l(e,".stylelintrc.js");await c(n,`${o?"export default":"module.exports ="} {
|
|
3
|
+
"extends": [
|
|
4
|
+
"@anolilab/stylelint-config",
|
|
5
|
+
]
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
`,"utf-8")},"writeStylelintRc"),m=y(async e=>{const o=l(e,".stylelintignore");a(o)||await c(o,`package.json
|
|
9
|
+
package-lock.json
|
|
10
|
+
yarn.lock
|
|
11
|
+
pnpm-lock.yaml
|
|
12
|
+
build/**
|
|
13
|
+
node_modules/**
|
|
14
|
+
.next/**
|
|
15
|
+
dist/**
|
|
16
|
+
|
|
17
|
+
`,"utf-8")},"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 g(o,"utf-8"));console.log("Configuring @anolilab/stylelint-config",e,`
|
|
18
|
+
`);try{await u(e,n?.type==="module"),await m(e),console.log("😎 Everything went well, have fun!"),s(0)}catch(i){console.log("😬 something went wrong:"),console.error(i),s(1)}})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={rules:{"at-rule-empty-line-before":["always",{except:["blockless-after-same-name-blockless","first-nested"],ignore:["after-comment","blockless-after-blockless"],ignoreAtRules:["else"]}],"no-descending-specificity":void 0,"rule-empty-line-before":["always",{except:["after-single-line-comment","first-nested"]}],"selector-type-no-unknown":[!0,{ignore:["custom-elements"]}]}};module.exports=e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
rules: {
|
|
3
|
+
"at-rule-empty-line-before": (string | {
|
|
4
|
+
except: string[];
|
|
5
|
+
ignore: string[];
|
|
6
|
+
ignoreAtRules: string[];
|
|
7
|
+
})[];
|
|
8
|
+
"no-descending-specificity": undefined;
|
|
9
|
+
"rule-empty-line-before": (string | {
|
|
10
|
+
except: string[];
|
|
11
|
+
})[];
|
|
12
|
+
"selector-type-no-unknown": (boolean | {
|
|
13
|
+
ignore: string[];
|
|
14
|
+
})[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { config as default };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { s as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=best-practices.mjs.map
|
|
1
|
+
const e={rules:{"at-rule-empty-line-before":["always",{except:["blockless-after-same-name-blockless","first-nested"],ignore:["after-comment","blockless-after-blockless"],ignoreAtRules:["else"]}],"no-descending-specificity":void 0,"rule-empty-line-before":["always",{except:["after-single-line-comment","first-nested"]}],"selector-type-no-unknown":[!0,{ignore:["custom-elements"]}]}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={plugins:["stylelint-declaration-block-no-ignored-properties"],rules:{"plugin/declaration-block-no-ignored-properties":!0}};module.exports=e;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { o as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=declaration-block-no-ignored-properties.mjs.map
|
|
1
|
+
const e={plugins:["stylelint-declaration-block-no-ignored-properties"],rules:{"plugin/declaration-block-no-ignored-properties":!0}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n={plugins:["stylelint-high-performance-animation"],rules:{"plugin/no-low-performance-animation-properties":!0}};module.exports=n;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { e as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=high-performance-animation.mjs.map
|
|
1
|
+
const n={plugins:["stylelint-high-performance-animation"],rules:{"plugin/no-low-performance-animation-properties":!0}};export{n as default};
|
|
@@ -0,0 +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,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import r from 'browserslist-config-anolilab';
|
|
3
|
-
|
|
4
|
-
var e={plugins:["stylelint-no-unsupported-browser-features"],rules:{"plugin/no-unsupported-browser-features":[!0,{browsers:env.NODE_ENV==="production"?r.production:r.modernBrowsers,severity:"warning"}]}},n=e;
|
|
5
|
-
|
|
6
|
-
export { n as default };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
|
-
//# sourceMappingURL=no-unsupported-browser-features.mjs.map
|
|
1
|
+
import{env as e}from"node:process";import r from"browserslist-config-anolilab";const t={plugins:["stylelint-no-unsupported-browser-features"],rules:{"plugin/no-unsupported-browser-features":[!0,{browsers:e.NODE_ENV==="production"?r.production:r.modernBrowsers,severity:"warning"}]}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={plugins:["stylelint-require-units"],rules:{"matterialize/stylelint-require-units":!0}};module.exports=e;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { t as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=require-units.mjs.map
|
|
1
|
+
const e={plugins:["stylelint-require-units"],rules:{"matterialize/stylelint-require-units":!0}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={plugins:["stylelint-selector-no-empty"],rules:{"plugin/stylelint-selector-no-empty":!0}};module.exports=e;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { t as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=selector-no-empty.mjs.map
|
|
1
|
+
const e={plugins:["stylelint-selector-no-empty"],rules:{"plugin/stylelint-selector-no-empty":!0}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t={extends:["stylelint-config-standard"]};module.exports=t;
|
package/dist/config/standard.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n={rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["@tailwind","tailwind","apply","layer","config","variants","responsive","screen"]}],"function-no-unknown":[!0,{ignoreFunctions:["theme"]}],"no-descending-specificity":null}};module.exports=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
rules: {
|
|
3
|
+
"at-rule-no-unknown": (boolean | {
|
|
4
|
+
ignoreAtRules: string[];
|
|
5
|
+
})[];
|
|
6
|
+
"function-no-unknown": (boolean | {
|
|
7
|
+
ignoreFunctions: string[];
|
|
8
|
+
})[];
|
|
9
|
+
"no-descending-specificity": null;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { config as default };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { e as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=tailwindcss.mjs.map
|
|
1
|
+
const n={rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["@tailwind","tailwind","apply","layer","config","variants","responsive","screen"]}],"function-no-unknown":[!0,{ignoreFunctions:["theme"]}],"no-descending-specificity":null}};export{n as default};
|
package/index.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// eslint-disable-next-line no-var
|
|
2
|
+
const config = [
|
|
3
|
+
"./dist/config/best-practices.cjs",
|
|
4
|
+
"./dist/config/declaration-block-no-ignored-properties.cjs",
|
|
5
|
+
"./dist/config/high-performance-animation.cjs",
|
|
6
|
+
"./dist/config/no-unsupported-browser-features.cjs",
|
|
7
|
+
"./dist/config/require-units.cjs",
|
|
8
|
+
"./dist/config/selector-no-empty.cjs",
|
|
9
|
+
"./dist/config/standard.cjs",
|
|
10
|
+
"./dist/config/tailwindcss.cjs",
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
module.exports = {
|
|
14
|
+
extends: [...config.map((element) => require.resolve(element)), "stylelint-config-clean-order"],
|
|
15
|
+
};
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import path from 'node:path';
|
|
2
3
|
|
|
3
4
|
const cconfig = [
|
|
4
|
-
"./dist/config/a11y.mjs",
|
|
5
5
|
"./dist/config/best-practices.mjs",
|
|
6
6
|
"./dist/config/declaration-block-no-ignored-properties.mjs",
|
|
7
7
|
"./dist/config/high-performance-animation.mjs",
|
|
@@ -12,10 +12,17 @@ const cconfig = [
|
|
|
12
12
|
"./dist/config/tailwindcss.mjs",
|
|
13
13
|
];
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} specifier
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
const resolvePath = (specifier) => {
|
|
20
|
+
const currentModuleDir = path.dirname(fileURLToPath(import.meta.url));
|
|
21
|
+
return path.resolve(currentModuleDir, specifier);
|
|
22
|
+
};
|
|
16
23
|
|
|
17
24
|
const config = {
|
|
18
|
-
extends: [...cconfig.map(
|
|
25
|
+
extends: [...cconfig.map(resolvePath), "stylelint-config-clean-order"],
|
|
19
26
|
};
|
|
20
27
|
|
|
21
28
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/stylelint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Stylelint shareable config for the Anolilab stylesheet guide.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -42,109 +42,162 @@
|
|
|
42
42
|
"email": "d.bannert@anolilab.de"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
|
+
"type": "module",
|
|
45
46
|
"exports": {
|
|
46
47
|
".": {
|
|
47
|
-
"require":
|
|
48
|
-
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./index.d.cts",
|
|
50
|
+
"default": "./index.cjs"
|
|
51
|
+
},
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./index.d.mts",
|
|
54
|
+
"default": "./index.mjs"
|
|
55
|
+
}
|
|
49
56
|
},
|
|
50
|
-
"./
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
"./best-practices": {
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/config/best-practices.d.cts",
|
|
60
|
+
"default": "./dist/config/best-practices.cjs"
|
|
61
|
+
},
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/config/best-practices.d.mts",
|
|
64
|
+
"default": "./dist/config/best-practices.mjs"
|
|
65
|
+
}
|
|
54
66
|
},
|
|
55
67
|
"./declaration-block-no-ignored-properties": {
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/config/declaration-block-no-ignored-properties.d.cts",
|
|
70
|
+
"default": "./dist/config/declaration-block-no-ignored-properties.cjs"
|
|
71
|
+
},
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/config/declaration-block-no-ignored-properties.d.mts",
|
|
74
|
+
"default": "./dist/config/declaration-block-no-ignored-properties.mjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"./high-performance-animation": {
|
|
78
|
+
"require": {
|
|
79
|
+
"types": "./dist/config/high-performance-animation.d.cts",
|
|
80
|
+
"default": "./dist/config/high-performance-animation.cjs"
|
|
81
|
+
},
|
|
82
|
+
"import": {
|
|
83
|
+
"types": "./dist/config/high-performance-animation.d.mts",
|
|
84
|
+
"default": "./dist/config/high-performance-animation.mjs"
|
|
85
|
+
}
|
|
59
86
|
},
|
|
60
87
|
"./no-unsupported-browser-features": {
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./dist/config/no-unsupported-browser-features.d.cts",
|
|
90
|
+
"default": "./dist/config/no-unsupported-browser-features.cjs"
|
|
91
|
+
},
|
|
92
|
+
"import": {
|
|
93
|
+
"types": "./dist/config/no-unsupported-browser-features.d.mts",
|
|
94
|
+
"default": "./dist/config/no-unsupported-browser-features.mjs"
|
|
95
|
+
}
|
|
64
96
|
},
|
|
65
97
|
"./require-units": {
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./dist/config/require-units.d.cts",
|
|
100
|
+
"default": "./dist/config/require-units.cjs"
|
|
101
|
+
},
|
|
102
|
+
"import": {
|
|
103
|
+
"types": "./dist/config/require-units.d.mts",
|
|
104
|
+
"default": "./dist/config/require-units.mjs"
|
|
105
|
+
}
|
|
69
106
|
},
|
|
70
107
|
"./selector-no-empty": {
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
108
|
+
"require": {
|
|
109
|
+
"types": "./dist/config/selector-no-empty.d.cts",
|
|
110
|
+
"default": "./dist/config/selector-no-empty.cjs"
|
|
111
|
+
},
|
|
112
|
+
"import": {
|
|
113
|
+
"types": "./dist/config/selector-no-empty.d.mts",
|
|
114
|
+
"default": "./dist/config/selector-no-empty.mjs"
|
|
115
|
+
}
|
|
74
116
|
},
|
|
75
117
|
"./standard": {
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
118
|
+
"require": {
|
|
119
|
+
"types": "./dist/config/standard.d.cts",
|
|
120
|
+
"default": "./dist/config/standard.cjs"
|
|
121
|
+
},
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/config/standard.d.mts",
|
|
124
|
+
"default": "./dist/config/standard.mjs"
|
|
125
|
+
}
|
|
79
126
|
},
|
|
80
127
|
"./tailwindcss": {
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
128
|
+
"require": {
|
|
129
|
+
"types": "./dist/config/tailwindcss.d.cts",
|
|
130
|
+
"default": "./dist/config/tailwindcss.cjs"
|
|
131
|
+
},
|
|
132
|
+
"import": {
|
|
133
|
+
"types": "./dist/config/tailwindcss.d.mts",
|
|
134
|
+
"default": "./dist/config/tailwindcss.mjs"
|
|
135
|
+
}
|
|
84
136
|
},
|
|
85
137
|
"./package.json": "./package.json"
|
|
86
138
|
},
|
|
87
|
-
"main": "index.
|
|
139
|
+
"main": "index.cjs",
|
|
88
140
|
"module": "index.mjs",
|
|
141
|
+
"types": "index.d.cts",
|
|
142
|
+
"typesVersions": {
|
|
143
|
+
">=5.0": {
|
|
144
|
+
"best-practices": [
|
|
145
|
+
"./dist/config/best-practices.d.ts"
|
|
146
|
+
],
|
|
147
|
+
"declaration-block-no-ignored-properties": [
|
|
148
|
+
"./dist/config/declaration-block-no-ignored-properties.d.ts"
|
|
149
|
+
],
|
|
150
|
+
"high-performance-animation": [
|
|
151
|
+
"./dist/config/high-performance-animation.d.ts"
|
|
152
|
+
],
|
|
153
|
+
"no-unsupported-browser-features": [
|
|
154
|
+
"./dist/config/no-unsupported-browser-features.d.ts"
|
|
155
|
+
],
|
|
156
|
+
"require-units": [
|
|
157
|
+
"./dist/config/require-units.d.ts"
|
|
158
|
+
],
|
|
159
|
+
"selector-no-empty": [
|
|
160
|
+
"./dist/config/selector-no-empty.d.ts"
|
|
161
|
+
],
|
|
162
|
+
"standard": [
|
|
163
|
+
"./dist/config/standard.d.ts"
|
|
164
|
+
],
|
|
165
|
+
"tailwindcss": [
|
|
166
|
+
"./dist/config/tailwindcss.d.ts"
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"bin": {
|
|
171
|
+
"stylelint-config:install": "./dist/bin.mjs"
|
|
172
|
+
},
|
|
89
173
|
"files": [
|
|
90
174
|
"dist",
|
|
91
|
-
"skip.js",
|
|
92
175
|
"README.md",
|
|
93
176
|
"CHANGELOG.md",
|
|
94
177
|
"LICENSE.md",
|
|
95
|
-
"index.
|
|
178
|
+
"index.d.ts",
|
|
179
|
+
"index.cjs",
|
|
96
180
|
"index.mjs"
|
|
97
181
|
],
|
|
98
|
-
"scripts": {
|
|
99
|
-
"build": "cross-env NODE_ENV=development tsup",
|
|
100
|
-
"build:prod": "cross-env NODE_ENV=production tsup",
|
|
101
|
-
"clean": "rimraf node_modules dist",
|
|
102
|
-
"postinstall": "node ./skip.js || node ./dist/postinstall.js",
|
|
103
|
-
"test": "vitest --config ./vitest.config.ts",
|
|
104
|
-
"test:coverage": "vitest --config ./vitest.config.ts --run --coverage"
|
|
105
|
-
},
|
|
106
182
|
"dependencies": {
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"stylelint-
|
|
111
|
-
"stylelint-
|
|
112
|
-
"stylelint-
|
|
113
|
-
"stylelint-
|
|
114
|
-
"stylelint-no-unsupported-browser-features": "^7.0.0",
|
|
115
|
-
"stylelint-require-units": "^1.0.2",
|
|
183
|
+
"browserslist-config-anolilab": "6.0.1",
|
|
184
|
+
"stylelint-config-clean-order": "^7.0.0",
|
|
185
|
+
"stylelint-config-standard": "^38.0.0",
|
|
186
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
187
|
+
"stylelint-high-performance-animation": "^1.11.0",
|
|
188
|
+
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
|
189
|
+
"stylelint-require-units": "^2.0.0",
|
|
116
190
|
"stylelint-selector-no-empty": "^1.0.9"
|
|
117
191
|
},
|
|
118
|
-
"devDependencies": {
|
|
119
|
-
"@anolilab/semantic-release-preset": "8.0.3",
|
|
120
|
-
"postcss": "^8.4.32",
|
|
121
|
-
"rimraf": "^5.0.5",
|
|
122
|
-
"semantic-release": "^22.0.12",
|
|
123
|
-
"stylelint": "15.11.0",
|
|
124
|
-
"tsup": "^8.0.1",
|
|
125
|
-
"vitest": "^1.1.0"
|
|
126
|
-
},
|
|
127
192
|
"peerDependencies": {
|
|
128
193
|
"postcss": "^8.4.18",
|
|
129
|
-
"stylelint": "^15.11.0"
|
|
194
|
+
"stylelint": "^15.11.0 || 16.x"
|
|
130
195
|
},
|
|
131
196
|
"engines": {
|
|
132
|
-
"node": ">=18.* <=
|
|
197
|
+
"node": ">=20.18.* <=24.*"
|
|
133
198
|
},
|
|
134
199
|
"publishConfig": {
|
|
135
200
|
"access": "public",
|
|
136
201
|
"provenance": true
|
|
137
|
-
}
|
|
138
|
-
"sources": [
|
|
139
|
-
"src/config/a11y.ts",
|
|
140
|
-
"src/config/best-practices.ts",
|
|
141
|
-
"src/config/declaration-block-no-ignored-properties.ts",
|
|
142
|
-
"src/config/high-performance-animation.ts",
|
|
143
|
-
"src/config/no-unsupported-browser-features.ts",
|
|
144
|
-
"src/config/require-units.ts",
|
|
145
|
-
"src/config/selector-no-empty.ts",
|
|
146
|
-
"src/config/standard.ts",
|
|
147
|
-
"src/config/tailwindcss.ts",
|
|
148
|
-
"src/postinstall.ts"
|
|
149
|
-
]
|
|
202
|
+
}
|
|
150
203
|
}
|
package/dist/config/a11y.d.mts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const config: {
|
|
2
|
-
plugins: string[];
|
|
3
|
-
rules: {
|
|
4
|
-
"a11y/content-property-no-static-value": boolean;
|
|
5
|
-
"a11y/font-size-is-readable": boolean;
|
|
6
|
-
"a11y/line-height-is-vertical-rhythmed": boolean;
|
|
7
|
-
"a11y/no-display-none": boolean;
|
|
8
|
-
"a11y/no-obsolete-attribute": boolean;
|
|
9
|
-
"a11y/no-obsolete-element": boolean;
|
|
10
|
-
"a11y/no-outline-none": boolean;
|
|
11
|
-
"a11y/no-text-align-justify": boolean;
|
|
12
|
-
"a11y/selector-pseudo-class-focus": boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { config as default };
|
package/dist/config/a11y.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const config: {
|
|
2
|
-
plugins: string[];
|
|
3
|
-
rules: {
|
|
4
|
-
"a11y/content-property-no-static-value": boolean;
|
|
5
|
-
"a11y/font-size-is-readable": boolean;
|
|
6
|
-
"a11y/line-height-is-vertical-rhythmed": boolean;
|
|
7
|
-
"a11y/no-display-none": boolean;
|
|
8
|
-
"a11y/no-obsolete-attribute": boolean;
|
|
9
|
-
"a11y/no-obsolete-element": boolean;
|
|
10
|
-
"a11y/no-outline-none": boolean;
|
|
11
|
-
"a11y/no-text-align-justify": boolean;
|
|
12
|
-
"a11y/selector-pseudo-class-focus": boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { config as default };
|
package/dist/config/a11y.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var e={plugins:["@ronilaukkarinen/stylelint-a11y"],rules:{"a11y/content-property-no-static-value":!0,"a11y/font-size-is-readable":!0,"a11y/line-height-is-vertical-rhythmed":!0,"a11y/no-display-none":!0,"a11y/no-obsolete-attribute":!0,"a11y/no-obsolete-element":!0,"a11y/no-outline-none":!0,"a11y/no-text-align-justify":!0,"a11y/selector-pseudo-class-focus":!0}},t=e;
|
|
4
|
-
|
|
5
|
-
module.exports = t;
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
|
-
//# sourceMappingURL=a11y.js.map
|
package/dist/config/a11y.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/a11y.ts"],"names":["config","a11y_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,iCAAiC,EAC3C,MAAO,CAKH,wCAAyC,GAEzC,6BAA8B,GAG9B,wCAAyC,GAMzC,uBAAwB,GAGxB,6BAA8B,GAG9B,2BAA4B,GAM5B,uBAAwB,GAGxB,6BAA8B,GAG9B,mCAAoC,EACxC,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"@ronilaukkarinen/stylelint-a11y\"],\n rules: {\n // Require certain styles if the animation or transition in media features\n // \"a11y/media-prefers-reduced-motion\": true, @see https://github.com/YozhikM/stylelint-a11y/issues/49\n\n // Disallow unaccessible CSS generated content in pseudo-elements\n \"a11y/content-property-no-static-value\": true,\n // Disallow font sizes less than 15px\n \"a11y/font-size-is-readable\": true,\n\n // Disallow not vertical rhythmed line-height\n \"a11y/line-height-is-vertical-rhythmed\": true,\n\n // Require implementation of certain styles for selectors with colors.\n // 'a11y/media-prefers-color-scheme': true,\n\n // Disallow content hiding with display: none property\n \"a11y/no-display-none\": true,\n\n // Disallow obsolete attribute using\n \"a11y/no-obsolete-attribute\": true,\n\n // Disallow obsolete selectors using\n \"a11y/no-obsolete-element\": true,\n\n // Require width of text in a comfortable range\n // 'a11y/no-spread-text': true,\n\n // Disallow outline clearing\n \"a11y/no-outline-none\": true,\n\n // Disallow content with text-align: justify\n \"a11y/no-text-align-justify\": true,\n\n // Require or disallow a pseudo-element to the selectors with :hover\n \"a11y/selector-pseudo-class-focus\": true,\n },\n};\n\nexport default config;\n"]}
|
package/dist/config/a11y.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var e={plugins:["@ronilaukkarinen/stylelint-a11y"],rules:{"a11y/content-property-no-static-value":!0,"a11y/font-size-is-readable":!0,"a11y/line-height-is-vertical-rhythmed":!0,"a11y/no-display-none":!0,"a11y/no-obsolete-attribute":!0,"a11y/no-obsolete-element":!0,"a11y/no-outline-none":!0,"a11y/no-text-align-justify":!0,"a11y/selector-pseudo-class-focus":!0}},t=e;
|
|
2
|
-
|
|
3
|
-
export { t as default };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=a11y.mjs.map
|
package/dist/config/a11y.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/a11y.ts"],"names":["config","a11y_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,iCAAiC,EAC3C,MAAO,CAKH,wCAAyC,GAEzC,6BAA8B,GAG9B,wCAAyC,GAMzC,uBAAwB,GAGxB,6BAA8B,GAG9B,2BAA4B,GAM5B,uBAAwB,GAGxB,6BAA8B,GAG9B,mCAAoC,EACxC,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"@ronilaukkarinen/stylelint-a11y\"],\n rules: {\n // Require certain styles if the animation or transition in media features\n // \"a11y/media-prefers-reduced-motion\": true, @see https://github.com/YozhikM/stylelint-a11y/issues/49\n\n // Disallow unaccessible CSS generated content in pseudo-elements\n \"a11y/content-property-no-static-value\": true,\n // Disallow font sizes less than 15px\n \"a11y/font-size-is-readable\": true,\n\n // Disallow not vertical rhythmed line-height\n \"a11y/line-height-is-vertical-rhythmed\": true,\n\n // Require implementation of certain styles for selectors with colors.\n // 'a11y/media-prefers-color-scheme': true,\n\n // Disallow content hiding with display: none property\n \"a11y/no-display-none\": true,\n\n // Disallow obsolete attribute using\n \"a11y/no-obsolete-attribute\": true,\n\n // Disallow obsolete selectors using\n \"a11y/no-obsolete-element\": true,\n\n // Require width of text in a comfortable range\n // 'a11y/no-spread-text': true,\n\n // Disallow outline clearing\n \"a11y/no-outline-none\": true,\n\n // Disallow content with text-align: justify\n \"a11y/no-text-align-justify\": true,\n\n // Require or disallow a pseudo-element to the selectors with :hover\n \"a11y/selector-pseudo-class-focus\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var e={rules:{"at-rule-empty-line-before":["always",{except:["blockless-after-same-name-blockless","first-nested"],ignore:["after-comment","blockless-after-blockless"],ignoreAtRules:["else"]}],"no-descending-specificity":void 0,"rule-empty-line-before":["always",{except:["after-single-line-comment","first-nested"]}],"selector-type-no-unknown":[!0,{ignore:["custom-elements"]}]}},s=e;
|
|
4
|
-
|
|
5
|
-
module.exports = s;
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
|
-
//# sourceMappingURL=best-practices.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/best-practices.ts"],"names":["config","best_practices_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,MAAO,CAGH,4BAA6B,CACzB,SACA,CACI,OAAQ,CAAC,sCAAuC,cAAc,EAC9D,OAAQ,CAAC,gBAAiB,2BAA2B,EACrD,cAAe,CAAC,MAAM,CAC1B,CACJ,EAKA,4BAA6B,OAI7B,yBAA0B,CACtB,SACA,CACI,OAAQ,CAAC,4BAA6B,cAAc,CACxD,CACJ,EAIA,2BAA4B,CACxB,GACA,CACI,OAAQ,CAAC,iBAAiB,CAC9B,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n rules: {\n // Enabled to play well with both CSS and SCSS at-rules for readability.\n // https://stylelint.io/user-guide/rules/at-rule-empty-line-before\n \"at-rule-empty-line-before\": [\n \"always\",\n {\n except: [\"blockless-after-same-name-blockless\", \"first-nested\"],\n ignore: [\"after-comment\", \"blockless-after-blockless\"],\n ignoreAtRules: [\"else\"],\n },\n ],\n\n // Disabled to avoid cases where semantic or\n // pragmatic grouping is more practical\n // https://stylelint.io/user-guide/rules/no-descending-specificity\n \"no-descending-specificity\": undefined,\n\n // Enabled to improve consistency and readability.\n // https://stylelint.io/user-guide/rules/at-rule-empty-line-before\n \"rule-empty-line-before\": [\n \"always\",\n {\n except: [\"after-single-line-comment\", \"first-nested\"],\n },\n ],\n\n // Ignore custom elements to play well with popular frameworks.\n // https://stylelint.io/user-guide/rules/selector-type-no-unknown\n \"selector-type-no-unknown\": [\n true,\n {\n ignore: [\"custom-elements\"],\n },\n ],\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/best-practices.ts"],"names":["config","best_practices_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,MAAO,CAGH,4BAA6B,CACzB,SACA,CACI,OAAQ,CAAC,sCAAuC,cAAc,EAC9D,OAAQ,CAAC,gBAAiB,2BAA2B,EACrD,cAAe,CAAC,MAAM,CAC1B,CACJ,EAKA,4BAA6B,OAI7B,yBAA0B,CACtB,SACA,CACI,OAAQ,CAAC,4BAA6B,cAAc,CACxD,CACJ,EAIA,2BAA4B,CACxB,GACA,CACI,OAAQ,CAAC,iBAAiB,CAC9B,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n rules: {\n // Enabled to play well with both CSS and SCSS at-rules for readability.\n // https://stylelint.io/user-guide/rules/at-rule-empty-line-before\n \"at-rule-empty-line-before\": [\n \"always\",\n {\n except: [\"blockless-after-same-name-blockless\", \"first-nested\"],\n ignore: [\"after-comment\", \"blockless-after-blockless\"],\n ignoreAtRules: [\"else\"],\n },\n ],\n\n // Disabled to avoid cases where semantic or\n // pragmatic grouping is more practical\n // https://stylelint.io/user-guide/rules/no-descending-specificity\n \"no-descending-specificity\": undefined,\n\n // Enabled to improve consistency and readability.\n // https://stylelint.io/user-guide/rules/at-rule-empty-line-before\n \"rule-empty-line-before\": [\n \"always\",\n {\n except: [\"after-single-line-comment\", \"first-nested\"],\n },\n ],\n\n // Ignore custom elements to play well with popular frameworks.\n // https://stylelint.io/user-guide/rules/selector-type-no-unknown\n \"selector-type-no-unknown\": [\n true,\n {\n ignore: [\"custom-elements\"],\n },\n ],\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var e={plugins:["stylelint-declaration-block-no-ignored-properties"],rules:{"plugin/declaration-block-no-ignored-properties":!0}},o=e;
|
|
4
|
-
|
|
5
|
-
module.exports = o;
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
|
-
//# sourceMappingURL=declaration-block-no-ignored-properties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/declaration-block-no-ignored-properties.ts"],"names":["config","declaration_block_no_ignored_properties_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,mDAAmD,EAC7D,MAAO,CACH,iDAAkD,EACtD,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-declaration-block-no-ignored-properties\"],\n rules: {\n \"plugin/declaration-block-no-ignored-properties\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/declaration-block-no-ignored-properties.ts"],"names":["config","declaration_block_no_ignored_properties_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,mDAAmD,EAC7D,MAAO,CACH,iDAAkD,EACtD,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-declaration-block-no-ignored-properties\"],\n rules: {\n \"plugin/declaration-block-no-ignored-properties\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/high-performance-animation.ts"],"names":["config","high_performance_animation_default"],"mappings":"AAAA,IAAMA,EAAS,CAEX,QAAS,CAAC,sCAAsC,EAChD,MAAO,CACH,iDAAkD,EACtD,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n // prevent use of low performance animation and transition properties.\n plugins: [\"stylelint-high-performance-animation\"],\n rules: {\n \"plugin/no-low-performance-animation-properties\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/high-performance-animation.ts"],"names":["config","high_performance_animation_default"],"mappings":"AAAA,IAAMA,EAAS,CAEX,QAAS,CAAC,sCAAsC,EAChD,MAAO,CACH,iDAAkD,EACtD,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n // prevent use of low performance animation and transition properties.\n plugins: [\"stylelint-high-performance-animation\"],\n rules: {\n \"plugin/no-low-performance-animation-properties\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var process = require('process');
|
|
4
|
-
var r = require('browserslist-config-anolilab');
|
|
5
|
-
|
|
6
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var r__default = /*#__PURE__*/_interopDefault(r);
|
|
9
|
-
|
|
10
|
-
var e={plugins:["stylelint-no-unsupported-browser-features"],rules:{"plugin/no-unsupported-browser-features":[!0,{browsers:process.env.NODE_ENV==="production"?r__default.default.production:r__default.default.modernBrowsers,severity:"warning"}]}},n=e;
|
|
11
|
-
|
|
12
|
-
module.exports = n;
|
|
13
|
-
//# sourceMappingURL=out.js.map
|
|
14
|
-
//# sourceMappingURL=no-unsupported-browser-features.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/no-unsupported-browser-features.ts"],"names":["env","browserslist","config","no_unsupported_browser_features_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,UAEpB,OAAOC,MAAkB,+BAEzB,IAAMC,EAAS,CACX,QAAS,CAAC,2CAA2C,EACrD,MAAO,CACH,yCAA0C,CACtC,GACA,CACI,SAAUF,EAAI,WAAgB,aAAeC,EAAa,WAAaA,EAAa,eACpF,SAAU,SACd,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { env } from \"node:process\";\n\nimport browserslist from \"browserslist-config-anolilab\";\n\nconst config = {\n plugins: [\"stylelint-no-unsupported-browser-features\"],\n rules: {\n \"plugin/no-unsupported-browser-features\": [\n true,\n {\n browsers: env[\"NODE_ENV\"] === \"production\" ? browserslist.production : browserslist.modernBrowsers,\n severity: \"warning\",\n },\n ],\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/no-unsupported-browser-features.ts"],"names":["env","browserslist","config","no_unsupported_browser_features_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,UAEpB,OAAOC,MAAkB,+BAEzB,IAAMC,EAAS,CACX,QAAS,CAAC,2CAA2C,EACrD,MAAO,CACH,yCAA0C,CACtC,GACA,CACI,SAAUF,EAAI,WAAgB,aAAeC,EAAa,WAAaA,EAAa,eACpF,SAAU,SACd,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { env } from \"node:process\";\n\nimport browserslist from \"browserslist-config-anolilab\";\n\nconst config = {\n plugins: [\"stylelint-no-unsupported-browser-features\"],\n rules: {\n \"plugin/no-unsupported-browser-features\": [\n true,\n {\n browsers: env[\"NODE_ENV\"] === \"production\" ? browserslist.production : browserslist.modernBrowsers,\n severity: \"warning\",\n },\n ],\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/require-units.ts"],"names":["config","require_units_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,yBAAyB,EACnC,MAAO,CACH,uCAAwC,EAC5C,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-require-units\"],\n rules: {\n \"matterialize/stylelint-require-units\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/require-units.ts"],"names":["config","require_units_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,yBAAyB,EACnC,MAAO,CACH,uCAAwC,EAC5C,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-require-units\"],\n rules: {\n \"matterialize/stylelint-require-units\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/selector-no-empty.ts"],"names":["config","selector_no_empty_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,6BAA6B,EACvC,MAAO,CACH,qCAAsC,EAC1C,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-selector-no-empty\"],\n rules: {\n \"plugin/stylelint-selector-no-empty\": true,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/selector-no-empty.ts"],"names":["config","selector_no_empty_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,6BAA6B,EACvC,MAAO,CACH,qCAAsC,EAC1C,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n plugins: [\"stylelint-selector-no-empty\"],\n rules: {\n \"plugin/stylelint-selector-no-empty\": true,\n },\n};\n\nexport default config;\n"]}
|
package/dist/config/standard.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/standard.ts"],"names":["config","standard_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,2BAA2B,CACzC,EAEOC,EAAQD","sourcesContent":["const config = {\n extends: [\"stylelint-config-standard\"],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/standard.ts"],"names":["config","standard_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,QAAS,CAAC,2BAA2B,CACzC,EAEOC,EAAQD","sourcesContent":["const config = {\n extends: [\"stylelint-config-standard\"],\n};\n\nexport default config;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var n={rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["@tailwind","tailwind","apply","layer","config","variants","responsive","screen"]}],"declaration-block-trailing-semicolon":null,"function-no-unknown":[!0,{ignoreFunctions:["theme"]}],"no-descending-specificity":null}},e=n;
|
|
4
|
-
|
|
5
|
-
module.exports = e;
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
|
-
//# sourceMappingURL=tailwindcss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/tailwindcss.ts"],"names":["config","tailwindcss_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,MAAO,CAEH,qBAAsB,CAClB,GACA,CACI,cAAe,CACX,YACA,WACA,QACA,QACA,SAEA,WACA,aACA,QACJ,CACJ,CACJ,EACA,uCAAwC,KACxC,sBAAuB,CACnB,GACA,CACI,gBAAiB,CAAC,OAAO,CAC7B,CACJ,EACA,4BAA6B,IACjC,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n rules: {\n // These rules are disabled because they conflict with tailwindcss\n \"at-rule-no-unknown\": [\n true,\n {\n ignoreAtRules: [\n \"@tailwind\",\n \"tailwind\",\n \"apply\",\n \"layer\",\n \"config\",\n /** tailwindcss v1, v2 */\n \"variants\",\n \"responsive\",\n \"screen\",\n ],\n },\n ],\n \"declaration-block-trailing-semicolon\": null,\n \"function-no-unknown\": [\n true,\n {\n ignoreFunctions: [\"theme\"],\n },\n ],\n \"no-descending-specificity\": null,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/tailwindcss.ts"],"names":["config","tailwindcss_default"],"mappings":"AAAA,IAAMA,EAAS,CACX,MAAO,CAEH,qBAAsB,CAClB,GACA,CACI,cAAe,CACX,YACA,WACA,QACA,QACA,SAEA,WACA,aACA,QACJ,CACJ,CACJ,EACA,uCAAwC,KACxC,sBAAuB,CACnB,GACA,CACI,gBAAiB,CAAC,OAAO,CAC7B,CACJ,EACA,4BAA6B,IACjC,CACJ,EAEOC,EAAQD","sourcesContent":["const config = {\n rules: {\n // These rules are disabled because they conflict with tailwindcss\n \"at-rule-no-unknown\": [\n true,\n {\n ignoreAtRules: [\n \"@tailwind\",\n \"tailwind\",\n \"apply\",\n \"layer\",\n \"config\",\n /** tailwindcss v1, v2 */\n \"variants\",\n \"responsive\",\n \"screen\",\n ],\n },\n ],\n \"declaration-block-trailing-semicolon\": null,\n \"function-no-unknown\": [\n true,\n {\n ignoreFunctions: [\"theme\"],\n },\n ],\n \"no-descending-specificity\": null,\n },\n};\n\nexport default config;\n"]}
|
package/dist/postinstall.d.mts
DELETED
package/dist/postinstall.d.ts
DELETED
package/dist/postinstall.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var fs = require('fs');
|
|
4
|
-
var path = require('path');
|
|
5
|
-
var process = require('process');
|
|
6
|
-
var util = require('util');
|
|
7
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
8
|
-
|
|
9
|
-
process.env.CI!==void 0&&process.exit(0);var r=util.promisify(fs.writeFile);console.log("Configuring @anolilab/stylelint-config",packageJsonUtils.projectPath,`
|
|
10
|
-
`);var n=".stylelintrc",m=async()=>{for(let c of [n,`${n}.js`,`${n}.cjs`,`${n}.json`,`${n}.yaml`,`${n}.yml`,"stylelint.config.js","stylelint.config.cjs"])if(fs.existsSync(path.join(packageJsonUtils.projectPath,c))){console.warn('\u26A0\uFE0F .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}let t=path.join(packageJsonUtils.projectPath,".stylelintrc.js");await r(t,`${packageJsonUtils.packageIsTypeModule?"export default":"module.exports ="} {
|
|
11
|
-
"extends": [
|
|
12
|
-
"@anolilab/stylelint-config",
|
|
13
|
-
]
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
`,"utf-8");},p=async()=>{let t=path.join(packageJsonUtils.projectPath,".stylelintignore"),i=`package.json
|
|
17
|
-
package-lock.json
|
|
18
|
-
yarn.lock
|
|
19
|
-
pnpm-lock.yaml
|
|
20
|
-
build/**
|
|
21
|
-
node_modules/**
|
|
22
|
-
.next/**
|
|
23
|
-
|
|
24
|
-
`;fs.existsSync(t)||await r(t,i,"utf-8");};(async()=>{try{await m(),await p(),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(t){console.log("\u{1F62C} something went wrong:"),console.error(t),process.exit(1);}})();
|
|
25
|
-
//# sourceMappingURL=out.js.map
|
|
26
|
-
//# sourceMappingURL=postinstall.js.map
|
package/dist/postinstall.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","env","exit","promisify","packageIsTypeModule","projectPath","writeFileAsync","file","writeStylelintRc","filename","stylelintPath","writeStylelintIgnore","stylelintIgnorePath","content","error"],"mappings":"AAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,OAAAC,EAAK,QAAAC,MAAY,UAC1B,OAAS,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+BAE7CJ,EAAI,KAAU,QACdC,EAAK,CAAC,EAGV,IAAMI,EAAiBH,EAAUJ,CAAS,EAE1C,QAAQ,IAAI,yCAA0CM,EAAa;AAAA,CAAI,EAEvE,IAAME,EAAO,eAKPC,EAAmB,SAAY,CAEjC,QAAWC,IAAY,CAACF,EAAM,GAAGA,CAAI,MAAO,GAAGA,CAAI,OAAQ,GAAGA,CAAI,QAAS,GAAGA,CAAI,QAAS,GAAGA,CAAI,OAAQ,sBAAuB,sBAAsB,EAEnJ,GAAIT,EAAWE,EAAKK,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBV,EAAKK,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBZ,EAAKK,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZf,EAAWc,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAEjDT,EAAK,CAAC,CACV,OAASY,EAAO,CACZ,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAEnBZ,EAAK,CAAC,CACV,CACJ,GAAG","sourcesContent":["import { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { env, exit } from \"node:process\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\n\nif (env[\"CI\"] !== undefined) {\n exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/stylelint-config\", projectPath, \"\\n\");\n\nconst file = \".stylelintrc\";\n\n/**\n * Writes .stylelintrc.cjs if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintRc = async () => {\n // eslint-disable-next-line no-restricted-syntax,no-loops/no-loops\n for (const filename of [file, `${file}.js`, `${file}.cjs`, `${file}.json`, `${file}.yaml`, `${file}.yml`, `stylelint.config.js`, `stylelint.config.cjs`]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(\n '⚠️ .stylelintrc.js already exists; Make sure that it includes the following for @anolilab/stylelint-config to work as it should: { \"extends\": [\"@anolilab/stylelint-config\"] }.',\n );\n\n return;\n }\n }\n\n const stylelintPath = join(projectPath, \".stylelintrc.js\");\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n \"extends\": [\n \"@anolilab/stylelint-config\",\n ]\n};\n\n`;\n\n await writeFileAsync(stylelintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .stylelintignore if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintIgnore = async () => {\n const stylelintIgnorePath = join(projectPath, \".stylelintignore\");\n const content = `package.json\npackage-lock.json\nyarn.lock\npnpm-lock.yaml\nbuild/**\nnode_modules/**\n.next/**\n\n`;\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(stylelintIgnorePath)) {\n return;\n }\n\n await writeFileAsync(stylelintIgnorePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeStylelintRc();\n await writeStylelintIgnore();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n exit(1);\n }\n})();\n"]}
|
package/dist/postinstall.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { writeFile, existsSync } from 'fs';
|
|
2
|
-
import { join } from 'path';
|
|
3
|
-
import { env, exit } from 'process';
|
|
4
|
-
import { promisify } from 'util';
|
|
5
|
-
import { projectPath, packageIsTypeModule } from '@anolilab/package-json-utils';
|
|
6
|
-
|
|
7
|
-
env.CI!==void 0&&exit(0);var r=promisify(writeFile);console.log("Configuring @anolilab/stylelint-config",projectPath,`
|
|
8
|
-
`);var n=".stylelintrc",m=async()=>{for(let c of [n,`${n}.js`,`${n}.cjs`,`${n}.json`,`${n}.yaml`,`${n}.yml`,"stylelint.config.js","stylelint.config.cjs"])if(existsSync(join(projectPath,c))){console.warn('\u26A0\uFE0F .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}let t=join(projectPath,".stylelintrc.js");await r(t,`${packageIsTypeModule?"export default":"module.exports ="} {
|
|
9
|
-
"extends": [
|
|
10
|
-
"@anolilab/stylelint-config",
|
|
11
|
-
]
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
`,"utf-8");},p=async()=>{let t=join(projectPath,".stylelintignore"),i=`package.json
|
|
15
|
-
package-lock.json
|
|
16
|
-
yarn.lock
|
|
17
|
-
pnpm-lock.yaml
|
|
18
|
-
build/**
|
|
19
|
-
node_modules/**
|
|
20
|
-
.next/**
|
|
21
|
-
|
|
22
|
-
`;existsSync(t)||await r(t,i,"utf-8");};(async()=>{try{await m(),await p(),console.log("\u{1F60E} Everything went well, have fun!"),exit(0);}catch(t){console.log("\u{1F62C} something went wrong:"),console.error(t),exit(1);}})();
|
|
23
|
-
//# sourceMappingURL=out.js.map
|
|
24
|
-
//# sourceMappingURL=postinstall.mjs.map
|
package/dist/postinstall.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","env","exit","promisify","packageIsTypeModule","projectPath","writeFileAsync","file","writeStylelintRc","filename","stylelintPath","writeStylelintIgnore","stylelintIgnorePath","content","error"],"mappings":"AAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,OAAAC,EAAK,QAAAC,MAAY,UAC1B,OAAS,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+BAE7CJ,EAAI,KAAU,QACdC,EAAK,CAAC,EAGV,IAAMI,EAAiBH,EAAUJ,CAAS,EAE1C,QAAQ,IAAI,yCAA0CM,EAAa;AAAA,CAAI,EAEvE,IAAME,EAAO,eAKPC,EAAmB,SAAY,CAEjC,QAAWC,IAAY,CAACF,EAAM,GAAGA,CAAI,MAAO,GAAGA,CAAI,OAAQ,GAAGA,CAAI,QAAS,GAAGA,CAAI,QAAS,GAAGA,CAAI,OAAQ,sBAAuB,sBAAsB,EAEnJ,GAAIT,EAAWE,EAAKK,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBV,EAAKK,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBZ,EAAKK,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZf,EAAWc,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAEjDT,EAAK,CAAC,CACV,OAASY,EAAO,CACZ,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAEnBZ,EAAK,CAAC,CACV,CACJ,GAAG","sourcesContent":["import { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { env, exit } from \"node:process\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\n\nif (env[\"CI\"] !== undefined) {\n exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/stylelint-config\", projectPath, \"\\n\");\n\nconst file = \".stylelintrc\";\n\n/**\n * Writes .stylelintrc.cjs if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintRc = async () => {\n // eslint-disable-next-line no-restricted-syntax,no-loops/no-loops\n for (const filename of [file, `${file}.js`, `${file}.cjs`, `${file}.json`, `${file}.yaml`, `${file}.yml`, `stylelint.config.js`, `stylelint.config.cjs`]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(\n '⚠️ .stylelintrc.js already exists; Make sure that it includes the following for @anolilab/stylelint-config to work as it should: { \"extends\": [\"@anolilab/stylelint-config\"] }.',\n );\n\n return;\n }\n }\n\n const stylelintPath = join(projectPath, \".stylelintrc.js\");\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n \"extends\": [\n \"@anolilab/stylelint-config\",\n ]\n};\n\n`;\n\n await writeFileAsync(stylelintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .stylelintignore if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintIgnore = async () => {\n const stylelintIgnorePath = join(projectPath, \".stylelintignore\");\n const content = `package.json\npackage-lock.json\nyarn.lock\npnpm-lock.yaml\nbuild/**\nnode_modules/**\n.next/**\n\n`;\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(stylelintIgnorePath)) {\n return;\n }\n\n await writeFileAsync(stylelintIgnorePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeStylelintRc();\n await writeStylelintIgnore();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n exit(1);\n }\n})();\n"]}
|
package/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line no-var
|
|
2
|
-
var config = [
|
|
3
|
-
"./dist/config/a11y.js",
|
|
4
|
-
"./dist/config/best-practices.js",
|
|
5
|
-
"./dist/config/declaration-block-no-ignored-properties.js",
|
|
6
|
-
"./dist/config/high-performance-animation.js",
|
|
7
|
-
"./dist/config/no-unsupported-browser-features.js",
|
|
8
|
-
"./dist/config/require-units.js",
|
|
9
|
-
"./dist/config/selector-no-empty.js",
|
|
10
|
-
"./dist/config/standard.js",
|
|
11
|
-
"./dist/config/tailwindcss.js",
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
module.exports = {
|
|
15
|
-
extends: [...config.map((element) => require.resolve(element)), "stylelint-config-clean-order"],
|
|
16
|
-
};
|