Skip to content

Commit a1d2f2e

Browse files
Format code with prettier
This commit fixes the style issues introduced in f88acca according to the output from prettier. Details: https://deepsource.io/gh/deepsourcelabs/demo-javascript/transform/9a2b71cc-6491-445f-810e-043f9cc68a7c/
1 parent f88acca commit a1d2f2e

29 files changed

+746
-352
lines changed

packages/demo-angular/angular.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
2121
"aot": true,
22-
"assets": [
23-
"src/favicon.ico",
24-
"src/assets"
25-
],
26-
"styles": [
27-
"src/styles.css"
28-
],
22+
"assets": ["src/favicon.ico", "src/assets"],
23+
"styles": ["src/styles.css"],
2924
"scripts": []
3025
},
3126
"configurations": {
@@ -82,13 +77,8 @@
8277
"polyfills": "src/polyfills.ts",
8378
"tsConfig": "tsconfig.spec.json",
8479
"karmaConfig": "karma.conf.js",
85-
"assets": [
86-
"src/favicon.ico",
87-
"src/assets"
88-
],
89-
"styles": [
90-
"src/styles.css"
91-
],
80+
"assets": ["src/favicon.ico", "src/assets"],
81+
"styles": ["src/styles.css"],
9282
"scripts": []
9383
}
9484
},
@@ -100,9 +90,7 @@
10090
"tsconfig.spec.json",
10191
"e2e/tsconfig.json"
10292
],
103-
"exclude": [
104-
"**/node_modules/**"
105-
]
93+
"exclude": ["**/node_modules/**"]
10694
}
10795
},
10896
"e2e": {

packages/demo-angular/e2e/protractor.conf.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22
// Protractor configuration file, see link for more information
33
// https://github.com/angular/protractor/blob/master/lib/config.ts
44

5-
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
5+
const { SpecReporter, StacktraceOption } = require("jasmine-spec-reporter");
66

77
/**
88
* @type { import("protractor").Config }
99
*/
1010
exports.config = {
1111
allScriptsTimeout: 11000,
12-
specs: [
13-
'./src/**/*.e2e-spec.ts'
14-
],
12+
specs: ["./src/**/*.e2e-spec.ts"],
1513
capabilities: {
16-
browserName: 'chrome'
14+
browserName: "chrome",
1715
},
1816
directConnect: true,
1917
SELENIUM_PROMISE_MANAGER: false,
20-
baseUrl: 'http://localhost:4200/',
21-
framework: 'jasmine',
18+
baseUrl: "http://localhost:4200/",
19+
framework: "jasmine",
2220
jasmineNodeOpts: {
2321
showColors: true,
2422
defaultTimeoutInterval: 30000,
25-
print: function() {}
23+
print: function () {},
2624
},
2725
onPrepare() {
28-
require('ts-node').register({
29-
project: require('path').join(__dirname, './tsconfig.json')
26+
require("ts-node").register({
27+
project: require("path").join(__dirname, "./tsconfig.json"),
3028
});
31-
jasmine.getEnv().addReporter(new SpecReporter({
32-
spec: {
33-
displayStacktrace: StacktraceOption.PRETTY
34-
}
35-
}));
36-
}
37-
};
29+
jasmine.getEnv().addReporter(
30+
new SpecReporter({
31+
spec: {
32+
displayStacktrace: StacktraceOption.PRETTY,
33+
},
34+
})
35+
);
36+
},
37+
};

packages/demo-angular/e2e/src/app.e2e-spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ describe('workspace-project App', () => {
1616
afterEach(async () => {
1717
// Assert that there are no errors emitted from the browser
1818
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19-
expect(logs).not.toContain(jasmine.objectContaining({
20-
level: logging.Level.SEVERE,
21-
} as logging.Entry));
19+
expect(logs).not.toContain(
20+
jasmine.objectContaining({
21+
level: logging.Level.SEVERE,
22+
} as logging.Entry)
23+
);
2224
});
2325
});

packages/demo-angular/e2e/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"outDir": "../out-tsc/e2e",
66
"module": "commonjs",
77
"target": "es2018",
8-
"types": [
9-
"jasmine",
10-
"node"
11-
]
8+
"types": ["jasmine", "node"]
129
}
1310
}

packages/demo-angular/karma.conf.js

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
module.exports = function (config) {
55
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
6+
basePath: "",
7+
frameworks: ["jasmine", "@angular-devkit/build-angular"],
88
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-chrome-launcher'),
11-
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage'),
13-
require('@angular-devkit/build-angular/plugins/karma')
9+
require("karma-jasmine"),
10+
require("karma-chrome-launcher"),
11+
require("karma-jasmine-html-reporter"),
12+
require("karma-coverage"),
13+
require("@angular-devkit/build-angular/plugins/karma"),
1414
],
1515
client: {
1616
jasmine: {
@@ -19,26 +19,23 @@ module.exports = function (config) {
1919
// for example, you can disable the random execution with `random: false`
2020
// or set a specific seed with `seed: 4321`
2121
},
22-
clearContext: false // leave Jasmine Spec Runner output visible in browser
22+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
2323
},
2424
jasmineHtmlReporter: {
25-
suppressAll: true // removes the duplicated traces
25+
suppressAll: true, // removes the duplicated traces
2626
},
2727
coverageReporter: {
28-
dir: require('path').join(__dirname, './coverage/demo-angular'),
29-
subdir: '.',
30-
reporters: [
31-
{ type: 'html' },
32-
{ type: 'text-summary' }
33-
]
28+
dir: require("path").join(__dirname, "./coverage/demo-angular"),
29+
subdir: ".",
30+
reporters: [{ type: "html" }, { type: "text-summary" }],
3431
},
35-
reporters: ['progress', 'kjhtml'],
32+
reporters: ["progress", "kjhtml"],
3633
port: 9876,
3734
colors: true,
3835
logLevel: config.LOG_INFO,
3936
autoWatch: true,
40-
browsers: ['Chrome'],
37+
browsers: ["Chrome"],
4138
singleRun: false,
42-
restartOnFileChange: true
39+
restartOnFileChange: true,
4340
});
4441
};

packages/demo-angular/src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const routes: Routes = [];
55

66
@NgModule({
77
imports: [RouterModule.forRoot(routes)],
8-
exports: [RouterModule]
8+
exports: [RouterModule],
99
})
10-
export class AppRoutingModule { }
10+
export class AppRoutingModule {}

0 commit comments

Comments
 (0)