@anolilab/stylelint-config 4.0.0 → 4.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 +20 -0
- package/README.md +11 -0
- package/dist/postinstall.d.ts +2 -1
- package/dist/postinstall.js +0 -1
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs +0 -1
- package/dist/postinstall.mjs.map +1 -1
- package/index.js +0 -2
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## @anolilab/stylelint-config [4.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@4.0.1...@anolilab/stylelint-config@4.0.2) (2023-06-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Dependencies
|
|
6
|
+
|
|
7
|
+
* **@anolilab/package-json-utils:** upgraded to 1.4.0
|
|
8
|
+
* **browserslist-config-anolilab:** upgraded to 4.0.4
|
|
9
|
+
* **@anolilab/semantic-release-preset:** upgraded to 3.1.2
|
|
10
|
+
|
|
11
|
+
## @anolilab/stylelint-config [4.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@4.0.0...@anolilab/stylelint-config@4.0.1) (2023-06-15)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* **@anolilab/package-json-utils:** upgraded to 1.3.0
|
|
18
|
+
* **browserslist-config-anolilab:** upgraded to 4.0.3
|
|
19
|
+
* **@anolilab/semantic-release-preset:** upgraded to 3.1.1
|
|
20
|
+
|
|
1
21
|
## @anolilab/stylelint-config [4.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/stylelint-config@3.2.4...@anolilab/stylelint-config@4.0.0) (2023-06-11)
|
|
2
22
|
|
|
3
23
|
|
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Stylelint config enforcing an understandable and consistent code style.
|
|
4
4
|
|
|
5
|
+
<div align="center">
|
|
6
|
+
|
|
7
|
+
[![npm-image]][npm-url] [![license-image]][license-url]
|
|
8
|
+
|
|
9
|
+
</div>
|
|
10
|
+
|
|
5
11
|
---
|
|
6
12
|
|
|
7
13
|
<div align="center">
|
|
@@ -91,3 +97,8 @@ License
|
|
|
91
97
|
-------------
|
|
92
98
|
|
|
93
99
|
The anolilab javascript-style-guide is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT)
|
|
100
|
+
|
|
101
|
+
[license-image]: https://img.shields.io/npm/l/@anolilab/stylelint-config?color=blueviolet&style=for-the-badge
|
|
102
|
+
[license-url]: LICENSE.md "license"
|
|
103
|
+
[npm-image]: https://img.shields.io/npm/v/@anolilab/stylelint-config/latest.svg?style=for-the-badge&logo=npm
|
|
104
|
+
[npm-url]: https://www.npmjs.com/package/@anolilab/stylelint-config/v/latest "npm"
|
package/dist/postinstall.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
export { }
|
package/dist/postinstall.js
CHANGED
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","stylelintPath","content","writeStylelintIgnore","stylelintIgnorePath","error"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","stylelintPath","content","writeStylelintIgnore","stylelintIgnorePath","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,EAKvE,IAAMM,EAAmB,IAAM,CAC3B,IAAMC,EAAgBJ,EAAKH,EAAa,iBAAiB,EACnDQ,EAAU,GAAGT,EAAsB,iBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5D,OAAIE,EAAWM,CAAa,GACxB,QAAQ,KACJ,4LACJ,EAEO,QAAQ,QAAQ,GAGpBF,EAAeE,EAAeC,EAAS,OAAO,CACzD,EAKMC,EAAuB,IAAM,CAC/B,IAAMC,EAAsBP,EAAKH,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhB,OAAIP,EAAWS,CAAmB,EACvB,QAAQ,QAAQ,EAGpBL,EAAeK,EAAqBF,EAAS,OAAO,CAC/D,GAGC,SAAY,CACT,GAAI,CACA,MAAMF,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,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\n/**\n * Writes .stylelintrc.cjs if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintRc = () => {\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 if (existsSync(stylelintPath)) {\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 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
package/dist/postinstall.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","stylelintPath","content","writeStylelintIgnore","stylelintIgnorePath","error"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeStylelintRc","stylelintPath","content","writeStylelintIgnore","stylelintIgnorePath","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,EAKvE,IAAMM,EAAmB,IAAM,CAC3B,IAAMC,EAAgBJ,EAAKH,EAAa,iBAAiB,EACnDQ,EAAU,GAAGT,EAAsB,iBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5D,OAAIE,EAAWM,CAAa,GACxB,QAAQ,KACJ,4LACJ,EAEO,QAAQ,QAAQ,GAGpBF,EAAeE,EAAeC,EAAS,OAAO,CACzD,EAKMC,EAAuB,IAAM,CAC/B,IAAMC,EAAsBP,EAAKH,EAAa,kBAAkB,EAC1DQ,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhB,OAAIP,EAAWS,CAAmB,EACvB,QAAQ,QAAQ,EAGpBL,EAAeK,EAAqBF,EAAS,OAAO,CAC/D,GAGC,SAAY,CACT,GAAI,CACA,MAAMF,EAAiB,EACvB,MAAMG,EAAqB,EAE3B,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,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\n/**\n * Writes .stylelintrc.cjs if it doesn't exist. Warns if it exists.\n */\nconst writeStylelintRc = () => {\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 if (existsSync(stylelintPath)) {\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 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/index.js
CHANGED
|
@@ -8,9 +8,7 @@ const rules = [
|
|
|
8
8
|
"./dist/rules/standard.js",
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line unicorn/prefer-module
|
|
12
11
|
module.exports = {
|
|
13
|
-
// eslint-disable-next-line unicorn/prefer-module
|
|
14
12
|
extends: rules.map((element) => require.resolve(element)),
|
|
15
13
|
rules: {
|
|
16
14
|
indentation: 4,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/stylelint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Stylelint shareable config for the Anolilab stylesheet guide.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -55,11 +55,13 @@
|
|
|
55
55
|
"build": "cross-env NODE_ENV=development tsup",
|
|
56
56
|
"build:prod": "cross-env NODE_ENV=production tsup",
|
|
57
57
|
"clean": "rimraf node_modules dist",
|
|
58
|
-
"postinstall": "node ./skip.js || node ./dist/postinstall.js"
|
|
58
|
+
"postinstall": "node ./skip.js || node ./dist/postinstall.js",
|
|
59
|
+
"test": "vitest --config ./vitest.config.ts",
|
|
60
|
+
"test:coverage": "vitest --config ./vitest.config.ts --run --coverage"
|
|
59
61
|
},
|
|
60
62
|
"dependencies": {
|
|
61
|
-
"@anolilab/package-json-utils": "1.
|
|
62
|
-
"browserslist-config-anolilab": "4.0.
|
|
63
|
+
"@anolilab/package-json-utils": "1.4.0",
|
|
64
|
+
"browserslist-config-anolilab": "4.0.4",
|
|
63
65
|
"stylelint-a11y": "^1.2.3",
|
|
64
66
|
"stylelint-config-rational-order": "^0.1.2",
|
|
65
67
|
"stylelint-config-standard": "^33.0.0",
|
|
@@ -70,16 +72,15 @@
|
|
|
70
72
|
"stylelint-selector-no-empty": "^1.0.9"
|
|
71
73
|
},
|
|
72
74
|
"devDependencies": {
|
|
73
|
-
"semantic-release": "
|
|
74
|
-
"@anolilab/semantic-release-preset": "3.1.0",
|
|
75
|
-
"lodash": "^4.17.21",
|
|
75
|
+
"@anolilab/semantic-release-preset": "3.1.2",
|
|
76
76
|
"postcss": "^8.4.24",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"semantic-release": "^21.0.5",
|
|
78
|
+
"stylelint": "15.8.0",
|
|
79
|
+
"vitest": "^0.32.2"
|
|
79
80
|
},
|
|
80
81
|
"peerDependencies": {
|
|
81
82
|
"postcss": "^8.4.18",
|
|
82
|
-
"stylelint": "^14.0.0"
|
|
83
|
+
"stylelint": "^14.0.0 || ^15.0.0"
|
|
83
84
|
},
|
|
84
85
|
"engines": {
|
|
85
86
|
"node": ">=16"
|