Skip to content

Commit 99d1881

Browse files
Update deps and bump to 1.3.0
1 parent 1e16eae commit 99d1881

9 files changed

+11948
-10380
lines changed

.eslintrc.json

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json",
14+
"e2e/tsconfig.json"
15+
],
16+
"createDefaultProgram": true
17+
},
18+
"extends": [
19+
"plugin:@angular-eslint/ng-cli-compat",
20+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
21+
"plugin:@angular-eslint/template/process-inline-templates"
22+
],
23+
"rules": {
24+
"@angular-eslint/component-selector": [
25+
"error",
26+
{
27+
"type": "element",
28+
"prefix": "app",
29+
"style": "kebab-case"
30+
}
31+
],
32+
"@angular-eslint/directive-selector": [
33+
"error",
34+
{
35+
"type": "attribute",
36+
"prefix": "app",
37+
"style": "camelCase"
38+
}
39+
],
40+
"@typescript-eslint/explicit-member-accessibility": [
41+
"off",
42+
{
43+
"accessibility": "explicit"
44+
}
45+
],
46+
"@typescript-eslint/no-use-before-define": "error",
47+
"arrow-parens": ["off", "always"],
48+
"import/order": "off",
49+
"space-before-function-paren": ["error", "always"]
50+
}
51+
},
52+
{
53+
"files": [
54+
"*.html"
55+
],
56+
"extends": [
57+
"plugin:@angular-eslint/template/recommended"
58+
],
59+
"rules": {}
60+
}
61+
]
62+
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NW.js and Angular CLI example
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.8. Though dependencies have been updated since then. You'll likely want to clone from `master` rather than use the latest release. Here is the [diff between latest release and master](https://github.com/nwutils/nw-angular-cli-example/compare/v1.2.0...master).
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.8. Though dependencies have been updated since then. You'll likely want to clone from `main` rather than use the latest release. Here is the [diff between the latest release and main](https://github.com/nwutils/nw-angular-cli-example/compare/v1.3.0...main).
44

55

66
![A Screenshot of the default app running on Windows](screenshot.png)

angular.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"aot": false,
21+
"aot": true,
2222
"assets": [
2323
"src/favicon.ico",
2424
"src/assets"
@@ -90,15 +90,11 @@
9090
}
9191
},
9292
"lint": {
93-
"builder": "@angular-devkit/build-angular:tslint",
93+
"builder": "@angular-eslint/builder:lint",
9494
"options": {
95-
"tsConfig": [
96-
"tsconfig.app.json",
97-
"tsconfig.spec.json",
98-
"e2e/tsconfig.json"
99-
],
100-
"exclude": [
101-
"**/node_modules/**"
95+
"lintFilePatterns": [
96+
"src/**/*.ts",
97+
"src/**/*.html"
10298
]
10399
}
104100
},
@@ -115,6 +111,10 @@
115111
}
116112
}
117113
}
118-
}},
119-
"defaultProject": "nw-angular"
114+
}
115+
},
116+
"defaultProject": "nw-angular",
117+
"cli": {
118+
"defaultCollection": "@angular-eslint/schematics"
119+
}
120120
}

0 commit comments

Comments
 (0)