Skip to content

Commit c6f5093

Browse files
committed
chore: update yarn format, lint & lint-staged scripts
1 parent 3d91d31 commit c6f5093

File tree

6 files changed

+23
-30
lines changed

6 files changed

+23
-30
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: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,45 @@ All notable changes to this project will be documented in this file. See [standa
44

55
## [1.8.0](https://github.com/boringcodes/create-package/compare/v1.7.1...v1.8.0) (2021-01-12)
66

7-
87
### Features
98

10-
* **lint-staged:** update glob pattern to ignore /templates dir ([0b752dd](https://github.com/boringcodes/create-package/commit/0b752dd96e5152142bee62ddf6d9d14fed95dc81))
11-
* **templates:** set all packages version to *, replace old rollup plugins with the new ones ([bd35919](https://github.com/boringcodes/create-package/commit/bd35919890361c34283fef592151d86973958711))
9+
- **lint-staged:** update glob pattern to ignore /templates dir ([0b752dd](https://github.com/boringcodes/create-package/commit/0b752dd96e5152142bee62ddf6d9d14fed95dc81))
10+
- **templates:** set all packages version to \*, replace old rollup plugins with the new ones ([bd35919](https://github.com/boringcodes/create-package/commit/bd35919890361c34283fef592151d86973958711))
1211

1312
### [1.7.1](https://github.com/boringcodes/create-package/compare/v1.7.0...v1.7.1) (2020-08-26)
1413

15-
1614
### Bug Fixes
1715

18-
* **templates:** add missing rollup-plugin-commonjs package to fix commonjs build ([762aeb4](https://github.com/boringcodes/create-package/commit/762aeb4cf7fe35a5d1fb84bc4e517f2a365d93e8))
16+
- **templates:** add missing rollup-plugin-commonjs package to fix commonjs build ([762aeb4](https://github.com/boringcodes/create-package/commit/762aeb4cf7fe35a5d1fb84bc4e517f2a365d93e8))
1917

2018
## [1.7.0](https://github.com/boringcodes/create-package/compare/v1.6.0...v1.7.0) (2020-04-24)
2119

22-
2320
### Features
2421

25-
* **template:** remove unused .prettierignore ([660e413](https://github.com/boringcodes/create-package/commit/660e413258d1752d8c102c58672abb7ca668b60c))
26-
22+
- **template:** remove unused .prettierignore ([660e413](https://github.com/boringcodes/create-package/commit/660e413258d1752d8c102c58672abb7ca668b60c))
2723

2824
### Bug Fixes
2925

30-
* **deps:** mistaken putting change-case to devDeps ([9f846e1](https://github.com/boringcodes/create-package/commit/9f846e1a4518180fb58ccadd6597a498dfdb1485))
26+
- **deps:** mistaken putting change-case to devDeps ([9f846e1](https://github.com/boringcodes/create-package/commit/9f846e1a4518180fb58ccadd6597a498dfdb1485))
3127

3228
## [1.6.0](https://github.com/boringcodes/create-package/compare/v1.5.0...v1.6.0) (2020-03-28)
3329

34-
3530
### Features
3631

37-
* **template:** remove @typescript-eslint/parser eslint-config-standard in favor of eslint-config-standard-with-typescript ([13ec183](https://github.com/boringcodes/create-package/commit/13ec18304f19da0d6f004dc8ad69c26986e5eac5))
38-
* **template:** remove unused tslint.json ([e94d428](https://github.com/boringcodes/create-package/commit/e94d4287f5e34ee88d1c1b677da99fb017e24e18))
39-
* **template:** replace pretty-quick with lint-staged, add tsconfig.json ([d5fd206](https://github.com/boringcodes/create-package/commit/d5fd206b8ffeb0f8d7f9719f569a826fbc6f36c3))
40-
32+
- **template:** remove @typescript-eslint/parser eslint-config-standard in favor of eslint-config-standard-with-typescript ([13ec183](https://github.com/boringcodes/create-package/commit/13ec18304f19da0d6f004dc8ad69c26986e5eac5))
33+
- **template:** remove unused tslint.json ([e94d428](https://github.com/boringcodes/create-package/commit/e94d4287f5e34ee88d1c1b677da99fb017e24e18))
34+
- **template:** replace pretty-quick with lint-staged, add tsconfig.json ([d5fd206](https://github.com/boringcodes/create-package/commit/d5fd206b8ffeb0f8d7f9719f569a826fbc6f36c3))
4135

4236
### Bug Fixes
4337

44-
* **template:** add @typescript-eslint/parser to dev deps to resolve unmet peer dep ([49e2f25](https://github.com/boringcodes/create-package/commit/49e2f25e8c623419208075b41b3ec4bc6accce85))
38+
- **template:** add @typescript-eslint/parser to dev deps to resolve unmet peer dep ([49e2f25](https://github.com/boringcodes/create-package/commit/49e2f25e8c623419208075b41b3ec4bc6accce85))
4539

4640
## [1.5.0](https://github.com/boringcodes/create-package/compare/v1.4.0...v1.5.0) (2020-03-28)
4741

48-
4942
### Features
5043

51-
* **generator:** remove .github generating ([5ddb543](https://github.com/boringcodes/create-package/commit/5ddb54377439f35ea5d982a43ef49d5d41ca4049))
52-
* **template:** replace tslint with eslint typescript ([3471278](https://github.com/boringcodes/create-package/commit/3471278c31177e26b21026c395e4880b6ea0fc5e))
44+
- **generator:** remove .github generating ([5ddb543](https://github.com/boringcodes/create-package/commit/5ddb54377439f35ea5d982a43ef49d5d41ca4049))
45+
- **template:** replace tslint with eslint typescript ([3471278](https://github.com/boringcodes/create-package/commit/3471278c31177e26b21026c395e4880b6ea0fc5e))
5346

5447
## [1.4.0](https://github.com/boringcodes/create-package/compare/v1.3.0...v1.4.0) (2020-03-26)
5548

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"build": "rollup -c",
1616
"postbuild": "copyfiles CHANGELOG.md LICENSE package.json README.md dist",
1717
"purge": "rm -rf node_modules",
18-
"clean": "rm -rf dist",
19-
"format": "prettier --write --ignore-path .gitignore **/*.ts",
20-
"format:check": "prettier --check --ignore-path .gitignore **/*.ts",
21-
"lint": "eslint --quiet --ignore-path .gitignore **/*.ts",
18+
"clean": "rm -rf dist .rpt2_cache",
19+
"format": "prettier --write --ignore-path .gitignore .",
20+
"format:check": "prettier --check --ignore-path .gitignore .",
21+
"lint": "eslint --quiet --ignore-path .gitignore --ext .ts .",
2222
"release": "standard-version --no-verify",
2323
"release:major": "yarn release --release-as major",
2424
"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
@@ -13,7 +13,5 @@
1313
"sourceMap": true,
1414
"strict": true
1515
},
16-
"include": [
17-
"**/*.ts"
18-
]
16+
"include": ["**/*.ts"]
1917
}

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)