@anolilab/stylelint-config 6.0.6 → 6.0.7

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## @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)
2
+
3
+
4
+ ### Styles
5
+
6
+ * cs fixes ([8e66dc2](https://github.com/anolilab/javascript-style-guide/commit/8e66dc261129837075a52a4364036918f1bbc115))
7
+
8
+
9
+
10
+ ### Dependencies
11
+
12
+ * **browserslist-config-anolilab:** upgraded to 5.0.7
13
+ * **@anolilab/semantic-release-preset:** upgraded to 7.0.2
14
+
1
15
  ## @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
16
 
3
17
 
@@ -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,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CI,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,GAAIP,EAAWE,EAAKG,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBR,EAAKG,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBV,EAAKG,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZb,EAAWY,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,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 { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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 = async () => {\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 // 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 // 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"]}
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,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CI,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,GAAIP,EAAWE,EAAKG,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBR,EAAKG,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBV,EAAKG,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZb,EAAWY,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASG,EAAO,CACZ,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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 = 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 // 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"]}
@@ -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,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CI,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,GAAIP,EAAWE,EAAKG,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBR,EAAKG,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBV,EAAKG,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZb,EAAWY,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,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 { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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 = async () => {\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 // 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 // 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"]}
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,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,yCAA0CI,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,GAAIP,EAAWE,EAAKG,EAAaI,CAAQ,CAAC,EAAG,CACzC,QAAQ,KACJ,4LACJ,EAEA,MACJ,CAGJ,IAAMC,EAAgBR,EAAKG,EAAa,iBAAiB,EASzD,MAAMC,EAAeI,EARL,GAAGN,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,OAAO,CACxD,EAKMO,EAAuB,SAAY,CACrC,IAAMC,EAAsBV,EAAKG,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUZb,EAAWY,CAAmB,GAIlC,MAAMN,EAAeM,EAAqBC,EAAS,OAAO,CAC9D,GAGC,SAAY,CACT,GAAI,CACA,MAAML,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASG,EAAO,CACZ,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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 = 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 // 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": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "description": "Stylelint shareable config for the Anolilab stylesheet guide.",
5
5
  "keywords": [
6
6
  "css",
@@ -106,7 +106,7 @@
106
106
  "dependencies": {
107
107
  "@anolilab/package-json-utils": "3.0.5",
108
108
  "@ronilaukkarinen/stylelint-a11y": "^1.2.7",
109
- "browserslist-config-anolilab": "5.0.6",
109
+ "browserslist-config-anolilab": "5.0.7",
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,7 +118,7 @@
118
118
  "vitest": "^0.34.5"
119
119
  },
120
120
  "devDependencies": {
121
- "@anolilab/semantic-release-preset": "7.0.0",
121
+ "@anolilab/semantic-release-preset": "7.0.2",
122
122
  "postcss": "^8.4.30",
123
123
  "rimraf": "^5.0.1",
124
124
  "semantic-release": "^21.1.2",