• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-cli / 13498337072

24 Feb 2025 12:44PM UTC coverage: 70.044% (+0.003%) from 70.041%
13498337072

push

github

web-flow
fix: update eslint and fix warnings (#1378)

* fix(cli): upgrade eslint

* fix(cli): update eslint version and fix config logic

* fix(cli): add missing files

* fix(cli): add version 14.3.14-beta.0

* fix(cli): update glob to 11.0.0 and fix tests

* fix(cli): remove rimraf under 5 versions, inflight and glob under 10 version from yarn lock

* fix(cli): fix yarn lock and release verison 14.3.14-beta.1

* fix(cli): upgrade eslint plugin react hooks to fix react error

* fix(cli): release version 14.3.14-beta.2

* fix(cli): upgrade coveralls version to 2.4.0

* fix(cli): revert coveralls upgrade

* fix(cli): turn off no internal modules import

* fix(cli): fix typo

* fix(cli): revert change in configuration

* fix(cli): increase chunk size when build react and web components add terser to minify the code

* chore(cli): release version 14.3.14-beta.3

* fix(cli): change eslint config file names

* fix(cli): add packages in angular package json

* fix(cli): add missing configs for angular eslint

* chore(cli): release version 14.3.14-beta.4

* fix(cli): add terser options

* chore(cli): release version 14.3.14-beta.5

* fix(cli): update eslint configuration for react and wc

* fix(cli): update lint command in package json files

* chore(cli): release version 14.3.14-beta.6

* chore(cli): release version 14.3.14-beta.7

* fix(cli): fix configurations for es lint

* chore(cli): release version 14.3.14-beta.8

* fix(cli): remove pure comment error from wc projects

* fix(cli): add fixes in angular configuration

* chore(cli): release version 14.3.14-beta.9

* fix(cli): add option for angular templates to disable optionalChainNotNullable check

* chore(cli): release version 14.3.14-beta.10

* fix: build and lint errors from a project for all components and scenarios

* fix: clear more lint warnings and build errors.

---------

Co-authored-by: Hristo Hristov <HHristov@infragistics.com>
Co-authored-by: lipata <nikolay.alipiev@gmail.com>

917 of 1348 branches covered (68.03%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 2 files covered. (75.0%)

4690 of 6657 relevant lines covered (70.45%)

87.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/packages/core/util/FileSystem.ts
1

2
import * as fs from "fs";
11✔
3
import * as glob from "glob";
11✔
4
import * as path from "path";
11✔
5
import { IFileSystem } from "../types/FileSystem";
6

7
export class FsFileSystem implements IFileSystem {
11✔
8
        public fileExists(filePath: string): boolean {
9
                try {
315✔
10
                        return fs.statSync(filePath).isFile();
315✔
11
                } catch (err) {
12
                        return false;
208✔
13
                }
14
        }
15
        public readFile(filePath: string, encoding?: BufferEncoding): string {
16
                if (encoding) {
82✔
17
                        return fs.readFileSync(filePath, { encoding });
56✔
18
                }
19
                return fs.readFileSync(filePath).toString();
26✔
20
        }
21
        public writeFile(filePath: string, text: string): void {
22
                fs.writeFileSync(filePath, text);
18✔
23
        }
24
        public directoryExists(dirPath: string): boolean {
25
                try {
1,050✔
26
                        return fs.statSync(dirPath).isDirectory();
1,050✔
27
                } catch (e) {
28
                        return false;
878✔
29
                }
30
        }
31

32
        public glob(dirPath: string, pattern: string): string[] {
NEW
33
                return glob.sync(path.join(dirPath, pattern), { nodir: true })
×
NEW
34
                        .map(filePath => filePath.replace(/\\/g, "/"));
×
35
        }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc