@naturalcycles/dev-lib 13.20.1 → 13.21.0

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.
@@ -8,7 +8,6 @@ module.exports = {
8
8
  // keep units in css variables because their absence breaks css calculations
9
9
  { ignore: ['custom-properties'] },
10
10
  ],
11
- 'declaration-property-value-no-unknown': true,
12
11
  // Prettier covers these rules already:
13
12
  // 'color-hex-case': 'lower',
14
13
  // 'number-leading-zero': 'always',
@@ -24,9 +24,11 @@ async function lintAllCommand() {
24
24
  }).argv;
25
25
  const hadChangesBefore = await (0, git_util_1.gitHasUncommittedChanges)();
26
26
  await (0, eslint_all_command_1.eslintAllCommand)();
27
- await (0, stylelint_util_1.stylelintAll)();
27
+ if (fs.existsSync(`node_modules/stylelint`) &&
28
+ fs.existsSync(`node_modules/stylelint-config-standard-scss`)) {
29
+ await (0, stylelint_util_1.stylelintAll)();
30
+ }
28
31
  await (0, prettier_util_1.runPrettier)();
29
- // Running ktlintAll (experimental!)
30
32
  if (fs.existsSync(`node_modules/@naturalcycles/ktlint`)) {
31
33
  const ktlintLib = require('@naturalcycles/ktlint');
32
34
  await ktlintLib.ktlintAll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.20.1",
3
+ "version": "13.21.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -58,15 +58,15 @@
58
58
  "lint-staged": "^13.0.0",
59
59
  "mitm": "^1.7.0",
60
60
  "prettier": "^2.0.4",
61
- "stylelint": "^15.0.0",
62
- "stylelint-config-standard-scss": "^7.0.0",
63
61
  "timekeeper": "^2.2.0",
64
62
  "ts-jest": "^29.0.0",
65
63
  "typescript": "^4.0.2",
66
64
  "yargs": "^17.0.0"
67
65
  },
68
66
  "devDependencies": {
69
- "jest": "^29.0.0"
67
+ "jest": "^29.0.0",
68
+ "stylelint": "^15.0.0",
69
+ "stylelint-config-standard-scss": "^7.0.0"
70
70
  },
71
71
  "files": [
72
72
  "dist",
package/readme.md CHANGED
@@ -155,6 +155,10 @@ linter, or when linter behaves badly and corrupts your files (just happened to m
155
155
  Pass `--ext` (e.g `--ext ts,html`) to override the list of ESLint extensions (default is
156
156
  `ts,tsx,vue` right now).
157
157
 
158
+ For Stylelint to be run, you need to manually install it in the target project:
159
+
160
+ `yarn add -D stylelint stylelint-config-standard-scss`
161
+
158
162
  ##### ktlint
159
163
 
160
164
  `ktlint` will be used by lint-staged for all `**/*.{kt,kts}` files.