Skip to content

Commit cb74d77

Browse files
committed
chore(deps): add angular 15 support
1 parent e7a60aa commit cb74d77

File tree

6 files changed

+1197
-1469
lines changed

6 files changed

+1197
-1469
lines changed

.github/workflows/integration-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
angular-version: [9, 10, 11, 12, 13, 14]
16+
angular-version: [9, 10, 11, 12, 13, 14, 15]
1717
os: [ubuntu-latest, windows-latest]
1818

1919
runs-on: ${{ matrix.os }}
@@ -58,6 +58,7 @@ jobs:
5858
- name: 🔗 Link Library into Angular Project Version ${{ matrix.angular-version }}
5959
run: |
6060
cd tmp/angular${{ matrix.angular-version }}
61+
pnpm config set auto-install-peers true --location project
6162
pnpm install --save ../dist/${{ env.LIBRARY }}
6263
pnpm install
6364
pnpm exec ng version

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11

22
# Angular ESLint + Stylelint Linter
33

4-
[![npm version](https://badge.fury.io/js/@krema%2Fangular-eslint-stylelint-builder.svg)](https://badge.fury.io/js/@krema%2Fangular-eslint-stylelint-builder) ![node workflow](https://github.com/krema/angular-eslint-stylelint-builder/actions/workflows/integration-test.yml/badge.svg) ![node workflow](https://github.com/krema/angular-eslint-stylelint-builder/actions/workflows/unit-test.yml/badge.svg)
4+
[![npm version](https://badge.fury.io/js/@krema%2Fangular-eslint-stylelint-builder.svg)](https://badge.fury.io/js/@krema%2Fangular-eslint-stylelint-builder) ![node workflow](https://github.com/krema/angular-eslint-stylelint-builder/actions/workflows/integration-test.yml/badge.svg) ![node workflow](https://github.com/krema/angular-eslint-stylelint-builder/actions/workflows/unit-test.yml/badge.svg) ![angular versions](https://img.shields.io/badge/angular-v9--v15-%2523DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey)
55

6-
7-
An Angular CLI builder inspired by [@angular-eslint/builder](https://github.com/angular-eslint/angular-eslint/tree/master/packages/builder) for linting Angular applications using [ESLint](https://eslint.org/) and [stylelint](https://stylelint.io/).
8-
9-
The library works with following Angular versions:
10-
11-
![9](https://img.shields.io/badge/angular-9-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey) ![10](https://img.shields.io/badge/angular-10-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey) ![11](https://img.shields.io/badge/angular-11-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey) ![12](https://img.shields.io/badge/angular-12-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey) ![13](https://img.shields.io/badge/angular-13-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey) ![14](https://img.shields.io/badge/angular-14-%23DD0031.svg?flat-square&logo=angular&labelColor=ff0000&color=grey)
6+
An Angular CLI builder inspired by [@angular-eslint/builder](https://github.com/angular-eslint/angular-eslint/tree/master/packages/builder) for linting Angular applications using [ESLint](https://eslint.org/) and [stylelint](https://stylelint.io/) in one easy step.
127

138
## Prerequisites
149

15-
Installed and configured **eslint** and **stylelint** e.g. via `.eslintrc` and `.stylelintrc`.
16-
17-
For more information on converting TSLint to ESLint in Angular projects please see the following [@angular-eslint](https://github.com/angular-eslint/angular-eslint) project.
10+
Before using this linter, please ensure that you have already installed and configured **eslint** and **stylelint**, for example, by setting up `.eslintrc` and `.stylelintrc` files. For more information on converting TSLint to ESLint in Angular projects, please check out the [@angular-eslint](https://github.com/angular-eslint/angular-eslint) project.
1811

1912
## Install
2013

2114
`npm install --save-dev @krema/angular-eslint-stylelint-builder`
2215

2316
## Usage
2417

25-
Add the builder *@krema/angular-eslint-stylelint-builder:lint"* to the lint task in your *angular.json*.
26-
18+
Add the builder `@krema/angular-eslint-stylelint-builder:lint` to the lint task in your *angular.json*.
2719

2820
**angular.json**
2921

3022
> projects &#8594; \<my-project> &#8594; architect &#8594; lint
3123
3224
Replace the builder of `@angular-eslint` with `@krema/angular-eslint-stylelint-builder`:
3325

34-
35-
```diff
26+
```diff
3627
"lint": {
3728
- "builder": "@angular-eslint/builder:lint",
3829
+ "builder": "@krema/angular-eslint-stylelint-builder:lint",
@@ -50,7 +41,7 @@ Run `ng lint`:
5041

5142
## Configuration
5243

53-
The following options can be configured:
44+
You can configure the following options:
5445

5546
<table>
5647
<tr>
@@ -77,7 +68,7 @@ The following options can be configured:
7768
<td>eslintConfig</td>
7869
<td></td>
7970
<td>
80-
Use this configuration, overriding .eslintrc.* config options if present
71+
Use this configuration, overriding .eslintrc.*config options if present
8172
</td>
8273
<td></td>
8374
<td>eslint</td>

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@
3131
"yarn": ">= 1.13.0"
3232
},
3333
"devDependencies": {
34-
"@angular-devkit/architect": "^0.1401.3",
34+
"@angular-devkit/architect": "^0.1502.1",
3535
"@semantic-release/changelog": "^6.0.2",
3636
"@semantic-release/git": "^10.0.1",
37-
"@types/jest": "^27.5.2",
38-
"@types/node": "^16.18.14",
39-
"@typescript-eslint/eslint-plugin": "^5.37.0",
40-
"@typescript-eslint/parser": "^5.53.0",
37+
"@types/jest": "^29.4.0",
38+
"@types/node": "^18.14.6",
39+
"@typescript-eslint/eslint-plugin": "^5.54.1",
40+
"@typescript-eslint/parser": "^5.54.1",
4141
"eslint": "^8.35.0",
42-
"eslint-config-prettier": "^8.6.0",
42+
"eslint-config-prettier": "^8.7.0",
4343
"eslint-plugin-import": "^2.27.5",
4444
"eslint-plugin-prettier": "^4.2.1",
4545
"eslint-plugin-unused-imports": "^2.0.0",
46-
"jest": "^27.5.1",
46+
"jest": "^29.5.0",
4747
"jest-extended": "^3.2.4",
4848
"jest-github-actions-reporter": "^1.0.3",
49-
"jest-junit": "^14.0.1",
49+
"jest-junit": "^15.0.0",
5050
"npm-watch": "^0.11.0",
5151
"prettier": "^2.8.4",
52-
"semantic-release": "^19.0.5",
52+
"semantic-release": "^20.1.1",
5353
"stylelint": "^15.2.0",
54-
"ts-jest": "^27.1.5",
55-
"typescript": "^4.3.5"
54+
"ts-jest": "^29.0.5",
55+
"typescript": "^4.9.5"
5656
}
5757
}

0 commit comments

Comments
 (0)