Skip to content

Commit 0e4720b

Browse files
author
Henrik Johansson
committed
Implement angular strict mode
1 parent 5e75352 commit 0e4720b

File tree

61 files changed

+20124
-4139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+20124
-4139
lines changed

.browserslistrc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
# For additional information regarding the format and rule options, please see:
33
# https://github.com/browserslist/browserslist#queries
44

5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
58
# You can see what browsers were selected by your queries by running:
69
# npx browserslist
710

8-
> 0.5%
9-
last 2 versions
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
1016
Firefox ESR
11-
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.
17+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# Editor configuration, see https://editorconfig.org
22
root = true
33

44
[*]
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = double
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,29 @@
1010
],
1111
"parserOptions": {
1212
"project": [
13-
"src/tsconfig.json"
13+
"tsconfig.json"
1414
],
1515
"createDefaultProgram": true
1616
},
1717
"extends": [
18-
"plugin:@angular-eslint/ng-cli-compat",
19-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
18+
"plugin:@angular-eslint/recommended",
2019
"plugin:@angular-eslint/template/process-inline-templates"
2120
],
2221
"rules": {
23-
"@angular-eslint/component-selector": "off",
24-
"@typescript-eslint/consistent-type-definitions": "error",
25-
"@typescript-eslint/dot-notation": "off",
26-
"@typescript-eslint/explicit-member-accessibility": [
27-
"off",
22+
"@angular-eslint/directive-selector": [
23+
"error",
24+
{
25+
"type": "attribute",
26+
"prefix": "app",
27+
"style": "camelCase"
28+
}
29+
],
30+
"@angular-eslint/component-selector": [
31+
"error",
2832
{
29-
"accessibility": "explicit"
33+
"type": "element",
34+
"prefix": "app",
35+
"style": "kebab-case"
3036
}
3137
],
3238
"@typescript-eslint/member-delimiter-style": [
@@ -95,17 +101,7 @@
95101
"brace-style": [
96102
"error",
97103
"1tbs"
98-
],
99-
"default-case": "error",
100-
"id-blacklist": "off",
101-
"id-match": "off",
102-
"jsdoc/newline-after-description": "off",
103-
"jsdoc/no-types": "off",
104-
"no-duplicate-case": "error",
105-
"no-duplicate-imports": "error",
106-
"no-fallthrough": "off",
107-
"no-redeclare": "error",
108-
"no-underscore-dangle": "off"
104+
]
109105
}
110106
},
111107
{

.gitignore

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,52 @@
1-
reports/
21
# See http://help.github.com/ignore-files/ for more about ignoring files.
3-
*.sw*
2+
43
# compiled output
54
/dist
65
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
79

810
# dependencies
911
/node_modules
1012

13+
# profiling files
14+
chrome-profiler-events*.json
15+
1116
# IDEs and editors
1217
/.idea
1318
.project
1419
.classpath
1520
.c9/
1621
*.launch
1722
.settings/
23+
*.sublime-workspace
1824

1925
# IDE - VSCode
2026
.vscode/*
2127
!.vscode/settings.json
2228
!.vscode/tasks.json
2329
!.vscode/launch.json
2430
!.vscode/extensions.json
31+
.history/*
2532

2633
# misc
2734
/.sass-cache
2835
/connect.lock
29-
/coverage/*
36+
/coverage
3037
/libpeerconnection.log
3138
npm-debug.log
39+
/reports
40+
yarn-error.log
3241
testem.log
3342
/typings
43+
*.sw*
3444

35-
# e2e
36-
/e2e/*.js
37-
/e2e/*.map
38-
39-
#System Files
45+
# System Files
4046
.DS_Store
4147
Thumbs.db
4248

43-
test-results.xml
44-
45-
e2e/Datasets_01.csv
46-
.angulardoc.json
47-
48-
cypress/screenshots/*
49-
cypress/videos/*
50-
*.mp4
49+
# Cypress
50+
/cypress/screenshots/*
51+
/cypress/videos/*
52+
*.mp4

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ This project is licensed under the GPL License - see the [LICENSE](LICENSE) file
2727
## Acknowledgments
2828

2929
Scicat is developed at PSI, ESS and MAXIV with in-kind funding from ESS and from the European Union Framework Programme for Research and Innovation Horizon 2020, under grant agreement 676548, “BrightnESS”.
30-

0 commit comments

Comments
 (0)