Skip to content

Commit 8afd25d

Browse files
committed
Linted
1 parent 91ddb5d commit 8afd25d

Some content is hidden

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

52 files changed

+9259
-3912
lines changed

.eslintrc.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates",
20+
"plugin:prettier/recommended"
21+
],
22+
"rules": {
23+
"@angular-eslint/directive-selector": [
24+
"error",
25+
{
26+
"type": "attribute",
27+
"prefix": "app",
28+
"style": "camelCase"
29+
}
30+
],
31+
"@angular-eslint/component-selector": [
32+
"error",
33+
{
34+
"type": "element",
35+
"prefix": "app",
36+
"style": "kebab-case"
37+
}
38+
]
39+
}
40+
},
41+
{
42+
"files": [
43+
"*.html"
44+
],
45+
"extends": [
46+
"plugin:@angular-eslint/template/recommended"
47+
],
48+
"rules": {}
49+
},
50+
{
51+
"files": ["*.html"],
52+
"excludedFiles": ["*inline-template-*.component.html"],
53+
"extends": ["plugin:prettier/recommended"],
54+
"rules": {
55+
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW)
56+
"prettier/prettier": ["error", { "parser": "angular" }]
57+
}
58+
}
59+
60+
]
61+
}

.prettierignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# angular cache
4+
/.angular/cache
5+
6+
# compiled output
7+
/dist
8+
/tmp
9+
/out-tsc
10+
11+
# dependencies
12+
/node_modules
13+
14+
# IDEs and editors
15+
/.idea
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# IDE - VSCode
24+
.vscode/*
25+
!.vscode/settings.json
26+
27+
# Cache
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
32+
# misc
33+
/.sass-cache
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
npm-debug.log
38+
yarn-error.log
39+
testem.log
40+
/typings
41+
42+
# System Files
43+
.DS_Store
44+
Thumbs.db

.prettierrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"arrowParens": "avoid",
8+
"trailingComma": "es5",
9+
"bracketSameLine": true,
10+
"printWidth": 80
11+
}

angular.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,21 @@
100100
],
101101
"scripts": []
102102
}
103+
},
104+
"lint": {
105+
"builder": "@angular-eslint/builder:lint",
106+
"options": {
107+
"lintFilePatterns": [
108+
"src/**/*.ts",
109+
"src/**/*.html"
110+
]
111+
}
103112
}
104113
}
105114
}
106115
},
107-
"defaultProject": "DSOMM"
116+
"defaultProject": "DSOMM",
117+
"cli": {
118+
"defaultCollection": "@angular-eslint/schematics"
119+
}
108120
}

0 commit comments

Comments
 (0)