@naturalcycles/dev-lib 12.8.1 → 12.11.1
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 +28 -0
- package/cfg/lint-staged.config.js +6 -0
- package/dist/cmd/lint-circleci.command.js +2 -2
- package/package.json +5 -6
- package/readme.md +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [12.11.1](https://github.com/NaturalCycles/dev-lib/compare/v12.11.0...v12.11.1) (2021-10-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* deps ([8fdfd7e](https://github.com/NaturalCycles/dev-lib/commit/8fdfd7e7233609b7a7f698e81bdd3f34c6d128c7))
|
|
7
|
+
|
|
8
|
+
# [12.11.0](https://github.com/NaturalCycles/dev-lib/compare/v12.10.0...v12.11.0) (2021-10-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* update stylelint to 14 ([ee2b6d1](https://github.com/NaturalCycles/dev-lib/commit/ee2b6d1ad32bf42b3ff4d0c68716feca3215acd8))
|
|
14
|
+
|
|
15
|
+
# [12.10.0](https://github.com/NaturalCycles/dev-lib/compare/v12.9.0...v12.10.0) (2021-10-20)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* fail on not-existing `circleci` binary ([dec7271](https://github.com/NaturalCycles/dev-lib/commit/dec7271f958b6787a5928f3e65510e196831eb1c))
|
|
21
|
+
|
|
22
|
+
# [12.9.0](https://github.com/NaturalCycles/dev-lib/compare/v12.8.1...v12.9.0) (2021-10-20)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* ktlint will be used for `*.{kt,kts}` files by lint-staged ([56e2e9a](https://github.com/NaturalCycles/dev-lib/commit/56e2e9a37299524961098979bdedc73d84ffa39a))
|
|
28
|
+
|
|
1
29
|
## [12.8.1](https://github.com/NaturalCycles/dev-lib/compare/v12.8.0...v12.8.1) (2021-10-12)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -75,6 +75,12 @@ const linters = {
|
|
|
75
75
|
|
|
76
76
|
// CircleCI config (if modified)
|
|
77
77
|
[`./.circleci/config.yml`]: ['./node_modules/.bin/lint-circleci'],
|
|
78
|
+
|
|
79
|
+
'**/*.{kt,kts}': match => {
|
|
80
|
+
const filesList = micromatch.not(match, lintExclude).join(' ')
|
|
81
|
+
if (!filesList) return []
|
|
82
|
+
return [`ktlint -F ${filesList}`]
|
|
83
|
+
},
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
// /scripts are separate, cause they require separate tsconfig.json
|
|
@@ -7,8 +7,8 @@ async function lintCircleCICommand() {
|
|
|
7
7
|
const commandExistsSync = require('command-exists').sync;
|
|
8
8
|
if (!commandExistsSync('circleci')) {
|
|
9
9
|
// Cannot validate, cause `circleci` binary is not installed
|
|
10
|
-
console.
|
|
11
|
-
return;
|
|
10
|
+
console.warn(`!!\n!! Please install ${(0, colors_1.boldGrey)('circleci')} CLI to validate ${(0, colors_1.boldGrey)('config.yml')}\n!!\n!! https://circleci.com/docs/2.0/local-cli/\n!!`);
|
|
11
|
+
return process.exit(5);
|
|
12
12
|
}
|
|
13
13
|
await (0, exec_1.execWithArgs)('circleci', ['config', 'validate']);
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.11.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-config-prettier": "^8.3.0",
|
|
47
47
|
"eslint-plugin-import": "^2.22.1",
|
|
48
48
|
"eslint-plugin-jest": "^25.0.5",
|
|
49
|
-
"eslint-plugin-jsdoc": "^
|
|
49
|
+
"eslint-plugin-jsdoc": "^37.0.0",
|
|
50
50
|
"eslint-plugin-unicorn": "^37.0.1",
|
|
51
51
|
"eslint-plugin-unused-imports": "^1.1.1",
|
|
52
52
|
"eslint-plugin-vue": "^7.18.0",
|
|
@@ -57,16 +57,15 @@
|
|
|
57
57
|
"lint-staged": "^11.0.0",
|
|
58
58
|
"mitm": "^1.7.0",
|
|
59
59
|
"prettier": "^2.0.4",
|
|
60
|
-
"stylelint": "^
|
|
61
|
-
"stylelint-config-recommended-scss": "^
|
|
62
|
-
"stylelint-scss": "^
|
|
60
|
+
"stylelint": "^14.0.0",
|
|
61
|
+
"stylelint-config-recommended-scss": "^5.0.0",
|
|
62
|
+
"stylelint-scss": "^4.0.0",
|
|
63
63
|
"timekeeper": "^2.2.0",
|
|
64
64
|
"ts-jest": "^27.0.0",
|
|
65
65
|
"typescript": "^4.0.2",
|
|
66
66
|
"yargs": "^17.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"got": "^11.0.0",
|
|
70
69
|
"jest": "^27.0.1"
|
|
71
70
|
},
|
|
72
71
|
"files": [
|
package/readme.md
CHANGED
|
@@ -145,6 +145,16 @@ linter, or when linter behaves badly and corrupts your files (just happened to m
|
|
|
145
145
|
Pass `--ext` (e.g `--ext ts,html`) to override the list of ESLint extensions (default is
|
|
146
146
|
`ts,tsx,vue` right now).
|
|
147
147
|
|
|
148
|
+
##### ktlint
|
|
149
|
+
|
|
150
|
+
`ktlint` will be used by lint-staged for all `**/*.{kt,kts}` files.
|
|
151
|
+
|
|
152
|
+
Please install it with `brew install ktlint`.
|
|
153
|
+
|
|
154
|
+
Currently `ktlint` has a bug of not supporting absolute paths, to work around it use
|
|
155
|
+
[this instruction](https://github.com/pinterest/ktlint/issues/1131#issuecomment-947570851) to
|
|
156
|
+
install a working version.
|
|
157
|
+
|
|
148
158
|
#### Other commands
|
|
149
159
|
|
|
150
160
|
- `init-from-dev-lib`: copy config files from `dev-lib/cfg/init` to the project
|