@anolilab/stylelint-config 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/postinstall.js +3 -3
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs +3 -3
- package/dist/postinstall.mjs.map +1 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @anolilab/stylelint-config [5.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@5.0.1...@anolilab/stylelint-config@5.0.2) (2023-06-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* extended postinstall script file checking ([5f867d7](https://github.com/anolilab/javascript-style-guide/commit/5f867d7b4d3acc9f2af4651b23f8e1a0d206e923))
|
|
7
|
+
|
|
8
|
+
## @anolilab/stylelint-config [5.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@5.0.0...@anolilab/stylelint-config@5.0.1) (2023-06-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* optimized seo of packages ([7331a1d](https://github.com/anolilab/javascript-style-guide/commit/7331a1da817ef2e31d4ec224aff096585a87dd04))
|
|
14
|
+
* update sort in package.json ([e316e91](https://github.com/anolilab/javascript-style-guide/commit/e316e917843d5aec9646c9d34a5748011a6b9780))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* **browserslist-config-anolilab:** upgraded to 4.1.0
|
|
21
|
+
|
|
1
22
|
## @anolilab/stylelint-config [5.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@4.0.5...@anolilab/stylelint-config@5.0.0) (2023-06-24)
|
|
2
23
|
|
|
3
24
|
|
package/dist/postinstall.js
CHANGED
|
@@ -6,13 +6,13 @@ var path = require('path');
|
|
|
6
6
|
var util = require('util');
|
|
7
7
|
|
|
8
8
|
process.env.CI&&process.exit(0);var i=util.promisify(fs.writeFile);console.log("Configuring @anolilab/stylelint-config",packageJsonUtils.projectPath,`
|
|
9
|
-
`);var
|
|
9
|
+
`);var e=".stylelintrc",f=()=>{for(let r of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.yaml`,`${e}.yml`,"stylelint.config.js","stylelint.config.cjs"])if(fs.existsSync(path.join(packageJsonUtils.projectPath,r)))return 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"] }.'),Promise.resolve();let t=path.join(packageJsonUtils.projectPath,".stylelintrc.js");return i(t,`${packageJsonUtils.packageIsTypeModule?"export default":"module.exports ="} {
|
|
10
10
|
"extends": [
|
|
11
11
|
"@anolilab/stylelint-config",
|
|
12
12
|
]
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
`,"utf-8")},g=()=>{let t=path.join(packageJsonUtils.projectPath,".stylelintignore"),l=`package.json
|
|
16
16
|
package-lock.json
|
|
17
17
|
yarn.lock
|
|
18
18
|
pnpm-lock.yaml
|
|
@@ -20,6 +20,6 @@ build/**
|
|
|
20
20
|
node_modules/**
|
|
21
21
|
.next/**
|
|
22
22
|
|
|
23
|
-
`;return fs.existsSync(
|
|
23
|
+
`;return fs.existsSync(t)?Promise.resolve():i(t,l,"utf-8")};(async()=>{try{await f(),await g(),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);}})();
|
|
24
24
|
//# sourceMappingURL=out.js.map
|
|
25
25
|
//# sourceMappingURL=postinstall.js.map
|
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","file","writeStylelintRc","filename","stylelintPath","writeStylelintIgnore","stylelintIgnorePath","content","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CF,EAAa;AAAA,CAAI,EAEvE,IAAMM,EAAO,eAKPC,EAAmB,IAAM,CAE3B,QAAWC,IAAY,CAACF,EAAM,GAAGA,OAAW,GAAGA,QAAY,GAAGA,SAAa,GAAGA,SAAa,GAAGA,QAAY,sBAAuB,sBAAsB,EACnJ,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EACtC,eAAQ,KACJ,4LACJ,EAEO,QAAQ,QAAQ,EAI/B,IAAMC,EAAgBN,EAAKH,EAAa,iBAAiB,EASzD,OAAOK,EAAeI,EARN,GAAGV,EAAsB,iBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQd,OAAO,CACzD,EAKMW,EAAuB,IAAM,CAC/B,IAAMC,EAAsBR,EAAKH,EAAa,kBAAkB,EAC1DY,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhB,OAAIX,EAAWU,CAAmB,EACvB,QAAQ,QAAQ,EAGpBN,EAAeM,EAAqBC,EAAS,OAAO,CAC/D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASG,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.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 = () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [file, `${file}.js`, `${file}.cjs`, `${file}.json`, `${file}.yaml`, `${file}.yml`, `stylelint.config.js`, `stylelint.config.cjs`]) {\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 Promise.resolve();\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 return writeFileAsync(stylelintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .stylelintignore if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintIgnore = () => {\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\n if (existsSync(stylelintIgnorePath)) {\n return Promise.resolve();\n }\n\n return 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 // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
|
package/dist/postinstall.mjs
CHANGED
|
@@ -4,13 +4,13 @@ import { join } from 'path';
|
|
|
4
4
|
import { promisify } from 'util';
|
|
5
5
|
|
|
6
6
|
process.env.CI&&process.exit(0);var i=promisify(writeFile);console.log("Configuring @anolilab/stylelint-config",projectPath,`
|
|
7
|
-
`);var
|
|
7
|
+
`);var e=".stylelintrc",f=()=>{for(let r of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.yaml`,`${e}.yml`,"stylelint.config.js","stylelint.config.cjs"])if(existsSync(join(projectPath,r)))return 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"] }.'),Promise.resolve();let t=join(projectPath,".stylelintrc.js");return i(t,`${packageIsTypeModule?"export default":"module.exports ="} {
|
|
8
8
|
"extends": [
|
|
9
9
|
"@anolilab/stylelint-config",
|
|
10
10
|
]
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`,"utf-8")},g=()=>{let t=join(projectPath,".stylelintignore"),l=`package.json
|
|
14
14
|
package-lock.json
|
|
15
15
|
yarn.lock
|
|
16
16
|
pnpm-lock.yaml
|
|
@@ -18,6 +18,6 @@ build/**
|
|
|
18
18
|
node_modules/**
|
|
19
19
|
.next/**
|
|
20
20
|
|
|
21
|
-
`;return existsSync(
|
|
21
|
+
`;return existsSync(t)?Promise.resolve():i(t,l,"utf-8")};(async()=>{try{await f(),await g(),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);}})();
|
|
22
22
|
//# sourceMappingURL=out.js.map
|
|
23
23
|
//# sourceMappingURL=postinstall.mjs.map
|
package/dist/postinstall.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","file","writeStylelintRc","filename","stylelintPath","writeStylelintIgnore","stylelintIgnorePath","content","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CF,EAAa;AAAA,CAAI,EAEvE,IAAMM,EAAO,eAKPC,EAAmB,IAAM,CAE3B,QAAWC,IAAY,CAACF,EAAM,GAAGA,OAAW,GAAGA,QAAY,GAAGA,SAAa,GAAGA,SAAa,GAAGA,QAAY,sBAAuB,sBAAsB,EACnJ,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EACtC,eAAQ,KACJ,4LACJ,EAEO,QAAQ,QAAQ,EAI/B,IAAMC,EAAgBN,EAAKH,EAAa,iBAAiB,EASzD,OAAOK,EAAeI,EARN,GAAGV,EAAsB,iBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQd,OAAO,CACzD,EAKMW,EAAuB,IAAM,CAC/B,IAAMC,EAAsBR,EAAKH,EAAa,kBAAkB,EAC1DY,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhB,OAAIX,EAAWU,CAAmB,EACvB,QAAQ,QAAQ,EAGpBN,EAAeM,EAAqBC,EAAS,OAAO,CAC/D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASG,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.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 = () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [file, `${file}.js`, `${file}.cjs`, `${file}.json`, `${file}.yaml`, `${file}.yml`, `stylelint.config.js`, `stylelint.config.cjs`]) {\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 Promise.resolve();\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 return writeFileAsync(stylelintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .stylelintignore if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintIgnore = () => {\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\n if (existsSync(stylelintIgnorePath)) {\n return Promise.resolve();\n }\n\n return 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 // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/stylelint-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Stylelint shareable config for the Anolilab stylesheet guide.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
"style",
|
|
11
11
|
"stylelint",
|
|
12
12
|
"stylelint-config",
|
|
13
|
-
"anolilab"
|
|
13
|
+
"anolilab",
|
|
14
|
+
"stylelint-a11y",
|
|
15
|
+
"stylelint-config-clean-order",
|
|
16
|
+
"stylelint-config-standard",
|
|
17
|
+
"stylelint-declaration-block-no-ignored-properties",
|
|
18
|
+
"stylelint-high-performance-animation",
|
|
19
|
+
"stylelint-no-unsupported-browser-features",
|
|
20
|
+
"stylelint-require-units",
|
|
21
|
+
"stylelint-selector-no-empty"
|
|
14
22
|
],
|
|
15
23
|
"homepage": "https://anolilab.com/nodejs/packages/stylelint-config",
|
|
16
24
|
"repository": {
|
|
@@ -97,9 +105,9 @@
|
|
|
97
105
|
"dependencies": {
|
|
98
106
|
"@anolilab/package-json-utils": "1.5.0",
|
|
99
107
|
"@ronilaukkarinen/stylelint-a11y": "^1.2.7",
|
|
100
|
-
"browserslist-config-anolilab": "4.0
|
|
101
|
-
"stylelint-config-standard": "^33.0.0",
|
|
108
|
+
"browserslist-config-anolilab": "4.1.0",
|
|
102
109
|
"stylelint-config-clean-order": "^5.0.1",
|
|
110
|
+
"stylelint-config-standard": "^33.0.0",
|
|
103
111
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
104
112
|
"stylelint-high-performance-animation": "^1.8.0",
|
|
105
113
|
"stylelint-no-unsupported-browser-features": "^6.1.0",
|