Skip to content

Commit 5eca82b

Browse files
committed
chore: update yarn format, lint & lint-staged scripts
1 parent 657c381 commit 5eca82b

File tree

6 files changed

+24
-33
lines changed

6 files changed

+24
-33
lines changed

.lintstagedrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"!(**/templates/*).js": ["yarn format", "yarn lint"]
2+
"*.{ts,js,json,md,yml}": "yarn format",
3+
"!(**/templates/*).js": "yarn lint"
34
}

CHANGELOG.md

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,57 @@ All notable changes to this project will be documented in this file. See [standa
66

77
## [1.11.0](https://github.com/boringcodes/create-service/compare/v1.10.0...v1.11.0) (2021-01-11)
88

9-
109
### Features
1110

12-
* **generators:** update writing() to copy .env.example .env file ([bda8bec](https://github.com/boringcodes/create-service/commit/bda8becfe89a8798ad3ea24d8a74b681784fa5b6))
13-
* **templates:** move src/config.ts to src/config/index.ts ([e4406a0](https://github.com/boringcodes/create-service/commit/e4406a095a3d186783e00afc7fcc11452b656a03))
14-
* **templates:** refactor index.ts app.listen callback as it's changed ([dd9dc66](https://github.com/boringcodes/create-service/commit/dd9dc6682e76c6887db5242d3e04aeb0f0b2033f))
15-
* **templates:** set all packages version to * in order to install the latest ([c7b0bcc](https://github.com/boringcodes/create-service/commit/c7b0bcc8a220a16ae4b37a4a970245bcf972add9))
11+
- **generators:** update writing() to copy .env.example .env file ([bda8bec](https://github.com/boringcodes/create-service/commit/bda8becfe89a8798ad3ea24d8a74b681784fa5b6))
12+
- **templates:** move src/config.ts to src/config/index.ts ([e4406a0](https://github.com/boringcodes/create-service/commit/e4406a095a3d186783e00afc7fcc11452b656a03))
13+
- **templates:** refactor index.ts app.listen callback as it's changed ([dd9dc66](https://github.com/boringcodes/create-service/commit/dd9dc6682e76c6887db5242d3e04aeb0f0b2033f))
14+
- **templates:** set all packages version to \* in order to install the latest ([c7b0bcc](https://github.com/boringcodes/create-service/commit/c7b0bcc8a220a16ae4b37a4a970245bcf972add9))
1615

1716
## [1.10.0](https://github.com/boringcodes/create-service/compare/v1.9.0...v1.10.0) (2020-08-26)
1817

19-
2018
### Features
2119

22-
* **templates:** add config file that contains all env vars ([b686dfb](https://github.com/boringcodes/create-service/commit/b686dfbb57a301a9ce27f447db8a5266ab831273))
20+
- **templates:** add config file that contains all env vars ([b686dfb](https://github.com/boringcodes/create-service/commit/b686dfbb57a301a9ce27f447db8a5266ab831273))
2321

2422
## [1.9.0](https://github.com/boringcodes/create-service/compare/v1.8.1...v1.9.0) (2020-08-26)
2523

26-
2724
### Features
2825

29-
* **templates:** move app.use(health()) to above bodyParser to imrpove performance of health check api ([6687015](https://github.com/boringcodes/create-service/commit/668701513dd50cbcc553d83bf2fb070cedf91acc))
30-
* **templates:** move routes.ts to components/index.ts, export components path '/' along with routes, rename Routes interface to RouteOptions ([68e2271](https://github.com/boringcodes/create-service/commit/68e227121e7f4616d450d01074d268a9aaf49f35))
31-
26+
- **templates:** move app.use(health()) to above bodyParser to imrpove performance of health check api ([6687015](https://github.com/boringcodes/create-service/commit/668701513dd50cbcc553d83bf2fb070cedf91acc))
27+
- **templates:** move routes.ts to components/index.ts, export components path '/' along with routes, rename Routes interface to RouteOptions ([68e2271](https://github.com/boringcodes/create-service/commit/68e227121e7f4616d450d01074d268a9aaf49f35))
3228

3329
### Bug Fixes
3430

35-
* **templates:** update error type to MyError to fix wrong error type problem ([42b2f71](https://github.com/boringcodes/create-service/commit/42b2f71a4df421492859e8587f78bbfb80e0ac38))
31+
- **templates:** update error type to MyError to fix wrong error type problem ([42b2f71](https://github.com/boringcodes/create-service/commit/42b2f71a4df421492859e8587f78bbfb80e0ac38))
3632

3733
### [1.8.1](https://github.com/boringcodes/create-service/compare/v1.8.0...v1.8.1) (2020-08-26)
3834

39-
4035
### Bug Fixes
4136

42-
* **templates:** add source-map-support to deps to fix problem running on production env without devDeps ([eccfc5b](https://github.com/boringcodes/create-service/commit/eccfc5b3058bcb54320f3c7e91a3517dd264149c))
37+
- **templates:** add source-map-support to deps to fix problem running on production env without devDeps ([eccfc5b](https://github.com/boringcodes/create-service/commit/eccfc5b3058bcb54320f3c7e91a3517dd264149c))
4338

4439
## [1.8.0](https://github.com/boringcodes/create-service/compare/v1.7.0...v1.8.0) (2020-04-24)
4540

46-
4741
### Features
4842

49-
* **template:** remove unused .prettierignore ([ccda598](https://github.com/boringcodes/create-service/commit/ccda59860aa2e4cd7f7463c3576fc38c86273b61))
50-
43+
- **template:** remove unused .prettierignore ([ccda598](https://github.com/boringcodes/create-service/commit/ccda59860aa2e4cd7f7463c3576fc38c86273b61))
5144

5245
### Bug Fixes
5346

54-
* **deps:** mistaken putting change-case to devDeps ([12ca8d9](https://github.com/boringcodes/create-service/commit/12ca8d9dfa89c3096c9f6a20a1496c316cb451c0))
47+
- **deps:** mistaken putting change-case to devDeps ([12ca8d9](https://github.com/boringcodes/create-service/commit/12ca8d9dfa89c3096c9f6a20a1496c316cb451c0))
5548

5649
## [1.7.0](https://github.com/boringcodes/create-service/compare/v1.6.0...v1.7.0) (2020-03-28)
5750

58-
5951
### Features
6052

61-
* **template:** replace pretty-quick with lint-staged, add tsconfig.json, fix eslint errors on index file ([301336b](https://github.com/boringcodes/create-service/commit/301336bdb3f278f0ea693331bc8fc8cfeca66c49))
53+
- **template:** replace pretty-quick with lint-staged, add tsconfig.json, fix eslint errors on index file ([301336b](https://github.com/boringcodes/create-service/commit/301336bdb3f278f0ea693331bc8fc8cfeca66c49))
6254

6355
## [1.6.0](https://github.com/boringcodes/create-service/compare/v1.5.0...v1.6.0) (2020-03-28)
6456

65-
6657
### Features
6758

68-
* **template:** migrate tslint to eslint using [@typescript-eslint](https://github.com/typescript-eslint) & @boringcodes/eslint-config-typescript ([5477b03](https://github.com/boringcodes/create-service/commit/5477b03d3b291e5b1b738bf1c5099eb085cc552f))
59+
- **template:** migrate tslint to eslint using [@typescript-eslint](https://github.com/typescript-eslint) & @boringcodes/eslint-config-typescript ([5477b03](https://github.com/boringcodes/create-service/commit/5477b03d3b291e5b1b738bf1c5099eb085cc552f))
6960

7061
## [1.5.0](https://github.com/boringcodes/create-service/compare/v1.4.0...v1.5.0) (2020-03-26)
7162

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"**/*.ts": ["yarn format", "yarn lint"]
2+
"*.{ts,js,json,md,yml}": "yarn format",
3+
"*.ts": "yarn lint"
34
}

generators/app/templates/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"start": "NODE_ENV=production node build/index.js",
1818
"purge": "rm -rf node_modules",
1919
"clean": "rm -rf build",
20-
"format": "prettier --write --ignore-path .gitignore **/*.ts",
21-
"format:check": "prettier --check --ignore-path .gitignore **/*.ts",
22-
"lint": "eslint --quiet --ignore-path .gitignore **/*.ts",
20+
"format": "prettier --write --ignore-path .gitignore .",
21+
"format:check": "prettier --check --ignore-path .gitignore .",
22+
"lint": "eslint --quiet --ignore-path .gitignore --ext .ts .",
2323
"release": "standard-version --no-verify",
2424
"release:major": "yarn release --release-as major",
2525
"release:minor": "yarn release --release-as minor",

generators/app/templates/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
"sourceMap": true,
1212
"strict": true
1313
},
14-
"include": [
15-
"**/*.ts"
16-
]
14+
"include": ["**/*.ts"]
1715
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
],
1414
"scripts": {
1515
"purge": "rm -rf node_modules",
16-
"format": "prettier --write --ignore-path .gitignore **/*.js",
17-
"format:check": "prettier --check --ignore-path .gitignore **/*.js",
18-
"lint": "eslint --ignore-path .gitignore --ignore-pattern templates **/*.js",
16+
"format": "prettier --write --ignore-path .gitignore .",
17+
"format:check": "prettier --check --ignore-path .gitignore .",
18+
"lint": "eslint --quiet --ignore-path .gitignore --ignore-pattern templates .",
1919
"release": "standard-version --no-verify",
2020
"release:major": "yarn release --release-as major",
2121
"release:minor": "yarn release --release-as minor",

0 commit comments

Comments
 (0)