Skip to content

Commit 80af95b

Browse files
authored
chore: fix linter errors (#1538)
1 parent f034b8b commit 80af95b

39 files changed

+265
-129
lines changed

.github/workflows/deploy-apps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI Deploy
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ['main']
66
paths:
77
- 'apps/**'
88
- 'libs/**'
@@ -20,7 +20,7 @@ permissions:
2020
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2121
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2222
concurrency:
23-
group: "pages"
23+
group: 'pages'
2424
cancel-in-progress: false
2525

2626
jobs:
@@ -91,7 +91,7 @@ jobs:
9191
cp -r dist/tooltip-demo/* deploy/tooltip-demo/
9292
mkdir deploy/virtual-table-demo
9393
cp -r dist/virtual-table-demo/* deploy/virtual-table-demo/
94-
94+
9595
# Create a 404.html to handle SPA routing redirects
9696
cp deploy/index.html deploy/404.html
9797

libs/cdk/CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ All notable changes to this project will be documented in this file. See
77

88
### Bug Fixes
99

10-
* **cdk:** virtual table now correctly rerenders after setting sort types manually multiple times ([c5f715c](https://github.com/Angular-RU/angular-ru-sdk/commit/c5f715c3098aa53f18d66da72b49bacdd190524a))
10+
- **cdk:** virtual table now correctly rerenders after setting sort types manually multiple times
11+
([c5f715c](https://github.com/Angular-RU/angular-ru-sdk/commit/c5f715c3098aa53f18d66da72b49bacdd190524a))
1112

1213
### Features
1314

14-
* angular v20 and NX v21 ([1aa382d](https://github.com/Angular-RU/angular-ru-sdk/commit/1aa382d505962c260c6f8a871bdb7d58d2b8b1cb))
15-
* standalone components and pipes; root providers instead of forRoot(); removal of ngModules ([729959c](https://github.com/Angular-RU/angular-ru-sdk/commit/729959c201623ffc4406d680d46908059d9a5754))
15+
- angular v20 and NX v21
16+
([1aa382d](https://github.com/Angular-RU/angular-ru-sdk/commit/1aa382d505962c260c6f8a871bdb7d58d2b8b1cb))
17+
- standalone components and pipes; root providers instead of forRoot(); removal of ngModules
18+
([729959c](https://github.com/Angular-RU/angular-ru-sdk/commit/729959c201623ffc4406d680d46908059d9a5754))
1619

1720
# [15.2.0](https://github.com/Angular-RU/angular-ru-sdk/compare/@angular-ru/[email protected]...@angular-ru/[email protected]) (2024-04-10)
1821

libs/cdk/tests/array/include.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ describe('[TEST]: include', () => {
88
expect([1, 2, 3].filter(include(4))).toEqual([]);
99
expect([1, 2, 3].filter(include([2, 3, 4]))).toEqual([2, 3]);
1010
expect([{v: 1}, {v: 2}, {v: 3}].filter(include({v: 1}))).toEqual([]);
11+
1112
const unique: PlainObject = {v: 1};
1213

1314
expect([unique, {v: 2}, {v: 3}].filter(include([unique]))).toEqual([unique]);

libs/cdk/tests/array/unique-array-of.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable sonarjs/no-hardcoded-ip */
12
import {uniqueArrayOf} from '@angular-ru/cdk/array';
23

34
describe('[TEST]: unique array of', () => {

libs/cdk/tests/array/unique.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,56 +10,65 @@ describe('[TEST]: unique', () => {
1010
[],
1111
);
1212
});
13+
1314
it('should return one object', () => {
1415
expect(
1516
[a].filter((element, index, self) => unique(element, index, self)),
1617
).toEqual([a]);
1718
});
19+
1820
it('should return the same array', () => {
1921
expect(
2022
[a, b, c].filter((element, index, self) => unique(element, index, self)),
2123
).toEqual([a, b, c]);
2224
});
25+
2326
it('should return array with no duplicates of objects', () => {
2427
expect(
2528
[a, b, c, c, a].filter((element, index, self) =>
2629
unique(element, index, self),
2730
),
2831
).toEqual([a, b, c]);
2932
});
33+
3034
it('should return array with no duplicates of strings', () => {
3135
expect(
3236
['a', 'b', 'b', 'b'].filter((element, index, self) =>
3337
unique(element, index, self),
3438
),
3539
).toEqual(['a', 'b']);
3640
});
41+
3742
it('should return array with no duplicates of numbers', () => {
3843
expect(
3944
[13, 13, 13].filter((element, index, self) => unique(element, index, self)),
4045
).toEqual([13]);
4146
});
47+
4248
it('should return array with no duplicates according to values and types', () => {
4349
expect(
4450
[a, a, 'a', 13, 13, '13'].filter((element, index, self) =>
4551
unique(element, index, self),
4652
),
4753
).toEqual([a, 'a', 13, '13']);
4854
});
55+
4956
it('should return array with no duplicates of booleans', () => {
5057
expect(
5158
[true, true, false].filter((element, index, self) =>
5259
unique(element, index, self),
5360
),
5461
).toEqual([true, false]);
5562
});
63+
5664
it('should return array with no duplicates of "no value" types', () => {
5765
expect(
5866
[null, null, undefined, undefined, '', '', Infinity, Infinity].filter(
5967
(element, index, self) => unique(element, index, self),
6068
),
6169
).toEqual([null, undefined, '', Infinity]);
6270
});
71+
6372
it('should return empty array for the array of "NaN"', () => {
6473
expect(
6574
[NaN, NaN].filter((element, index, self) => unique(element, index, self)),

libs/cdk/tests/array/utility-arrays.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable sonarjs/no-undefined-argument */
12
import {
23
exclude,
34
hasAtMostOneItem,

libs/cdk/tests/big-decimal/add.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('[TEST]: BigDecimal - add', () => {
4848
it('should: 126.7-13 = 113.7', () => {
4949
expect(BigDecimal.add('126.7', '-13')).toBe('113.7');
5050
});
51+
5152
it('should: 12.67-130.7 = -118.03', () => {
5253
expect(BigDecimal.add('12.67', '-130.7')).toBe('-118.03');
5354
});

libs/cdk/tests/big-decimal/big-decimal.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ describe('[TEST]: BigDecimal - main', () => {
273273
'0',
274274
);
275275
});
276+
276277
it('should: -0.0000005 * 13 = -0.0000065', () => {
277278
expect(
278279
new BigDecimal('-0.0000005').multiply(new BigDecimal('13')).getValue(),

libs/cdk/tests/big-decimal/compare-to.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,23 @@ describe('[TEST]: BigDecimal - compareTo', () => {
4848
it('should: 126.7, -13 = 1', () => {
4949
expect(BigDecimal.compareTo('126.7', '-13')).toBe(1);
5050
});
51+
5152
it('should: 12.67, -12.67 = 1', () => {
5253
expect(BigDecimal.compareTo('12.67', '-12.67')).toBe(1);
5354
});
55+
5456
it('should: 12.67, 12.67 = 0', () => {
5557
expect(BigDecimal.compareTo('12.67', '12.67')).toBe(0);
5658
});
59+
5760
it('should: 12.67, 12.6700 = 0', () => {
5861
expect(BigDecimal.compareTo('12.67', '12.6700')).toBe(0);
5962
});
63+
6064
it('should: -12.67, -12.6700 = 0', () => {
6165
expect(BigDecimal.compareTo('-12.67', '-12.6700')).toBe(0);
6266
});
67+
6368
it('should: 0.67, .6700 = 0', () => {
6469
expect(BigDecimal.compareTo('0.67', '.6700')).toBe(0);
6570
});

libs/cdk/tests/big-decimal/multiply.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe('[TEST]: BigDecimal - multiply', () => {
6060
it('should: -12 * -0 = 0', () => {
6161
expect(BigDecimal.multiply('-12', '-0')).toBe('0');
6262
});
63+
6364
it('should: -0.0000005 * 13 = -0.0000065', () => {
6465
expect(BigDecimal.multiply('-0.0000005', '13')).toBe('-0.0000065');
6566
});

0 commit comments

Comments
 (0)