Skip to content

Commit 47c7442

Browse files
committed
feat(deps): 👷 add Angular 14 support
1 parent 0c4330a commit 47c7442

12 files changed

+424
-1156
lines changed

.eslintrc.json

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
11
{
22
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
5-
"project": "./tsconfig.json"
6-
},
7-
"plugins": ["@typescript-eslint", "unused-imports", "prettier"],
8-
"env": {
9-
"node": true
10-
},
11-
12-
"extends": [
13-
"eslint:recommended",
14-
"plugin:@typescript-eslint/recommended",
15-
"prettier",
16-
"plugin:import/recommended",
17-
"plugin:import/typescript"
18-
],
19-
"rules": {
20-
"prettier/prettier": "error",
21-
"@typescript-eslint/consistent-type-imports": "error",
22-
"@typescript-eslint/no-unused-vars": [
23-
"error",
24-
{
25-
"argsIgnorePattern": "_"
3+
"overrides": [
4+
{
5+
"files": ["*.ts"],
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": [
9+
"tsconfig.json",
10+
"tsconfig.lib.json",
11+
"tsconfig.spec.json"
12+
],
13+
"createDefaultProgram": false
14+
},
15+
"plugins": ["@typescript-eslint", "unused-imports", "prettier"],
16+
"extends": [
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/recommended",
19+
"prettier",
20+
"plugin:import/recommended",
21+
"plugin:import/typescript"
22+
],
23+
"rules": {
24+
"prettier/prettier": "error",
25+
"@typescript-eslint/consistent-type-imports": "error",
26+
"@typescript-eslint/no-unused-vars": [
27+
"error",
28+
{
29+
"argsIgnorePattern": "_"
30+
}
31+
],
32+
"@typescript-eslint/array-type": "error",
33+
"@typescript-eslint/ban-ts-comment": "off"
34+
},
35+
"env": {
36+
"node": true,
37+
"jest": true
2638
}
27-
],
28-
"@typescript-eslint/array-type": "error",
29-
"@typescript-eslint/ban-ts-comment": "off"
30-
}
39+
}
40+
]
41+
3142
}

.github/workflows/integration-test.yml

Lines changed: 3 additions & 3 deletions
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]
16+
angular-version: [9, 10, 11, 12, 13, 14]
1717
os: [ubuntu-latest, windows-latest]
1818

1919
runs-on: ${{ matrix.os }}
@@ -28,7 +28,7 @@ jobs:
2828
- name: 🏗 Setup node version
2929
uses: actions/setup-node@v3
3030
with:
31-
node-version: 17
31+
node-version: 16
3232
cache: 'npm'
3333
- run: |
3434
npm i -g npm@7
@@ -58,7 +58,7 @@ jobs:
5858
cd tmp/angular${{ matrix.angular-version }}
5959
npm install --save ../dist/${{ env.LIBRARY }}
6060
npm install
61-
npx ng --version
61+
npx ng version
6262
6363
- name: ✅ Add Linter configuration to angular.json into Angular Project Version ${{ matrix.angular-version }}
6464
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: 🏗 Setup node version
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 17
20+
node-version: 16
2121
registry-url: 'https://registry.npmjs.org'
2222
- run: npm i -g npm@7
2323

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: 🏗 Setup node version
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 17
23+
node-version: 16
2424
cache: 'npm'
2525
- run: npm i -g npm@7
2626

.nvmrc

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

README.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ An Angular CLI builder inspired by [@angular-eslint/builder](https://github.com/
88

99
The library works with following Angular versions:
1010

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)
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)
1212

1313
## Prerequisites
1414

lib/builder/src/builder.spec.ts

100644100755
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { toArray, map } from 'rxjs/operators';
22

33
import { Architect } from '@angular-devkit/architect';
44
import { TestingArchitectHost } from '@angular-devkit/architect/testing';
5-
import { schema } from '@angular-devkit/core';
6-
import { Logger } from '@angular-devkit/core/src/logger';
5+
import { logging, schema } from '@angular-devkit/core';
76
import { exec } from 'child_process';
87

98
describe('Lint', () => {
109
let architect: Architect;
1110
let architectHost: TestingArchitectHost;
12-
let logger: Logger;
11+
let logger: logging.Logger;
1312

1413
beforeEach(async () => {
1514
const registry = new schema.CoreSchemaRegistry();
@@ -19,7 +18,7 @@ describe('Lint', () => {
1918
// Since we don't use those, both are the same in this case.
2019
architectHost = new TestingArchitectHost('./test', './test');
2120
architect = new Architect(architectHost, registry);
22-
logger = new Logger('test');
21+
logger = new logging.Logger('test');
2322

2423
// This will either take a Node package name, or a path to the directory
2524
// for the package.json file.
@@ -40,7 +39,7 @@ describe('Lint', () => {
4039
eslintFilePatterns: ['src/**/*.ts'],
4140
stylelintFilePatterns: ['src/**/*.css'],
4241
},
43-
{ logger }
42+
{ logger: logger }
4443
);
4544
const loggerPromise = logger
4645
.pipe(

0 commit comments

Comments
 (0)