declapract-typescript-ehmpathy 0.33.3 → 0.33.5
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/dist/practices/domain/best-practice/package.json +1 -1
- package/dist/practices/git/best-practice/.gitignore.declapract.ts +3 -2
- package/dist/practices/husky/best-practice/.husky/check.nvm.sh +4 -0
- package/dist/practices/husky/best-practice/.husky/post-rewrite +1 -0
- package/dist/practices/prettier/best-practice/package.json +1 -1
- package/package.json +4 -6
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FileCheckFunction, FileFixFunction } from 'declapract';
|
|
2
2
|
import expect from 'expect';
|
|
3
|
-
import uniq from 'lodash.uniq';
|
|
4
3
|
|
|
5
4
|
const expectedIgnores = [
|
|
6
5
|
'*.log',
|
|
@@ -18,7 +17,9 @@ const expectedIgnores = [
|
|
|
18
17
|
|
|
19
18
|
const defineExpectedContents = (contents: string | null): string => {
|
|
20
19
|
const ignoresAlreadyDefined = contents ? contents.split('\n') : [];
|
|
21
|
-
const finalLines =
|
|
20
|
+
const finalLines = [
|
|
21
|
+
...new Set([...ignoresAlreadyDefined, ...expectedIgnores]),
|
|
22
|
+
] // union of the ones we want plus the ones they defined
|
|
22
23
|
.sort() // sorted
|
|
23
24
|
.filter((line) => !!line); // without empty lines
|
|
24
25
|
return [...finalLines.sort(), ''].join('\n');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devDependencies": {
|
|
3
3
|
"prettier": "@declapract{check.minVersion('2.8.1')}",
|
|
4
|
-
"@trivago/prettier-plugin-sort-imports": "@declapract{check.minVersion('
|
|
4
|
+
"@trivago/prettier-plugin-sort-imports": "@declapract{check.minVersion('4.3.0')}"
|
|
5
5
|
},
|
|
6
6
|
"scripts": {
|
|
7
7
|
"fix:format:prettier": "prettier --write '**/*.ts' --config ./prettier.config.js",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.33.
|
|
5
|
+
"version": "0.33.5",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
8
8
|
"homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",
|
|
@@ -40,21 +40,19 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@ehmpathy/error-fns": "1.3.1",
|
|
42
42
|
"expect": "29.4.2",
|
|
43
|
-
"flat": "5.0.2"
|
|
44
|
-
"lodash.uniq": "4.5.0"
|
|
43
|
+
"flat": "5.0.2"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"declapract": "0.11.
|
|
46
|
+
"declapract": "0.11.5"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"@commitlint/cli": "17.6.7",
|
|
51
50
|
"@commitlint/config-conventional": "13.1.0",
|
|
52
51
|
"@ehmpathy/as-command": "1.0.1",
|
|
53
|
-
"@trivago/prettier-plugin-sort-imports": "
|
|
52
|
+
"@trivago/prettier-plugin-sort-imports": "4.3.0",
|
|
54
53
|
"@tsconfig/node-lts-strictest": "18.12.1",
|
|
55
54
|
"@types/flat": "5.0.2",
|
|
56
55
|
"@types/jest": "29.4.0",
|
|
57
|
-
"@types/lodash.uniq": "4.5.7",
|
|
58
56
|
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
59
57
|
"@typescript-eslint/parser": "7.8.0",
|
|
60
58
|
"core-js": "3.26.1",
|