@anolilab/stylelint-config 6.0.6 → 6.0.8
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 +34 -0
- package/dist/postinstall.js +5 -4
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs +5 -4
- package/dist/postinstall.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## @anolilab/stylelint-config [6.0.8](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@6.0.7...@anolilab/stylelint-config@6.0.8) (2023-09-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Various project dependencies have been updated to their respective newer versions. This covers multiple packages such as '@babel/cli', '@babel/core', '@nrwl/js', and 'eslint' among others within the package.json file. This upgrade is necessary to ensure the utilization of the most recent features, optimization and security improvements of the updated packages, and it also helps to maintain overall project consistency. ([38535ab](https://github.com/anolilab/javascript-style-guide/commit/38535abf2557680e3f22e1ff74372764ca11c2f1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Styles
|
|
10
|
+
|
|
11
|
+
* cs fixes ([e053d90](https://github.com/anolilab/javascript-style-guide/commit/e053d90a4ab7a6466699c17d5afec1a7adc2459d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* **@anolilab/package-json-utils:** upgraded to 3.0.6
|
|
18
|
+
* **browserslist-config-anolilab:** upgraded to 5.0.8
|
|
19
|
+
* **@anolilab/semantic-release-preset:** upgraded to 7.0.3
|
|
20
|
+
|
|
21
|
+
## @anolilab/stylelint-config [6.0.7](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@6.0.6...@anolilab/stylelint-config@6.0.7) (2023-09-22)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Styles
|
|
25
|
+
|
|
26
|
+
* cs fixes ([8e66dc2](https://github.com/anolilab/javascript-style-guide/commit/8e66dc261129837075a52a4364036918f1bbc115))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* **browserslist-config-anolilab:** upgraded to 5.0.7
|
|
33
|
+
* **@anolilab/semantic-release-preset:** upgraded to 7.0.2
|
|
34
|
+
|
|
1
35
|
## @anolilab/stylelint-config [6.0.6](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@6.0.5...@anolilab/stylelint-config@6.0.6) (2023-09-21)
|
|
2
36
|
|
|
3
37
|
|
package/dist/postinstall.js
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('fs');
|
|
4
4
|
var path = require('path');
|
|
5
|
+
var process = require('process');
|
|
5
6
|
var util = require('util');
|
|
6
7
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
8
|
|
|
8
|
-
process.env.CI&&process.exit(0);var
|
|
9
|
-
`);var n=".stylelintrc",
|
|
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 ="} {
|
|
10
11
|
"extends": [
|
|
11
12
|
"@anolilab/stylelint-config",
|
|
12
13
|
]
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
`,"utf-8");},
|
|
16
|
+
`,"utf-8");},p=async()=>{let t=path.join(packageJsonUtils.projectPath,".stylelintignore"),i=`package.json
|
|
16
17
|
package-lock.json
|
|
17
18
|
yarn.lock
|
|
18
19
|
pnpm-lock.yaml
|
|
@@ -20,6 +21,6 @@ build/**
|
|
|
20
21
|
node_modules/**
|
|
21
22
|
.next/**
|
|
22
23
|
|
|
23
|
-
`;fs.existsSync(t)||await
|
|
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);}})();
|
|
24
25
|
//# sourceMappingURL=out.js.map
|
|
25
26
|
//# sourceMappingURL=postinstall.js.map
|
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","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,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+
|
|
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
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { writeFile, existsSync } from 'fs';
|
|
2
2
|
import { join } from 'path';
|
|
3
|
+
import { env, exit } from 'process';
|
|
3
4
|
import { promisify } from 'util';
|
|
4
5
|
import { projectPath, packageIsTypeModule } from '@anolilab/package-json-utils';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
`);var n=".stylelintrc",
|
|
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 ="} {
|
|
8
9
|
"extends": [
|
|
9
10
|
"@anolilab/stylelint-config",
|
|
10
11
|
]
|
|
11
12
|
};
|
|
12
13
|
|
|
13
|
-
`,"utf-8");},
|
|
14
|
+
`,"utf-8");},p=async()=>{let t=join(projectPath,".stylelintignore"),i=`package.json
|
|
14
15
|
package-lock.json
|
|
15
16
|
yarn.lock
|
|
16
17
|
pnpm-lock.yaml
|
|
@@ -18,6 +19,6 @@ build/**
|
|
|
18
19
|
node_modules/**
|
|
19
20
|
.next/**
|
|
20
21
|
|
|
21
|
-
`;existsSync(t)||await
|
|
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);}})();
|
|
22
23
|
//# sourceMappingURL=out.js.map
|
|
23
24
|
//# sourceMappingURL=postinstall.mjs.map
|
package/dist/postinstall.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","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,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/stylelint-config",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "Stylelint shareable config for the Anolilab stylesheet guide.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"test:coverage": "vitest --config ./vitest.config.ts --run --coverage"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@anolilab/package-json-utils": "3.0.
|
|
107
|
+
"@anolilab/package-json-utils": "3.0.6",
|
|
108
108
|
"@ronilaukkarinen/stylelint-a11y": "^1.2.7",
|
|
109
|
-
"browserslist-config-anolilab": "5.0.
|
|
109
|
+
"browserslist-config-anolilab": "5.0.8",
|
|
110
110
|
"stylelint-config-clean-order": "^5.2.0",
|
|
111
111
|
"stylelint-config-standard": "^34.0.0",
|
|
112
112
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"vitest": "^0.34.5"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@anolilab/semantic-release-preset": "7.0.
|
|
121
|
+
"@anolilab/semantic-release-preset": "7.0.3",
|
|
122
122
|
"postcss": "^8.4.30",
|
|
123
|
-
"rimraf": "^5.0.
|
|
123
|
+
"rimraf": "^5.0.2",
|
|
124
124
|
"semantic-release": "^21.1.2",
|
|
125
125
|
"stylelint": "15.10.3",
|
|
126
126
|
"vitest": "^0.34.5"
|